Package io.ebean
Class TransactionCallbackAdapter
- java.lang.Object
-
- io.ebean.TransactionCallbackAdapter
-
- All Implemented Interfaces:
TransactionCallback
public abstract class TransactionCallbackAdapter extends Object implements TransactionCallback
Adapter that can be extended for easier implementation of TransactionCallback. Provides 'no operation' implementation for each of the TransactionCallback methods. It is expected that this class is extended and override the methods you need to.
-
-
Constructor Summary
Constructors Constructor Description TransactionCallbackAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postCommit()
Perform processing just after the transaction commit.void
postRollback()
Perform processing just after the transaction rollback.void
preCommit()
Perform processing just prior to the transaction commit.void
preRollback()
Perform processing just prior to the transaction rollback.
-
-
-
Constructor Detail
-
TransactionCallbackAdapter
public TransactionCallbackAdapter()
-
-
Method Detail
-
preCommit
public void preCommit()
Perform processing just prior to the transaction commit.- Specified by:
preCommit
in interfaceTransactionCallback
-
postCommit
public void postCommit()
Perform processing just after the transaction commit.- Specified by:
postCommit
in interfaceTransactionCallback
-
preRollback
public void preRollback()
Perform processing just prior to the transaction rollback.- Specified by:
preRollback
in interfaceTransactionCallback
-
postRollback
public void postRollback()
Perform processing just after the transaction rollback.- Specified by:
postRollback
in interfaceTransactionCallback
-
-