ObjectDB ObjectDB

Internal Website Search

31-40 of 160 resultsRefresh
11

Chapter 3 - Using JPA

This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: The next section explains how to use JPA for database CRUD operations: More advanced topics (e.g. locking and events) are discussed in the last section:
11

Eclipse Distribution License - v 1.0

NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL
11

Apache License, Version 2.0, January 2004

associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event
1

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

JDO Internal Callbacks

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

javax.jdo.listener.DeleteLifecycleListener

This interface is implemented by listeners to be notified of delete events. Since: JDO 2.0 void postDelete( InstanceLifecycleEvent event) Invoked whenever a persistent instance is deleted, for example ... : event - the delete event. Since: JDO 2.0 void preDelete( InstanceLifecycleEvent event) Invoked
0

javax.jdo.listener.ClearLifecycleListener

This interface is implemented by listeners to be notified of clear events. Since: JDO 2.0 void postClear( InstanceLifecycleEvent event) This method is called after the ClearCallback.jdoPreClear method ... have been cleared by the JDO implementation. Parameters: event - the clear event. Since: JDO 2.0 void
0

javax.jdo.listener.AttachLifecycleListener

This interface is implemented by listeners to be notified of attach events. Since: JDO 2.0 void postAttach( InstanceLifecycleEvent event) This method is called after a detached instance is attached ... . Parameters: event - the attach event. Since: JDO 2.0 void preAttach( InstanceLifecycleEvent event
0

javax.jdo.JDOEntityManager

the listener instance to the list of lifecycle event listeners. Adds the listener instance to the list of lifecycle event listeners. The classes parameter identifies all of the classes of interest. If the classes parameter is specified as null, events for all persistent classes and interfaces
0

javax.jdo.listener.StoreLifecycleListener

This interface is implemented by listeners to be notified of store events. Since: JDO 2.0 void postStore( InstanceLifecycleEvent event) Invoked whenever a persistent instance is stored, for example ... .commit. It is called after the field values have been stored. Parameters: event - the store event

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