ObjectDB Database Search

1-50 of 61 results

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.

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 ... defines all the supported callback methods with empty implementations: @Entity public static class

javax.persistence.ValidationMode.CALLBACK

JPA Enum Constant in javax.persistence.ValidationMode CALLBACK The persistence provider must perform the lifecycle event validation. It is an error if there is no Bean Validation provider present in the environment. Since: JPA 2.0

JDO Internal Callbacks

All about JDO Internal Callbacks in Java/JPA database - explanations, examples, references, links and related information.

ObjectDB Object Database Features

callback methods and listener classes . JDO callback methods and listener classes. Primary Keys

JPA Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks : Java EE container annotations: Many

openejb jpa jaas module

.security.auth. callback .*; import javax.security.auth.login.LoginException; import javax.security.auth.spi ... authentication information from the user"); final Callback [] callbacks = new Callback [2]; callbacks [0] = new NameCallback(null); callbacks [1] = new PasswordCallback(null, false); try { callbackHandler

Working with a cleared cache

well. carr.onstott Carr Onstott It is unclear from the stack trace which callback is invoked ... event callbacks . ObjectDB should produce better error messages, but if the same code works outside the callback method - the solution should be based on using it not in a callback method. support Support

Best practice: Database update/migration of embedded databases in products

a JPA event callback to make the conversion. In V1.1 your class will include the following fields ... a PostLoad callback (if not null ) to name . Only name will be used by the application (except in the conversion callback method). Similarly, in v2.0, your class will include the following fields

turn off auto-serialization

; moreover that exception is raised before any preStore callback or listener so I could not check field structure and I'm unable to change for example instance of Class into their names in jdoPreStore() callback Tomasz ... ;  Yes, you are right, wrong config file and I waited for callback i embeded entity, my fault.   Tomasz Tomasz Wozniak

javax.persistence.EntityListeners

JPA Annotation EntityListeners Target: TYPE Implemented Interfaces: Annotation Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied ... how to use EntityListeners . Public Annotation Attributes Class[] value default null The callback listener classes Since: JPA 1.0

javax.persistence.PostLoad

JPA Annotation PostLoad Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PostPersist

JPA Annotation PostPersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PostRemove

JPA Annotation PostRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PostUpdate

JPA Annotation PostUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PrePersist

JPA Annotation PrePersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PreRemove

JPA Annotation PreRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

javax.persistence.PreUpdate

JPA Annotation PreUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method 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 The JPA Lifecycle Events

auto generate timestamp

the timestamp in an ordinary Date / Timestamp field and update it in an event callback method ... future versions. You can, however, use the server time in the event callback by running a query (not very efficient but should work). support Support

@Column length is not working.

a lifecycle event callback . support Support i think implementation of lifecycle event callback is expensive

javax.persistence.EntityListeners.value

JPA Annotation Attribute in javax.persistence.EntityListeners Class[] value default null The callback listener classes Since: JPA 1.0

javax.persistence.ValidationMode

.0 CALLBACK The persistence provider must perform the lifecycle event validation. It is an error

Error 363 - Failed to read value of inverse relationship

log is as follows:   WARNING: DTX5014: Caught exception in beforeCompletion() callback

Partial Indexing

