Class ChangeRecord
java.lang.Object
cz.cvut.kbss.jopa.sessions.change.ChangeRecord
Record of a single change to an attribute.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether this change record prevents caching of the instance on which the change is applied.FieldSpecification<?,
?> Gets the attribute to which this change record is bound.Returns the new value of the attribute.void
Marks this change record to prevent caching.void
setNewValue
(Object value) Sets the new value of the attribute in case this change record needs to be updated.toString()
-
Constructor Details
-
ChangeRecord
-
-
Method Details
-
getNewValue
Returns the new value of the attribute.- Returns:
- Object
-
setNewValue
Sets the new value of the attribute in case this change record needs to be updated.- Parameters:
value
- The value to set
-
getAttribute
Gets the attribute to which this change record is bound.- Returns:
- the attribute
-
preventCaching
public void preventCaching()Marks this change record to prevent caching.- See Also:
-
doesPreventCaching
public boolean doesPreventCaching()Whether this change record prevents caching of the instance on which the change is applied.- Returns:
- Whether this change record prevents caching
-
toString
-