About detached

81-90 of 158Refresh
JDO Doc
3

javax.jdo.JDODetachedFieldAccessException

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

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
3

lock(entity, lockMode)

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

lock(entity, lockMode, properties)

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

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
3

makePersistentAll(pcs)

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

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
3

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
3

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
Issue
3

spuriously objectdb objects have null references

>(); ...       When an entity object is detached (e.g. when the EntityManager is closed), ObjectDB replaces lazy loaded collections that have not been loaded with null values. Detached objects ... after detachment. This way you can easily tell the difference (after detachment) between a collection