|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The connection manager handle 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 |
public JdbcConnectionDescriptor getConnectionDescriptor()
JdbcConnectionDescriptor
public Platform getSupportedPlatform()
Platform
determined by the JdbcConnectionDescriptor
.
getConnectionDescriptor()
public boolean isAlive(java.sql.Connection conn)
public java.sql.Connection getConnection() throws LookupException
LookupException
public boolean isInLocalTransaction()
public void localBegin()
public void localCommit()
public void localRollback()
public void releaseConnection()
public void setBatchMode(boolean mode)
true
) or
off (false
).
public boolean isBatchMode()
public void executeBatch()
public void executeBatchIfNecessary()
public void clearBatch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |