Home » JDO » PersistenceCapable » jdoIsNew() - JDO PersistenceCapable's method

jdoIsNew() - JDO PersistenceCapable's method

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.

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

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.