ObjectDB ObjectDB

Internal Website Search

61-70 of 142 resultsRefresh

Database is erased after deploying a new web application version

manager? Should I set some kind of listener? Yotam Yotam Boaz You can set a listener for creating and destroying the EntityManagerFactory: https://www.objectdb.com/tutorial/jpa/eclipse/web/listener ... . On that example the listener is defined in a web.xml file (added automatically by Eclipse). Alternatively


javax.persistence Annotation PreUpdate Target: Callback methods Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 Learn how to define and use JPA


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

InstanceLifecycleEvent(source, type)

Constructor javax.jdo.listener.InstanceLifecycleEvent InstanceLifecycleEvent( Object source, int type ) Creates a new event object with the specified source and type. Parameters: source - the instance that triggered the event type - the event type Since: JDO 2.0


Method javax.jdo.listener.DeleteLifecycleListener void preDelete( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager.deletePersistent. Access to field values within this call are permitted. This method is called before


Method javax.jdo.listener.DeleteLifecycleListener void postDelete( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager.deletePersistent. This method is called after the instance transitions to persistent-deleted. Access


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


This class represents exceptions caused by exceptions thrown during execution of callbacks or listeners


Method javax.jdo.listener.ClearCallback void jdoPreClear() Called before the values in the instance are cleared. Transient fields should be cleared in this method. Associations between this instance and others in the runtime environment should be cleared. This method is not modified by the enhancer. Since: JDO 2.0


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

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