ObjectDB ObjectDB

Internal Website Search

1-10 of 160 resultsRefresh
280

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

preAttach(event)

Method javax.jdo.listener.AttachLifecycleListener void preAttach( InstanceLifecycleEvent event ) This method is called before a detached instance is attached, via the javax.jdo.PersistenceManager ... the corresponding AttachCallback.jdoPreAttach on the detached instance. Parameters: event - the attach event. Since: JDO 2.0
7

postAttach(event)

Method javax.jdo.listener.AttachLifecycleListener void postAttach( InstanceLifecycleEvent event ) This method is called after a detached instance is attached, via the javax.jdo.PersistenceManager ... AttachCallback.jdoPostAttach on the persistent instance. Parameters: event - the attach 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

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

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

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

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