ObjectDB ObjectDB

isPersistent(pc) - JDO JDOHelper's static method

Static Method
javax.jdo.JDOHelper
boolean isPersistent(
  Object pc
)

Tests whether the parameter instance is persistent. Instances that represent persistent objects in the data store return true.

Transient instances and instances of classes that do not implement PersistenceCapable return false.

Parameters:
pc - the PersistenceCapable instance.
Returns:
true if the parameter instance is persistent.
Since:
JDO 1.0
See Also:
PersistenceManager.makePersistent(Object pc)
PersistenceCapable.jdoIsPersistent()