public static class TableListener.ListenerContainer<B> extends java.lang.Object implements TableListener<B>
TableListener.Adapter<B>, TableListener.DecoratorExecutorListener<B>, TableListener.Event, TableListener.ListenerContainer<B>, TableListener.TransactionListener| 限定符和类型 | 字段和说明 |
|---|---|
static TableListener.TransactionListener |
TRANSACTION_LISTENER |
| 构造器和说明 |
|---|
TableListener.ListenerContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(TableListener<B> listener)
add
listener into container |
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 |
clear()
remove all listeners in container
|
boolean |
contains(TableListener<B> listener)
determine if the
listener be added. |
void |
done()
Invoked in finally block, just after insert,update,delete.
|
boolean |
isEmpty()
determine if the container is empty.
|
boolean |
remove(TableListener<B> listener)
remove
listener from container |
public static final TableListener.TransactionListener TRANSACTION_LISTENER
public TableListener.ListenerContainer()
public void beforeInsert(B bean) throws RuntimeDaoException
TableListenerbeforeInsert 在接口中 TableListener<B>bean - the B that is about to be insertedRuntimeDaoExceptionpublic void afterInsert(B bean) throws RuntimeDaoException
TableListenerafterInsert 在接口中 TableListener<B>bean - the B that was just insertedRuntimeDaoExceptionpublic void beforeUpdate(B bean) throws RuntimeDaoException
TableListenerbeforeUpdate 在接口中 TableListener<B>bean - the B that is about to be updatedRuntimeDaoExceptionpublic void afterUpdate(B bean) throws RuntimeDaoException
TableListenerafterUpdate 在接口中 TableListener<B>bean - the B that was just updatedRuntimeDaoExceptionpublic void beforeDelete(B bean) throws RuntimeDaoException
TableListenerbeforeDelete 在接口中 TableListener<B>bean - the B that is about to be deletedRuntimeDaoExceptionpublic void afterDelete(B bean) throws RuntimeDaoException
TableListenerafterDelete 在接口中 TableListener<B>bean - the B that was just deletedRuntimeDaoExceptionpublic void done() throws RuntimeDaoException
TableListenerdone 在接口中 TableListener<B>RuntimeDaoExceptionpublic boolean isEmpty()
public boolean contains(TableListener<B> listener)
listener be added.listener - true if listener exists in containerpublic boolean add(TableListener<B> listener)
listener into containertrue if add successfully.public boolean remove(TableListener<B> listener)
listener from containerlistener - instance that will be removed.true if remove successfully.public void clear()
Copyright © 2019. All Rights Reserved.