Home » Search

About detached

1-10 of 157Refresh
Manual
279

Detached Entity Objects

Detached entity objects are objects in a special state in which they are not managed by any EntityManager but still represent objects in the database. Compared to managed entity objects, detached objects are limited in functionality: Many JPA methods do not accept detached objects (e.g. lock
Manual
82

Working with JPA Entity Objects

: New, Managed, Removed and Detached. When an entity object is initially created its state is New.  In ... deletion are provided in the Deleting Entities section. The last state, Detached, represents entity ... of an EntityManager become detached when the EntityManager is closed. Working with detached objects
JDO Doc
61

javax.jdo.spi.Detachable

javax.jdo.spi Interface Detachable This interface is implemented by classes that can be detached ... so they are preserved while outside the persistence environment. The detached state is stored as a field in each instance of Detachable. The field is serialized so as to maintain the state of the instance
JPA Doc
56

detach(entity)

Method javax.persistence.EntityManager void detach(   Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes ... which previously referenced the detached entity will continue to reference it. Parameters: entity
JDO Doc
56

jdoPostDetach(detached)

Method 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
JDO Doc
56

jdoReplaceDetachedState()

Method javax.jdo.spi.Detachable void jdoReplaceDetachedState() This method calls the StateManager with the current detached state instance as a parameter and replaces the current detached state instance with the value provided by the StateManager. Since: JDO 2.0
JPA Doc
54

CascadeType.DETACH

Enum Constant javax.persistence.CascadeType DETACH Cascade detach operation Since: JPA 2.0
JDO Doc
54

Constants.PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT The name of the persistence manager factory element's "detach-all-on-commit" attribute. Since: JDO 2.1
JDO Doc
54

FetchPlan.DETACH_LOAD_FIELDS

Static Field javax.jdo.FetchPlan int DETACH_LOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions. Specifies that fields that are not loaded but are in the current fetch plan should be loaded prior to detachment. Since: JDO 2.0
JDO Doc
54

FetchPlan.DETACH_UNLOAD_FIELDS

Static Field javax.jdo.FetchPlan int DETACH_UNLOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions. Specifies that fields that are loaded but not in the current fetch plan should be unloaded prior to detachment. Since: JDO 2.0