|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a logical database. Each logical database must provide services for connection and object id allocation.
Method Summary | |
DBConnection |
allocateConnection()
Return a connection to this logical database. |
ObjectId |
allocateObjectId()
Return an object id for this logical database. |
DBQuery |
createQuery()
Return a query for use on this logical database. |
DBTransaction |
createTransaction()
Return a transaction for use on this logical database. |
int |
getActiveConnectionCount()
Return the number of currently active connections. |
int |
getMaxConnectionCount()
Return the maximum number of connections active at one time. |
java.util.Date |
getMaxConnectionCountDate()
Return the time when the maximum connection count occured. |
java.lang.String |
getName()
Return the symbolic name of this logical database. |
long |
getRequestCount()
Return the number of database requests. |
java.lang.String |
getType()
Return a description of the logical database type. |
void |
init(java.lang.String dbName,
Config dbConfig)
Initialize the logical database. |
void |
resetMaxConnectionCount()
Reset the maximum connection count and date. |
void |
shutdown()
Immediately shutdown the logical database. |
Method Detail |
public void init(java.lang.String dbName, Config dbConfig) throws ConfigException, java.sql.SQLException
public DBConnection allocateConnection() throws java.sql.SQLException
public ObjectId allocateObjectId() throws ObjectIdException
public DBTransaction createTransaction() throws java.sql.SQLException
public DBQuery createQuery() throws java.sql.SQLException
public void shutdown()
public java.lang.String getName()
public java.lang.String getType()
public int getActiveConnectionCount()
public int getMaxConnectionCount()
public java.util.Date getMaxConnectionCountDate()
Date
when the maximum connection
count occured.public void resetMaxConnectionCount()
public long getRequestCount()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |