public abstract class SimpleGdb extends IDMapperRdb
It wraps SQL statements in methods, so the rest of the apps don't need to know the details of the Database schema.
It delegates dealing with the differences between various RDBMS's (Derby, Hsqldb etc.) to a DBConnector instance. A correct DBConnector instance needs to be passed to the constructor of SimpleGdb.
In the PathVisio GUI environment, use GdbManager to create and connect one or two centralized Gdb's. This will also automatically find the right DBConnector from the preferences.
In a head-less or test environment, you can bypass GdbManager and use SimpleGdb directly to create or connect to one or more pgdb's of any type.
| Modifier and Type | Field and Description |
|---|---|
protected String |
dbName |
static int |
NO_LIMIT |
static int |
NO_TIMEOUT |
static int |
QUERY_TIMEOUT |
MATCH_ID| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection() |
String |
getDbName()
Gets the name of te currently used gene database.
|
int |
getGeneCount() |
int |
getGeneCount(DataSource ds) |
int |
getLinkCount() |
boolean |
isConnected() |
mapID, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfreeSearch, getCapabilities, mapID, xrefExistsfreeAttributeSearch, freeAttributeSearchEx, getAttributes, getAttributes, getAttributeSet, isFreeAttributeSearchSupportedgetIterator, getIteratorprotected final String dbName
public static final int NO_LIMIT
public static final int NO_TIMEOUT
public static final int QUERY_TIMEOUT
public Connection getConnection() throws SQLException
SQLExceptionpublic final boolean isConnected()
public final String getDbName()
getDbName in class IDMapperRdbpublic final void close()
throws IDMapperException
IDMapperExceptionpublic final int getGeneCount()
throws IDMapperException
IDMapperException - on failurepublic final int getLinkCount()
throws IDMapperException
IDMapperException - on failurepublic final int getGeneCount(DataSource ds) throws IDMapperException
ds - DataSource to count identifiers for.IDMapperException - on failureCopyright © 2006–2017 BridgeDb project. All rights reserved.