Class 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 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