From a2df70d4857c19b70cabbb97d842c50d9db5325a Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 21 Jan 2015 21:58:35 +0100 Subject: [PATCH] Painter base waveform canvas implemented Fixed Copyright information Extended SQLite database structure --- .../database/sqlite/RelationTypeFactory.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 com.minres.scviewer.database.sqlite/src/com/minres/scviewer/database/sqlite/RelationTypeFactory.java diff --git a/com.minres.scviewer.database.sqlite/src/com/minres/scviewer/database/sqlite/RelationTypeFactory.java b/com.minres.scviewer.database.sqlite/src/com/minres/scviewer/database/sqlite/RelationTypeFactory.java new file mode 100644 index 0000000..2bce8de --- /dev/null +++ b/com.minres.scviewer.database.sqlite/src/com/minres/scviewer/database/sqlite/RelationTypeFactory.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2014, 2015 MINRES Technologies GmbH and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * MINRES Technologies GmbH - initial API and implementation + *******************************************************************************/ +package com.minres.scviewer.database.sqlite; + +import java.util.HashMap; + +import com.minres.scviewer.database.RelationType; + +class RelationTypeFactory { + + HashMap registry=new HashMap(); + + public RelationType getRelationType(String name) { + if(registry.containsKey(name)) return registry.get(name); + RelationType rt = new RelationType(name); + registry.put(name, rt); + return rt; + } + +}