ObjectDB ObjectDB

isDirty(pc) - JDO StateInterrogation's method

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

Tests whether the parameter instance is dirty. Instances that have been modified, deleted, newly made persistent in the current transaction, or modified while detached return Boolean.TRUE.

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

Instances not recognized by the implementation return null.

Parameters:
pc - the instance.
Returns:
Boolean.TRUE if the parameter instance has been modified in the current transaction, or while detached.
Since:
JDO 2.0
See Also:
StateManager.makeDirty(PersistenceCapable pc, String fieldName)
PersistenceCapable.jdoIsDirty()