ObjectDB ObjectDB

jdoIsNew() - JDO PersistenceCapable's method

Method
javax.jdo.spi.PersistenceCapable
boolean jdoIsNew()

Tests whether this object has been newly made persistent. Instances that have been made persistent in the current transaction return true.

Transient instances return false.

Returns:
true if this instance was made persistent in the current transaction.
Since:
JDO 1.0
See Also:
javax.jdo.JDOHelper.isNew(Object pc)
PersistenceManager.makePersistent(Object pc)