|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sql.ExtendedDBConnection
com.lutris.appserver.server.sql.standard.StandardDBConnection
public class StandardDBConnection
Standard implementation of the DBConnection object.
DBConnection
Field Summary | |
---|---|
long |
curtime
|
Fields inherited from class com.lutris.appserver.server.sql.ExtendedDBConnection |
---|
allocated, closed, connection, connectionAllocator, connectionEnterPoolTime, connectionUsageCounter, currentStmt, dropConnection, dropped, generation, id, logging, maxPreparedStmts, nextId, password, preparedStmtCache, prepareStatementCache, psCacheLatency, reset, url, user |
Constructor Summary | |
---|---|
StandardDBConnection(ConnectionAllocator connectionAllocatorObj,
java.lang.String url,
java.lang.String user,
java.lang.String password,
int maxPreparedStatements,
boolean logging,
int generation)
Initialize the connection to a database. |
Method Summary | |
---|---|
void |
release()
Return this connection to its allocator. |
Methods inherited from class com.lutris.appserver.server.sql.ExtendedDBConnection |
---|
allocate, allocatedCheck, allocateObjectId, close, closedCheck, commit, drop, execute, executeQuery, executeQuery, executeUpdate, executeUpdate, getConnection, getConnectionEnterPoolTime, getConnectionUsageCounter, getDatabaseName, getGeneration, getMaxPreparedStmts, getResultSetConcurrency, getResultSetType, getUrl, getUser, handleException, incrRequestCount, isClosed, isDroped, isMarkedForDrop, logDebug, logDebug, prepareCall, prepareStatement, prepareStatement, prepareStatement, reset, resetCheck, rollback, setAutoCommit, setConnectionEnterPoolTime, setConnectionUsageCounter, validate, warningCheck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long curtime
Constructor Detail |
---|
public StandardDBConnection(ConnectionAllocator connectionAllocatorObj, java.lang.String url, java.lang.String user, java.lang.String password, int maxPreparedStatements, boolean logging, int generation) throws java.sql.SQLException
url
- JDBC URL of database.user
- SQL user name.password
- SQL password.connectionAllocatorObj
- The connection allocator that this
connection belongs to.maxPreparedStatements
- Maximum number of preparse statements.
a value of less than zero queries JDBC for the value.logging
- Specifying true
enables SQL logging.generation
- A generation number used to drop old connection
when they are released.
java.sql.SQLException
- If a connection can't be established.Method Detail |
---|
public void release()
release
in interface DBConnection
release
in class ExtendedDBConnection
|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |