Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.
Internal Website Search11-20 of 169 resultsRefresh
Static Field javax.jdo.Constants String PROPERTY_DETACH_ALL_ON_COMMIT "javax.jdo.option.DetachAllOnCommit" Since: JDO 2.1 See Also: PersistenceManagerFactory.getDetachAllOnCommit()
Enum Constant javax.jdo.ObjectState DETACHED_DIRTY Since: JDO 1.0
Enum Constant javax.jdo.ObjectState DETACHED_CLEAN Since: JDO 1.0
Static Field javax.jdo.listener.InstanceLifecycleEvent int DETACH Since: JDO 2.0
: 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
Describes advanced JPA topics - detached entity objects, lock management and entity lifecycle events.
the persistence context, causing all managed entities to become detached. Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed ... pc) void detach(Object entity) Remove the given entity from the persistence context, causing
See Also: deletePersistent(Object pc) T detachCopy(T pc) Detach the specified instance from the PersistenceManager. Detach the specified instance from the PersistenceManager. The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope
A main limitation of detached objects (as explained on the Detached Entities manual page) is: Retrieval by navigation from detached objects is not supported, so only persistent fields that have been loaded before detachment should be used. As explained on the Object DB vs EclipseLink/TopLink
(and so lazy loading would initially work), they become detached once the EntityManager under control ... are involved) to ensure the desired collections are resolved already before detachment, losing ... a FETCH JOIN as described here: Detach JPA objects with lazy initialized properties This has the big