public interface TableListener<B>
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
TableListener.Adapter<B>
This adapter class provides default implementations for the
methods declared by the
TableListener interface. |
static class |
TableListener.DecoratorExecutorListener<B>
|
static class |
TableListener.Event
listener event:
INSERT insert a beanUPDATE update a beanDELETE delete a beanUPDATE_BEFORE before updating a bean |
static class |
TableListener.ListenerContainer<B>
container for multiple listener management
|
static interface |
TableListener.TransactionListener |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterDelete(B bean)
Invoked just after deleting a B record in the database.
|
void |
afterInsert(B bean)
Invoked just after a B record is inserted in the database.
|
void |
afterUpdate(B bean)
Invoked just after updating a B record in the database.
|
void |
beforeDelete(B bean)
Invoked just before deleting a B record in the database.
|
void |
beforeInsert(B bean)
Invoked just before inserting a B record into the database.
|
void |
beforeUpdate(B bean)
Invoked just before updating a B record in the database.
|
void |
done()
Invoked in finally block, just after insert,update,delete.
|
void beforeInsert(B bean) throws RuntimeDaoException
bean - the B that is about to be insertedRuntimeDaoExceptionvoid afterInsert(B bean) throws RuntimeDaoException
bean - the B that was just insertedRuntimeDaoExceptionvoid beforeUpdate(B bean) throws RuntimeDaoException
bean - the B that is about to be updatedRuntimeDaoExceptionvoid afterUpdate(B bean) throws RuntimeDaoException
bean - the B that was just updatedRuntimeDaoExceptionvoid beforeDelete(B bean) throws RuntimeDaoException
bean - the B that is about to be deletedRuntimeDaoExceptionvoid afterDelete(B bean) throws RuntimeDaoException
bean - the B that was just deletedRuntimeDaoExceptionvoid done() throws RuntimeDaoException
Copyright © 2019. All Rights Reserved.