public interface ConnectionManagerIF
PersistenceBroker
instance
use it's own connection manager.Modifier and Type | Method and Description |
---|---|
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 ). |
JdbcConnectionDescriptor getConnectionDescriptor()
JdbcConnectionDescriptor
.Platform getSupportedPlatform()
Platform
determined by the JdbcConnectionDescriptor
.getConnectionDescriptor()
boolean isAlive(java.sql.Connection conn)
java.sql.Connection getConnection() throws LookupException
LookupException
boolean 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()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30