|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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,
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,
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.
Method Detail |
public ConnectionAllocator loadConnectionAllocator(Config connectionConfig) throws ConfigException
connectionConfig
- The configuration object for the connection allocator.public ObjectIdAllocator loadObjectIdAllocator(Config objIdConfig) throws ConfigException
objIdConfig
- The configuration object for the object id allocator.public java.lang.String getType()
protected int getDefaultQueryTimeout()
protected int getDefaultTransactionTimeout()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |