public abstract class DBDAOFactory extends Object implements DAOFactory
Modifier and Type | Field and Description |
---|---|
protected Properties |
configuration |
protected Database |
database |
protected String |
databaseName |
protected String |
databaseType |
protected DatabaseType |
dBType |
protected String |
dbVersion |
protected String |
ensemblSchema |
protected String |
ibatisSchemaFilePath |
protected String |
mybatisSchemaFilePath |
protected Registry |
registry |
protected String |
schemaVersion |
protected org.apache.ibatis.session.SqlSessionFactory |
sqlSessionFactory |
protected String |
thisDBUrl |
Constructor and Description |
---|
DBDAOFactory() |
DBDAOFactory(Database database) |
Modifier and Type | Method and Description |
---|---|
Properties |
getConfiguration() |
Database |
getDatabase() |
String |
getDatabaseName() |
DatabaseType |
getDBType() |
String |
getDBVersion() |
String |
getEnsemblSchemaVersion() |
String |
getMybatisSchemaFilePath() |
org.apache.ibatis.session.SqlSession |
getNewSqlSession() |
Registry |
getRegistry() |
void |
setDatabase(Database db) |
void |
setDatabaseName(String database) |
void |
setDBType(DatabaseType type) |
void |
setDBVersion(String dbversion) |
void |
setEnsemblSchemaVersion(String schemaVersion) |
void |
setMybatisSchemaFilePath(String schema) |
protected Properties configuration
protected String databaseType
protected String ensemblSchema
protected String schemaVersion
protected String ibatisSchemaFilePath
protected String mybatisSchemaFilePath
protected String databaseName
protected DatabaseType dBType
protected org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory
public DBDAOFactory()
public DBDAOFactory(Database database) throws DAOException
DAOException
public final void setDatabase(Database db) throws DAOException
DAOException
public Properties getConfiguration()
getConfiguration
in interface DAOFactory
public String getEnsemblSchemaVersion()
getEnsemblSchemaVersion
in interface DAOFactory
public String getDBVersion()
getDBVersion
in interface DAOFactory
public void setEnsemblSchemaVersion(String schemaVersion)
setEnsemblSchemaVersion
in interface DAOFactory
public void setDBVersion(String dbversion)
setDBVersion
in interface DAOFactory
public Registry getRegistry()
getRegistry
in interface DAOFactory
public void setDBType(DatabaseType type)
setDBType
in interface DAOFactory
public DatabaseType getDBType()
getDBType
in interface DAOFactory
public void setMybatisSchemaFilePath(String schema)
setMybatisSchemaFilePath
in interface DAOFactory
public String getMybatisSchemaFilePath()
getMybatisSchemaFilePath
in interface DAOFactory
public String getDatabaseName()
getDatabaseName
in interface DAOFactory
public void setDatabaseName(String database)
setDatabaseName
in interface DAOFactory
public Database getDatabase()
getDatabase
in interface DAOFactory
public org.apache.ibatis.session.SqlSession getNewSqlSession() throws DAOException
getNewSqlSession
in interface DAOFactory
DAOException
JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3