About detach

81-90 of 162Refresh
JDO Doc
4

getTarget()

Method 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. Returns: The detached instance for preDetach and postAttach
JDO Doc
4

javax.jdo.JDODetachedFieldAccessException

is detached. Since: JDO 2.0 JDODetachedFieldAccessException() Constructs a new
JDO Doc
4

jdoPreAttach()

Method 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
JPA Doc
4

lock(entity, lockMode)

is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException
JPA Doc
4

lock(entity, lockMode, properties)

is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException
JDO Doc
4

makePersistentAll(pcs)

Method javax.jdo.PersistenceManager T[] makePersistentAll(   T... pcs ) Make an array of instances persistent. Parameters: pcs - an array of instances Returns: the parameter instances for parameters in the transient or persistent state, or the corresponding persistent instance for detached
JDO Doc
4

makePersistentAll(pcs)

instance for detached parameter instances, with an iteration in the same order as in the parameter
JPA Doc
4

remove(entity)

Method javax.persistence.EntityManager void remove(   Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity
JDO Doc
4

setDetachmentRoots(roots)

Method javax.jdo.FetchPlan FetchPlan setDetachmentRoots(   Collection roots ) Set the roots for DetachAllOnCommit. Parameters: roots - Collection of the detachment roots. Since: JDO 2.0
Issue
4

TYE NullPointerException

a lazy collection that has not been loaded in a detached entity object. Build 2.3.1_03 should fix ... - if it has not been loaded before detachment). If an unexpected exception (e.g. NullPointerException or ... you mention the entity is detached though as that wasnt the intention in this case