Home » JDO » JDOHelper » isDirty(pc) - JDO JDOHelper's static method

isDirty(pc) - JDO JDOHelper's static method

Static Method
boolean isDirty(
  Object pc

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

Transient instances and instances of classes that do not implement PersistenceCapable return false.

pc - the PersistenceCapable instance.
true if the parameter instance has been modified in the current transaction.
JDO 1.0
See Also:
javax.jdo.spi.StateManager.makeDirty(PersistenceCapable pc, String fieldName)

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.