Fast Object Database for Java - with JPA/JDO support

Internal Website Search

1-10 of 200 resultsRefresh
430

Step 3: Add a Context Listener Class

closing the EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
427

Step 3: Add a Context Listener Class

> Other... Select Web > Web Application Listener and click Next. Enter GuestListener as the class name - use ... the new listener class. Now replace the content of the new source file with the following code ... attribute in the servlet context - when the web application starts (contextInitialized). Retrieves
83

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

javax.jdo.listener.LoadCallback

javax.jdo.listener Interface LoadCallback Subinterfaces: InstanceCallbacks This interface is used to notify instances of load events. Since: JDO 2.0 void jdoPostLoad() Called after the values ... in this method. The context in which this call is made does not allow access to other persistent JDO instances. Since: JDO 2.0
50

javax.jdo.listener.StoreCallback

javax.jdo.listener Interface StoreCallback Subinterfaces: InstanceCallbacks This interface is used to notify instances of store events. Since: JDO 2.0 void jdoPreStore() Called before the values ... to persistent fields will be reflected in the data store. The context in which this call is made allows
35

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
34

getPersistenceManagerFactory(jndiLocation, context)

jndiLocation, Context context ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new InitialContext() will be used. This method is equivalent to invoking getPersistenceManagerFactory(String,Context,ClassLoader) with Thread
34

getPersistenceManagerFactory(jndiLocation, context, loader)

jndiLocation, Context context, ClassLoader loader ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new InitialContext ... the PersistenceManagerFactory context - the context in which to find the named PersistenceManagerFactory loader
34

JPA Lifecycle Events

and no more callback methods are invoked for that operation. Listeners and External Callback Methods External callback methods are defined outside entity classes in a special listener class: public class ... ) {} @PostRemove void onPostRemove(Object o) {} } External callback methods (in a listener class
27

[ODB1] Chapter 8 - ObjectDB Server

to listen to To start the server, use the start command: > java com.objectdb.Server start ... when you extract a newer version of the ObjectDB server. The TPC port on which the server is listening for new ... can also be used with the stop and restart commands. However, in this context, you must use the same port

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