Package org.bridgedb.rdb
Class SimpleGdbFactory
- java.lang.Object
-
- org.bridgedb.rdb.SimpleGdbFactory
-
public final class SimpleGdbFactory extends Object
Factory class that instantiates the correct SimpleGdb implementation for a new / existing gdb, based on the schema version. Use this class for creating / connecting to any SimpleGdb database.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleGdbcreateInstance(String dbName, String connectionString)Opens a connection to the Gene Database located in the given file.
-
-
-
Method Detail
-
createInstance
public static SimpleGdb createInstance(String dbName, String connectionString) throws IDMapperException
Opens a connection to the Gene Database located in the given file.Use this instead of constructor to create an instance of SimpleGdb that matches the schema version.
- Parameters:
connectionString- a JDBC Connection string- Returns:
- a new Gdb
- Throws:
IDMapperException- on failure
-
-