Home » Search

About lifecycle

1-10 of 66 Refresh
Manual
333

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events ... class may include callback methods for any subset or combination of lifecycle events ... that fires the entity lifecycle event (which is still in progress) callback methods should not
JDO Doc
80

Constants.ELEMENT_INSTANCE_LIFECYCLE_LISTENER

Static Field javax.jdo.Constants String ELEMENT_INSTANCE_ LIFECYCLE_LISTENER The name of the instance lifecycle listener element in the JDO configuration file. Since: JDO 2.1
JDO Doc
80

Constants.INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_CLASSES

Static Field javax.jdo.Constants String INSTANCE_ LIFECYCLE_LISTENER_ATTRIBUTE_CLASSES The name of the instance lifecycle listener element's "classes" attribute. Since: JDO 2.1
JDO Doc
80

Constants.INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER

Static Field javax.jdo.Constants String INSTANCE_ LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER The name of the instance lifecycle listener element's "listener" attribute. Since: JDO 2.1
JDO Doc
78

Constants.PROPERTY_INSTANCE_LIFECYCLE_LISTENER

Static Field javax.jdo.Constants String PROPERTY_INSTANCE_ LIFECYCLE_LISTENER "javax.jdo.listener.InstanceLifecycleListener" Since: JDO 2.1 See Also: PersistenceManagerFactory.addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener,Class[]) PersistenceManagerFactory.removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener)
JDO Doc
78

Constants.PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER

Static Field javax.jdo.Constants String PROPERTY_PREFIX_INSTANCE_ LIFECYCLE_LISTENER Prefix used to configure javax.jdo.listener.InstanceLifecycleListener instances externally. To configure an InstanceLifecycleListener via properties, create a property name with the prefix of this constant
Manual
49

Advanced JPA Topics

Describes advanced JPA topics - detached entity objects, lock management and entity lifecycle events.
Manual
49

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.
Forum
26

LifeCycle Event with Embeddable classes

Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id ... . ObjectArts   JPA lifecycle events are not applicable for embeddable classes. You can set an event
JDO Doc
18

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.