106 words
makeDirty(pc, fieldName) - JDO JDOHelper's static method
Static Methodjavax.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- thePersistenceCapableinstance.fieldName- the name of the field to be marked dirty.
- Since:
- JDO 1.0
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.