Package org.apache.empire.db.context
Class DBRollbackManager
java.lang.Object
org.apache.empire.db.context.DBRollbackManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConnection release action -
Constructor Summary
ConstructorsConstructorDescriptionDBRollbackManager(int initialConnectionCapacity, int initialObjectCapacity) DBRollbackManager constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHandler(Connection conn, DBRollbackHandler handler) Add a rollback handler for a particular ConnectionvoidreleaseConnection(Connection conn, DBRollbackManager.ReleaseAction action) releaseConnection from handler and performvoidremoveHandler(Connection conn, DBObject object) Remove the rollback handler for a particular Connection and Object
-
Constructor Details
-
DBRollbackManager
public DBRollbackManager(int initialConnectionCapacity, int initialObjectCapacity) DBRollbackManager constructor- Parameters:
initialConnectionCapacity- initial capacityinitialObjectCapacity- initial capacity
-
-
Method Details
-
appendHandler
Add a rollback handler for a particular Connection- Parameters:
conn- the database connectionhandler- the handler to append
-
removeHandler
Remove the rollback handler for a particular Connection and Object- Parameters:
conn- the database connectionobject- the object for which to remove the handler
-
releaseConnection
releaseConnection from handler and perform- Parameters:
conn- the database connectionaction- the release action
-