51 words

isPersistent(pc) - JDO StateInterrogation's method

Method
javax.jdo.spi.StateInterrogation
Boolean isPersistent(
  Object pc
)

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

Instances known by the implementation to be non-persistent return Boolean.FALSE.

Instances not recognized by the implementation return null.

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

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.