56 words

isNew(pc) - JDO JDOHelper's static method

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

Tests whether the parameter instance has been newly made persistent. Instances that have been made persistent in the current transaction 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 was made persistent in the current transaction.
Since:
JDO 1.0
See Also:
PersistenceManager.makePersistent(Object pc)
PersistenceCapable.jdoIsNew()

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.