|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionManagerIF
The connection manager handles the life cycle of a connection.
Each PersistenceBroker instance
use it's own connection manager.
| Method Summary | |
|---|---|
void |
clearBatch()
Clear batch (if the batch mode where used). |
void |
executeBatch()
Execute batch (if the batch mode where used). |
void |
executeBatchIfNecessary()
Execute batch if the number of statements in it exceeded the limit (if the batch mode where used). |
java.sql.Connection |
getConnection()
Return a connection. |
JdbcConnectionDescriptor |
getConnectionDescriptor()
Return the associated JdbcConnectionDescriptor. |
Platform |
getSupportedPlatform()
Returns the supported Platform
determined by the JdbcConnectionDescriptor. |
boolean |
isAlive(java.sql.Connection conn)
checks if Connection conn is still open. |
boolean |
isBatchMode()
|
boolean |
isInLocalTransaction()
Hold connection is in local transaction. |
void |
localBegin()
Begin local transaction on the hold connection and set autocommit to false. |
void |
localCommit()
Commit the local transaction on the hold connection. |
void |
localRollback()
Rollback a changes on the hold connection. |
void |
releaseConnection()
Release the hold connection. |
void |
setBatchMode(boolean mode)
Sets the batch mode on ( true) or
off (false). |
| Method Detail |
|---|
JdbcConnectionDescriptor getConnectionDescriptor()
JdbcConnectionDescriptor.
Platform getSupportedPlatform()
Platform
determined by the JdbcConnectionDescriptor.
getConnectionDescriptor()boolean isAlive(java.sql.Connection conn)
java.sql.Connection getConnection()
throws LookupException
LookupExceptionboolean isInLocalTransaction()
void localBegin()
void localCommit()
void localRollback()
void releaseConnection()
void setBatchMode(boolean mode)
true) or
off (false).
boolean isBatchMode()
void executeBatch()
void executeBatchIfNecessary()
void clearBatch()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||