Home » JDO » JDOHelper » makeDirty(pc, fieldName) - JDO JDOHelper's static method

makeDirty(pc, fieldName) - JDO JDOHelper's static method

Static Method
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.

pc - the PersistenceCapable instance.
fieldName - the name of the field to be marked dirty.
JDO 1.0
See Also:
PersistenceCapable.jdoMakeDirty(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.