ObjectDB ObjectDB

Internal Website Search

1-10 of 77 resultsRefresh
308

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
147

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 ... these properties. ObjectArts objectArts objectArts JPA lifecycle events are not applicable
135

JPA lifecycle events across processes

JPA lifecycle events across processes
16

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.
8

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
8

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
8

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
8

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
8

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)
1

JDO Internal Callbacks

The following interfaces can be implemented by persistence capable classes in order to response to JDO lifecycle events:

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support