Internal Website Search

101-150 of 200 results

Tomcat + JPA Problem

sending context initialized event to listener instance of class OcspServer.CertEntryListener java.lang ... to the tomcat directory ( context .xml). In my opinion this caused the trouble. Another Question ... The database location is specified on: http://www.objectdb.com/tutorial/jpa/eclipse/web/ listener

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

_persistence_ context _in_stateful This however has the consequence of a long conversation until the stateful ... lazy relationships after they are detached as long as the context is still avalable ... only once, and not in any way related to extended EntityManager or persistence context . - "container detached

javax.persistence.ExcludeSuperclassListeners

JPA Annotation ExcludeSuperclassListeners Target: TYPE Implemented Interfaces: Annotation Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: JPA 1.0 The JPA Lifecycle Events article explains how to use

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

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

Unexpected error when loading all entity instance

of ObjectDB (e.g. two separate class loader contexts in the same process that function as ... if there are two different class loader contexts (which is common with web applications). support Support Hello, I ... . using a contextDestroyed listener ? During the last corruption did you have hot deployments (i.e

javax.persistence.criteria.CriteriaDelete

to database delete operations. The persistence context is not synchronized with the result

javax.persistence.EntityNotFoundException

. The current transaction, if one is active and the persistence context has been joined

javax.persistence.NamedQuery.lockMode

JPA Annotation Attribute in javax.persistence.NamedQuery LockModeType lockMode default NONE (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction. Since: JPA 2.0

javax.persistence.PersistenceUnit

factory is to be accessed in the environment referencing context ; not needed when dependency injection

javax.persistence.NamedQuery

must be executed in a transaction and the persistence context joined to the transaction. Since: JPA 2.0

javax.persistence.PersistenceUnit.name

JPA Annotation Attribute in javax.persistence.PersistenceUnit String name default "" (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context ; not needed when dependency injection is used. Since: JPA 1.0

javax.persistence.SynchronizationType.SYNCHRONIZED

JPA Enum Constant in javax.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1

javax.persistence.MapKeyJoinColumn.name

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn String name default "" (Optional) The name of the foreign key column for the map key. The table in which it is found depends upon the context . If the join is for a map key for an element collection, the foreign key column is in

javax.persistence.MapKeyJoinColumn

key. The table in which it is found depends upon the context . If the join is for a map key

javax.persistence.SynchronizationType.UNSYNCHRONIZED

JPA Enum Constant in javax.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: JPA 2.1

Query.executeUpdate() - JPA Method

- if there is no transaction or the persistence context has not been joined to the transaction

javax.persistence.MapKeyColumn.name

JPA Annotation Attribute in javax.persistence.MapKeyColumn String name default "" (Optional) The name of the map key column. The table in which it is found depends upon the context . If the map key is for an element collection, the map key column is in the collection table for the map value

Query.getResultStream() - JPA Method

the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking

LoadLifecycleListener.postLoad(event) - JDO Method

JDO Method in 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

InstanceLifecycleEvent.getTarget() - JDO Method

JDO Method in javax.jdo. listener .InstanceLifecycleEvent Object getTarget () The target object of the Event. Although not deprecated, it is recommended that the the methods getPersistentInstance() and getDetachedInstance() be used instead. Return: The detached instance for preDetach and postAttach

InstanceLifecycleEvent.getSource() - JDO Method

JDO Method in javax.jdo. listener .InstanceLifecycleEvent Object getSource () The source object of the Event. Although not deprecated, it is recommended that the the methods getPersistentInstance() and getDetachedInstance() be used instead. Return: The persistent instance on any pre- callback

InstanceLifecycleEvent.getDetachedInstance() - JDO Method

JDO Method in javax.jdo. listener .InstanceLifecycleEvent Object getDetachedInstance () Returns the detached instance involved in the event. Return: The detached instance involved in the event, or null if there was none. See Also: "Section 12.15, Java Data Objects 2.0 Specification" Since: JDO 2.0

InstanceLifecycleEvent.getPersistentInstance() - JDO Method

JDO Method in javax.jdo. listener .InstanceLifecycleEvent Object getPersistentInstance () Returns the persistent instance involved in the event. Return: The persistent instance involved in the event, or null if there was none. See Also: "Section 12.15, Java Data Objects 2.0 Specification" Since: JDO 2.0

InstanceLifecycleEvent.InstanceLifecycleEvent(source,type) - JDO Constructor

JDO Constructor in 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

InstanceLifecycleEvent.getEventType() - JDO Method

JDO Method in javax.jdo. listener .InstanceLifecycleEvent int getEventType () Returns the event type that triggered this event. Return: the event type Since: JDO 2.0

InstanceLifecycleEvent.InstanceLifecycleEvent(source,type,target) - JDO Constructor

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

StoreLifecycleListener.postStore(event) - JDO Method

JDO Method in 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

StoreLifecycleListener.preStore(event) - JDO Method

JDO Method in javax.jdo. listener .StoreLifecycleListener void preStore (    InstanceLifecycleEvent  event ) Invoked whenever a persistent instance is stored, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit . It is called before the method

DeleteLifecycleListener.preDelete(event) - JDO Method

JDO Method in 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

DeleteLifecycleListener.postDelete(event) - JDO Method

JDO Method in 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

CreateLifecycleListener.postCreate(event) - JDO Method

JDO Method in 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

DeleteCallback.jdoPreDelete() - JDO Method

JDO Method in javax.jdo. listener .DeleteCallback void jdoPreDelete () Called before the instance is deleted. This method is called before the state transition to persistent-deleted or persistent-new-deleted. Access to field values within this call are valid. Access to field values

ClearCallback.jdoPreClear() - JDO Method

JDO Method in 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

ClearLifecycleListener.postClear(event) - JDO Method

JDO Method in javax.jdo. listener .ClearLifecycleListener void postClear (    InstanceLifecycleEvent  event ) This method is called after the ClearCallback.jdoPreClear method is invoked on the instance and the fields have been cleared by the JDO implementation. Parameters: event - the clear event. Since: JDO 2.0

ClearLifecycleListener.preClear(event) - JDO Method

JDO Method in javax.jdo. listener .ClearLifecycleListener void preClear (    InstanceLifecycleEvent  event ) This method is called before the implementation calls the instance method ClearCallback.jdoPreClear and before it clears the values in the instance to their Java default values

AttachLifecycleListener.preAttach(event) - JDO Method

JDO Method in javax.jdo. listener .AttachLifecycleListener void preAttach (    InstanceLifecycleEvent  event ) This method is called before a detached instance is attached, via the javax.jdo.PersistenceManager.makePersistent method. The source instance is the detached instance

AttachLifecycleListener.postAttach(event) - JDO Method

JDO Method in javax.jdo. listener .AttachLifecycleListener void postAttach (    InstanceLifecycleEvent  event ) This method is called after a detached instance is attached, via the javax.jdo.PersistenceManager.makePersistent method. The source instance is the corresponding persistent

DetachLifecycleListener.postDetach(event) - JDO Method

JDO Method in javax.jdo. listener .DetachLifecycleListener void postDetach (    InstanceLifecycleEvent  event ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy after the detached copy is made. It is called after the method DetachCallback

DirtyLifecycleListener.postDirty(event) - JDO Method

JDO Method in 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. Since: JDO 2.0

DirtyLifecycleListener.preDirty(event) - JDO Method

JDO Method in 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. Since: JDO 2.0

DetachCallback.jdoPostDetach(detached) - JDO Method

JDO Method in javax.jdo. listener .DetachCallback void jdoPostDetach (   Object detached ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy on the detached instance after the copy is made. Parameters: detached - The corresponding (attached) persistent instance. Since: JDO 2.0

DetachCallback.jdoPreDetach() - JDO Method

JDO Method in javax.jdo. listener .DetachCallback void jdoPreDetach () This method is called during the execution of javax.jdo.PersistenceManager.detachCopy on the persistent instance before the copy is made. Since: JDO 2.0

DetachLifecycleListener.preDetach(event) - JDO Method

JDO Method in javax.jdo. listener .DetachLifecycleListener void preDetach (    InstanceLifecycleEvent  event ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy before the detached copy is made. It is called before the method DetachCallback

AttachCallback.jdoPostAttach(attached) - JDO Method

JDO Method in javax.jdo. listener .AttachCallback void jdoPostAttach (   Object attached ) This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the persistent instance after the copy is made. Parameters: attached The - corresponding (non

AttachCallback.jdoPreAttach() - JDO Method

JDO Method in javax.jdo. listener .AttachCallback void jdoPreAttach () This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made. Since: JDO 2.0