JDO Static Method
in javax.jdo.JDOHelper

void 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.

Transient instances and instances of classes that do not implement PersistenceCapable ignore this method.

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