程序包 gu.sql2java
接口 TableListener<B>
- 类型参数:
B- java bean type
- 所有已知实现类:
ListenerContainer,TableListener.Adapter
public interface TableListener<B>
Listener that is notified of table changes.
- 作者:
- guyadong
-
嵌套类概要
嵌套类修饰符和类型接口说明static classThis adapter class provides default implementations for the methods declared by theTableListenerinterface. -
方法概要
修饰符和类型方法说明voidafterDelete(B bean) Invoked just after deleting a B record in the database.voidafterInsert(B bean) Invoked just after a B record is inserted in the database.voidafterUpdate(B bean) Invoked just after updating a B record in the database.voidbeforeDelete(B bean) Invoked just before deleting a B record in the database.voidbeforeInsert(B bean) Invoked just before inserting a B record into the database.voidbeforeUpdate(B bean) Invoked just before updating a B record in the database.voiddone()Invoked in finally block, just after insert,update,delete.
-
方法详细资料
-
beforeInsert
Invoked just before inserting a B record into the database.- 参数:
bean- the B that is about to be inserted- 抛出:
RuntimeDaoException
-
afterInsert
Invoked just after a B record is inserted in the database.- 参数:
bean- the B that was just inserted- 抛出:
RuntimeDaoException
-
beforeUpdate
Invoked just before updating a B record in the database.- 参数:
bean- the B that is about to be updated- 抛出:
RuntimeDaoException
-
afterUpdate
Invoked just after updating a B record in the database.- 参数:
bean- the B that was just updated- 抛出:
RuntimeDaoException
-
beforeDelete
Invoked just before deleting a B record in the database.- 参数:
bean- the B that is about to be deleted- 抛出:
RuntimeDaoException
-
afterDelete
Invoked just after deleting a B record in the database.- 参数:
bean- the B that was just deleted- 抛出:
RuntimeDaoException
-
done
Invoked in finally block, just after insert,update,delete.
-