Return-Path:
The various lifecycle states supported by JDO are shown below. -
Name | Description |
---|---|
Transient | Any object created by the developer that do are not persisted. These don't have a JDO identity. |
Persistent New | Any object that is newly persisted in the current transaction. A JDO identity has been assigned to these objects. |
Persistent Dirty | Any persistent object that has been changed in the current transaction. |
Hollow | Any persistent object that represents data in the datastore, but whose values are not in the instance. |
Persistent Clean | Any persistent object that represents data in the datastore, and whose values have not been changed in the current transaction. |
Persistent Deleted | Any persistent object that represents data in the datastore, and that has been deleted in the cur rent transaction. |
Persistent New Deleted | Any object that have been newly made persistent and then deleted in the same current transaction. |
Persistent Non transactional | Any persistent object that represents data in the datastore, whose values are loaded but not transactionally consistent. |
Persistent Non transactional Dirty | Any persistent object that represents data in the datastore, whose values are loaded but not transactionally consistent, and that has been modified. |
Transient Clean | Any transient object that represents a transactional instance whose values have not been changed in the current transaction. |
Transient Dirty | Any transient object that represents a transactional instance whose values have been changed in the current transaction. |
Detached Clean | Any detached object that represents a persistent instance whose values have not been changed since detaching. |
Detached Dirty | Any detached object that represents a persistent instance whose values have been changed since detaching. |
+
Name | Description |
---|---|
Transient | Any object created by the developer that do are not persisted. These don't have a JDO identity. |
Persistent New | Any object that is newly persisted in the current transaction. A JDO identity has been assigned to these objects. |
Persistent Dirty | Any persistent object that has been changed in the current transaction. |
Hollow | Any persistent object that represents data in the datastore, but whose values are not in the instance. |
Persistent Clean | Any persistent object that represents data in the datastore, and whose values have not been changed in the current transaction. |
Persistent Deleted | Any persistent object that represents data in the datastore, and that has been deleted in the cur rent transaction. |
Persistent New Deleted | Any object that have been newly made persistent and then deleted in the same current transaction. |
Persistent Non transactional | Any persistent object that represents data in the datastore, whose values are loaded but not transactionally consistent. |
Persistent Non transactional Dirty | Any persistent object that represents data in the datastore, whose values are loaded but not transactionally consistent, and that has been modified. |
Transient Clean | Any transient object that represents a transactional instance whose values have not been changed in the current transaction. |
Transient Dirty | Any transient object that represents a transactional instance whose values have been changed in the current transaction. |
Detached Clean | Any detached object that represents a persistent instance whose values have not been changed since detaching. |
Detached Dirty | Any detached object that represents a persistent instance whose values have been changed since detaching. |
JDO provides a class JDOHelper that allows you to interrogate the object state via its attributes (isPersistent(), isDeleted(), etc). In JDO 2.1 for JDKs 1.5+ JDOHelper is extended to also provide a method that gives the full object state.
@@ -81,5 +81,5 @@