. You can keep that partial field synchronized with the main field by using a callback method  (which will be annotated

How to package orm.xml when using EJB in WAR?

: Caught exception in beforeCompletion() callback : [ObjectDB 2.2.9_08] javax.persistence

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

: Caught exception in beforeCompletion() callback : [ObjectDB 2.6.9_06] javax.persistence ... .run(Thread.java:745) Warning: DTX5015: Caught exception in afterCompletion() callback : [ObjectDB 2.6 ... afterCompletion() callback : [ObjectDB 2.6.9_06] javax.persistence.TransactionRequiredException

javax.jdo.InstanceCallbacks

, StoreCallback A PersistenceCapable class that provides callback methods for life cycle events ... over callbacks , for example to allow a class to implement the load callback without implementing any of the other callbacks . For backward compatibility with JDO 1.0, the InstanceCallbacks interface is preserved

javax.jdo.PersistenceManager

, the application should use the jdoPostAttach callback or the postAttach lifecycle event listener ... . During attachment of detached instances, the attach callbacks and attach life cycle listeners ... the fetch plan is done after calling the user's beforeCompletion callback . During afterCompletion

javax.jdo.spi.PersistenceCapable

- the field whose value is to be provided by a callback to the StateManager's providedXXXField method ... . Parameters: fieldNumbers - the fields whose values are to be provided by multiple callbacks ... identified by number. Parameters: fieldNumber - the field whose value is to be replaced by a callback

Object DB Explorer fails to open database

. Towfique Imam Thank you for this report. There was a problem in handling listeners and callback methods

ObjectDB 2.1.1

Fixed an  Explorer bug in handling listeners and callbacks . Fixed a bug in using user/password url arguments multiple times. Fixed several bugs in query processing and running.

InternalException - error reading field from "queue" database

I trying to use an objectdb database as a persitent queue but have started getting the following error on the receiver side: 2011-07-25 10:54:25,023 AdminServer- Callback -Instance-2/0 ERROR ServiceRunner - Error processing message. rbccm.felix.framework.ApplicationException: Error taking message

ObjectDB 2.2.9

of a JOIN query . Fixed a recursive @PreUpdate call bug (when the callback updates the entity).

@PrePersist not working correctly

the event callback method. Notice, however, that using merge as a replacement of persist

PersistenceManager.makePersistent(pc) - JDO Method

should use the jdoPostAttach callback or the postAttach lifecycle event listener. Any references ... instances, the attach callbacks and attach life cycle listeners are called. During application

PersistenceManager.setDetachAllOnCommit(flag) - JDO Method

is done after calling the user's beforeCompletion callback . During afterCompletion , before calling the user's afterCompletion callback , all detachable persistent instances in the cache transition

javax.jdo.Query

the delete callback interface, the corresponding callback methods are called on the deleted instances

Query.deletePersistentAll() - JDO Method

implements the delete callback interface, the corresponding callback methods are called on the deleted

javax.jdo.Transaction

with the Transaction . If the application requires more than one instance to receive synchronization callbacks , then the single application instance is responsible for managing them, and forwarding callbacks

javax.jdo.listener.InstanceLifecycleEvent

- callback except preAttach, or the detached instance for a postDetach or preAttach callback

InstanceLifecycleEvent.getSource() - JDO Method

() and getDetachedInstance() be used instead. Return: The persistent instance on any pre- callback except preAttach, or the detached instance for a postDetach or preAttach callback

javax.jdo.listener.InstanceLifecycleListener

JDO Interface InstanceLifecycleListener All lifecycle listeners extend from this base interface. In order to minimize the impact on domain classes, instance callbacks can be defined to use a life-cycle listener pattern instead of having the domain class implement the callback interface(s). Since: JDO 2.0

Transaction.setSynchronization() - JDO Method

requires more than one instance to receive synchronization callbacks , then the single application instance is responsible for managing them, and forwarding callbacks to them. Parameters: sync

javax.jdo.JDOUserCallbackException

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

javax.jdo.listener.DeleteLifecycleListener

callback DeleteCallback.jdoPreDelete . Parameters: event - the delete event. Since: JDO 2.0

DeleteLifecycleListener.preDelete(event) - JDO Method

. This method is called before the instance callback DeleteCallback.jdoPreDelete . Parameters: event - the delete event. Since: JDO 2.0

PersistenceCapable.jdoProvideField(fieldNumber) - JDO Method

is to be provided by a callback to the StateManager's providedXXXField method Since: JDO 1.0

PersistenceCapable.jdoProvideFields(fieldNumbers) - JDO Method

are to be provided by multiple callbacks to the StateManager's providedXXXField method Since: JDO 1.0

PersistenceCapable.jdoReplaceField(fieldNumber) - JDO Method

a callback to the StateManager's replacingXXXField method Since: JDO 1.0

PersistenceCapable.jdoReplaceFields(fieldNumbers) - JDO Method

are to be replaced by multiple callbacks to the StateManager's replacingXXXField method Since: JDO 1.0