ObjectDB ObjectDB

isPersistent(pc) - JDO StateManager's method

Method
javax.jdo.spi.StateManager
boolean isPersistent(
  PersistenceCapable pc
)

Tests whether this object is persistent. Instances whose state is stored in the data store return true.

Transient instances return false.

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