ObjectDB ObjectDB

Internal Website Search

1-10 of 159 resultsRefresh
256

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. Internal Callback Methods Internal callback ... class may include callback methods for any subset or combination of lifecycle events
7

preDelete(event)

Method javax.jdo.listener.DeleteLifecycleListener void preDelete( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager ... the instance callback DeleteCallback.jdoPreDelete. Parameters: event - the delete event. Since: JDO 2.0
7

postDelete(event)

Method javax.jdo.listener.DeleteLifecycleListener void postDelete( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager ... to field values is not permitted. Parameters: event - the delete event. Since: JDO 2.0
7

postCreate(event)

Method javax.jdo.listener.CreateLifecycleListener void postCreate( InstanceLifecycleEvent event ) Invoked whenever an instance is made persistent via a call to javax.jdo.PersistenceManager.makePersistent or during persistence by reachability. Parameters: event - the create event. Since: JDO 2.0
7

postLoad(event)

Method javax.jdo.listener.LoadLifecycleListener void postLoad( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is loaded from the data store. It is called after the method LoadCallback.jdoPostLoad is invoked on the persistent instance. Parameters: event - the load event. Since: JDO 2.0
7

preDetach(event)

Method javax.jdo.listener.DetachLifecycleListener void preDetach( InstanceLifecycleEvent event ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy before ... on the instance to be detached. Parameters: event - the detach event. Since: JDO 2.0
7

postDetach(event)

Method javax.jdo.listener.DetachLifecycleListener void postDetach( InstanceLifecycleEvent event ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy ... on the detached instance. Parameters: event - the detach event. Since: JDO 2.0
7

preClear(event)

Method javax.jdo.listener.ClearLifecycleListener void preClear( InstanceLifecycleEvent event ) This method is called before the implementation calls the instance method ClearCallback.jdoPreClear ... , so access to fields is not mediated. Parameters: event - the clear event. Since: JDO 2.0
7

postClear(event)

Method javax.jdo.listener.ClearLifecycleListener void postClear( InstanceLifecycleEvent event ) This method is called after the ClearCallback.jdoPreClear method is invoked on the instance and the fields have been cleared by the JDO implementation. Parameters: event - the clear event. Since: JDO 2.0
7

preStore(event)

Method javax.jdo.listener.StoreLifecycleListener void preStore( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is stored, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit. It is called before the method StoreCallback.jdoPreStore is invoked. Parameters: event - the store event. Since: JDO 2.0

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