|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.appserver.server.sql.standard.StandardLogicalDatabase | +--com.lutris.appserver.server.sql.oracle.OracleLogicalDatabase
Represents a logical database with Oracle specific capabilities.
StandardLogicalDatabase
Field Summary |
Fields inherited from class com.lutris.appserver.server.sql.standard.StandardLogicalDatabase |
connectionAllocator, dbName, dbType, driver, objectIdAllocator |
Constructor Summary | |
OracleLogicalDatabase()
Default constructor to configure a single logical database. |
|
OracleLogicalDatabase(java.lang.String dbName,
Config dbConfig)
Creates and configures a single logical database with oracle specific enhancements. |
Method Summary | |
DBQuery |
createQuery()
Return a query for use on this logical database. |
DBTransaction |
createTransaction()
Return a transaction for use on this oracle logical database. |
java.lang.String |
getType()
Return a description of the logical database type. |
ConnectionAllocator |
loadConnectionAllocator(Config connectionConfig)
Return the connection allocator. |
ObjectIdAllocator |
loadObjectIdAllocator(Config objIdConfig)
Return the object id allocator. |
Methods inherited from class com.lutris.appserver.server.sql.standard.StandardLogicalDatabase |
allocateConnection, allocateObjectId, checkOId, getActiveConnectionCount, getMaxConnectionCount, getMaxConnectionCountDate, getName, getRequestCount, init, resetMaxConnectionCount, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OracleLogicalDatabase(java.lang.String dbName, Config dbConfig) throws ConfigException, java.sql.SQLException
dbName
- The logical name of the database.dbConfig
- The configuration object for this logical database.
ConfigException
- If there is an error in the configuration file.
java.sql.SQLException
- If a SQL error occurs.StandardLogicalDatabase.StandardLogicalDatabase(java.lang.String, com.lutris.util.Config)
public OracleLogicalDatabase()
init()
method must be called to
configure the database.
StandardLogicalDatabase.StandardLogicalDatabase(java.lang.String, com.lutris.util.Config)
Method Detail |
public ConnectionAllocator loadConnectionAllocator(Config connectionConfig) throws ConfigException
loadConnectionAllocator
in class StandardLogicalDatabase
connectionConfig
- The configuration object for the connection allocator.
ConfigException
- If there is an error in the configuration file.public ObjectIdAllocator loadObjectIdAllocator(Config objIdConfig) throws ConfigException
loadObjectIdAllocator
in class StandardLogicalDatabase
objIdConfig
- The configuration object for the object id allocator.
ConfigException
- If there is an error in the configuration file.public DBTransaction createTransaction() throws java.sql.SQLException
createTransaction
in interface LogicalDatabase
createTransaction
in class StandardLogicalDatabase
java.sql.SQLException
- if a SQL error occurs.public DBQuery createQuery() throws java.sql.SQLException
createQuery
in interface LogicalDatabase
createQuery
in class StandardLogicalDatabase
java.sql.SQLException
- if a SQL error occurs.public java.lang.String getType()
getType
in interface LogicalDatabase
getType
in class StandardLogicalDatabase
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |