About listener

61-70 of 143Refresh
JPA Doc
5

javax.persistence.ExcludeDefaultListeners

javax.persistence Annotation ExcludeDefaultListeners Target: Classes Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: JPA 1.0 Learn how to define and use entity listeners in Chapter 3 of the ObjectDB/JPA
JPA Doc
5

javax.persistence.ExcludeSuperclassListeners

javax.persistence Annotation ExcludeSuperclassListeners Target: Classes Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: JPA 1.0 Learn how to define and use entity listeners in Chapter 3 of the ObjectDB
JDO Doc
5

removeRegisterClassListener(crl)

Method javax.jdo.spi.JDOImplHelper void removeRegisterClassListener(   RegisterClassListener crl ) Remove the specified RegisterClassListener from the listener list. Parameters: crl - the listener to be removed Since: JDO 1.0
JDO Doc
5

javax.jdo.Query

on the deleted instances. Similarly, if there are lifecycle listeners registered for delete events on affected classes, the listener is called for each appropriate deleted instance. Before returning
Forum
4

Database is erased after deploying a new web application version

automatically when stopping the web-app from Tomcat's manager? Should I set some kind of listener? You can set a listener for creating and destroying the EntityManagerFactory: http://www.objectdb.com/tutorial/jpa/eclipse/web/listener When the application is stopped by the Tomcat manager
JPA Doc
3

EntityListeners.value

Annotation Element javax.persistence.EntityListeners Class[] value The callback listener classes Since: JPA 1.0
JDO Doc
3

getDetachedInstance()

Method javax.jdo.listener.InstanceLifecycleEvent Object getDetachedInstance() Returns the detached instance involved in the event. Returns: The detached instance involved in the event, or null if there was none. Since: JDO 2.0 See Also: "Section 12.15, Java Data Objects 2.0 Specification"
JDO Doc
3

getEventType()

Method javax.jdo.listener.InstanceLifecycleEvent int getEventType() Returns the event type that triggered this event. Returns: the event type Since: JDO 2.0
JDO Doc
3

getPersistentInstance()

Method javax.jdo.listener.InstanceLifecycleEvent Object getPersistentInstance() Returns the persistent instance involved in the event. Returns: The persistent instance involved in the event, or null if there was none. Since: JDO 2.0 See Also: "Section 12.15, Java Data Objects 2.0 Specification"
JDO Doc
3

getSource()

Method javax.jdo.listener.InstanceLifecycleEvent Object getSource() The source object of the Event. Although not deprecated, it is recommended that the the methods getPersistentInstance() and getDetachedInstance() be used instead. Returns: The persistent instance on any pre- callback