ObjectDB ObjectDB

Internal Website Search

11-20 of 159 resultsRefresh
137

Entity listener - event instead of object

store separate entity for given event. Right now I'm using BaseEntity which contains @ElementCollection private Set<ActivityLog> activities; This way I can add events to given object without using EM ...     public final boolean onPreUpdate(PreUpdateEvent event) {         try {             // TODO : need
36

JPA Primary Key

system that detects events from various sensors and stores the details in a database. Each event is represented by an Event entity object that holds time, sensor ID and additional details. Suppose that queries that retrieve all the events of a specified sensor in a specified period are common
7

postStore(event)

Method javax.jdo.listener.StoreLifecycleListener void postStore( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is stored, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit. It is called after the field values have been stored. Parameters: event - the store event. Since: JDO 2.0
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

preDirty(event)

Method javax.jdo.listener.DirtyLifecycleListener void preDirty( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field. Called before the value is changed. Parameters: event - Since: JDO 2.0
7

postDirty(event)

Method javax.jdo.listener.DirtyLifecycleListener void postDirty( InstanceLifecycleEvent event ) Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field. Called after the value is changed. Parameters: event - Since: JDO 2.0
7

registerClass(event)

Method javax.jdo.spi.RegisterClassListener void registerClass( RegisterClassEvent event ) This method gets called when a persistence-capable class is registered. Parameters: event - a RegisterClassEvent instance describing the registered class plus metadata. Since: JDO 1.0
6

Constants.OPTION_PREDIRTY_EVENT

Static Field javax.jdo.Constants String OPTION_PREDIRTY_EVENT "javax.jdo.option.PreDirtyEvent" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()
2

[ODB1] Chapter 3 - Persistent Classes

. 3.4 InstanceCallbacks The javax.jdo.InstanceCallbacks interface represents events in a persistent ... these events. Four methods are defined in the InstanceCallbacks interface: void jdoPostLoad() Called ... on rollback). This event is rarely used. Other persistent objects and even persistent fields in

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