|
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.informix.InformixLogicalDatabase
Represents a logical database with Informix capabilities.
Field Summary | |
protected int |
defaultQueryTimeout
The amount of time (in seconds) that a query will block before throwing an exception. |
protected int |
defaultTransactionTimeout
The amount of time (in seconds) that a transaction will block before throwing an exception. |
Fields inherited from class com.lutris.appserver.server.sql.standard.StandardLogicalDatabase |
connectionAllocator, dbName, dbType, driver, objectIdAllocator |
Constructor Summary | |
InformixLogicalDatabase()
Default constructor to configure a single logical database. |
|
InformixLogicalDatabase(java.lang.String dbName,
Config dbConfig)
Creates and configures a single logical database. |
Method Summary | |
protected int |
getDefaultQueryTimeout()
Returns the configured default amount of time (in seconds) that a query should block before throwing an exception. |
protected int |
getDefaultTransactionTimeout()
Returns the configured default amount of time (in seconds) that a transaction should block before throwing an exception. |
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, createQuery, createTransaction, 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 |
Field Detail |
protected int defaultQueryTimeout
protected int defaultTransactionTimeout
Constructor Detail |
public InformixLogicalDatabase()
init()
method must be called to
configure the database.
public InformixLogicalDatabase(java.lang.String dbName, Config dbConfig) throws ConfigException, java.sql.SQLException
dbName
- The logical name of the database. Used todbConfig
- The configuration object for this logical Informix database.
The configuration data is specified in the section:
DatabaseManager.DB.dbName
The Informix specific configuration parameters are:
QueryTimeout
- The amount of time (in seconds) that
a query will block before throwing an exception. If < 0 then the
query will block indefinitly. Optional, if not specified, then the value
defaults to 0.
TransactionTimeout
- The amount of time (in seconds)
that a transaction will block before throwing an exception. If
< 0 then the transaction will block indefinitly. Optional, if not specified,
then the value defaults to 0.
ConfigException
- If there is an error in the configuration file.
java.sql.SQLException
- If a SQL error occurs.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 java.lang.String getType()
getType
in interface LogicalDatabase
getType
in class StandardLogicalDatabase
protected int getDefaultQueryTimeout()
protected int getDefaultTransactionTimeout()
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |