|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.dataaccess.TransactionalConnectionManager
This class allows for transactional bounding around multiple calls over a single database connection.
Method Summary | |
Connection |
getConnection()
Create a connection if this is the first action of the transaction, otherwise return the existing connection. |
static TransactionalConnectionManager |
getTransactionalConnectionManager(org.arch4j.dataaccess.ConnectionManager aConnectionManager)
Provides singleton instances of this class per thread. |
boolean |
isMarkedForRollback()
Knows if the current or just executed transaction is marked for rollback. |
void |
markForRollback()
If this method is called at any time the transaction will rollback when endTransaction() is called. |
void |
releaseConnection()
Release the connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TransactionalConnectionManager getTransactionalConnectionManager(org.arch4j.dataaccess.ConnectionManager aConnectionManager)
public Connection getConnection() throws SQLException
SQLException
public void releaseConnection() throws SQLException
SQLException
public void markForRollback()
public boolean isMarkedForRollback()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |