public class DBRollbackManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DBRollbackManager.ReleaseAction
Connection release action
|
Constructor and Description |
---|
DBRollbackManager(int initialConnectionCapacity,
int initialObjectCapacity)
DBRollbackManager constructor
|
Modifier and Type | Method and Description |
---|---|
void |
appendHandler(Connection conn,
DBRollbackHandler handler)
Add a rollback handler for a particular Connection
|
void |
releaseConnection(Connection conn,
DBRollbackManager.ReleaseAction action)
releaseConnection from handler and perform
|
void |
removeHandler(Connection conn,
DBObject object)
Remove the rollback handler for a particular Connection and Object
|
public DBRollbackManager(int initialConnectionCapacity, int initialObjectCapacity)
initialConnectionCapacity
- initial capacityinitialObjectCapacity
- initial capacitypublic void appendHandler(Connection conn, DBRollbackHandler handler)
conn
- the database connectionhandler
- the handler to appendpublic void removeHandler(Connection conn, DBObject object)
conn
- the database connectionobject
- the object for which to remove the handlerpublic void releaseConnection(Connection conn, DBRollbackManager.ReleaseAction action)
conn
- the database connectionaction
- the release actionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.