ObjectDB ObjectDB

Internal Website Search

1-10 of 169 resultsRefresh
281

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
68

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
63

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
63

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
63

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
62

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
62

CascadeType.DETACH

Enum Constant javax.persistence.CascadeType DETACH Cascade detach operation Since: JPA 2.0
62

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
62

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
62

PersistenceCapable.detachable

Annotation Element javax.jdo.annotations.PersistenceCapable String detachable Whether this class or interface is detachable. Default value: "" Since: JDO 2.1

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

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.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support