ObjectDB ObjectDB

makeDirty(pc, fieldName) - JDO StateInterrogation's method

boolean makeDirty(
  Object pc,
  String fieldName

Explicitly mark the parameter instance and field dirty. Normally, PersistenceCapable classes are able to detect changes made to their fields. However, if a reference to an array is given to a method outside the class, and the array is modified, then the persistent instance is not aware of the change. This API allows the application to notify the instance that a change was made to a field.

Instances unknown by the implementation are unaffected.

pc - the instance.
fieldName - the name of the field to be marked dirty.
JDO 2.0
See Also:
PersistenceCapable.jdoMakeDirty(String fieldName)