程序包 gu.sql2java
类 ListenerContainer<B>
java.lang.Object
gu.sql2java.ListenerContainer<B>
- 所有已实现的接口:
TableListener<B>
container for multiple listener management
- 作者:
- guyadong
-
嵌套类概要
嵌套类修饰符和类型类说明static enumtype of fire listener source:LOCAL,ROW_OBSERVER,default:LOCAL OR null从接口继承的嵌套类/接口 gu.sql2java.TableListener
TableListener.Adapter<B> -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanadd(TableListener<B> listener) addlistenerinto containervoidafterDelete(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.voidclear()remove all listeners in containervoidbooleancontains(TableListener<B> listener) determine if thelistenerbe added.voiddone()Invoked in finally block, just after insert,update,delete.voidfirer(ListenerContainer.FireType firer) booleanisEmpty()determine if the container is empty.protected booleanprotected booleanbooleanremove(TableListener<B> listener) removelistenerfrom container
-
字段详细资料
-
listeners
-
trace
protected final boolean trace
-
-
构造器详细资料
-
ListenerContainer
public ListenerContainer() -
ListenerContainer
-
-
方法详细资料
-
beforeInsert
从接口复制的说明:TableListenerInvoked just before inserting a B record into the database.- 指定者:
beforeInsert在接口中TableListener<B>- 参数:
bean- the B that is about to be inserted- 抛出:
RuntimeDaoException
-
afterInsert
从接口复制的说明:TableListenerInvoked just after a B record is inserted in the database.- 指定者:
afterInsert在接口中TableListener<B>- 参数:
bean- the B that was just inserted- 抛出:
RuntimeDaoException
-
beforeUpdate
从接口复制的说明:TableListenerInvoked just before updating a B record in the database.- 指定者:
beforeUpdate在接口中TableListener<B>- 参数:
bean- the B that is about to be updated- 抛出:
RuntimeDaoException
-
afterUpdate
从接口复制的说明:TableListenerInvoked just after updating a B record in the database.- 指定者:
afterUpdate在接口中TableListener<B>- 参数:
bean- the B that was just updated- 抛出:
RuntimeDaoException
-
beforeDelete
从接口复制的说明:TableListenerInvoked just before deleting a B record in the database.- 指定者:
beforeDelete在接口中TableListener<B>- 参数:
bean- the B that is about to be deleted- 抛出:
RuntimeDaoException
-
afterDelete
从接口复制的说明:TableListenerInvoked just after deleting a B record in the database.- 指定者:
afterDelete在接口中TableListener<B>- 参数:
bean- the B that was just deleted- 抛出:
RuntimeDaoException
-
done
从接口复制的说明:TableListenerInvoked in finally block, just after insert,update,delete.- 指定者:
done在接口中TableListener<B>- 抛出:
RuntimeDaoException
-
isEmpty
public boolean isEmpty()determine if the container is empty. -
contains
determine if thelistenerbe added.- 参数:
listener-- 返回:
trueiflistenerexists in container
-
add
addlistenerinto container- 返回:
trueif add successfully.
-
remove
removelistenerfrom container- 参数:
listener- instance that will be removed.- 返回:
trueif remove successfully.
-
clear
public void clear()remove all listeners in container -
firer
-
clearFirer
public void clearFirer() -
isReqFirer
protected boolean isReqFirer() -
isLocalReqFirer
protected boolean isLocalReqFirer()
-