Class ChangeRecord

java.lang.Object
cz.cvut.kbss.jopa.sessions.change.ChangeRecord

public class ChangeRecord extends Object
Record of a single change to an attribute.
  • Constructor Details

  • Method Details

    • getNewValue

      public Object getNewValue()
      Returns the new value of the attribute.
      Returns:
      Object
    • setNewValue

      public void setNewValue(Object value)
      Sets the new value of the attribute in case this change record needs to be updated.
      Parameters:
      value - The value to set
    • getAttribute

      public FieldSpecification<?,?> 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

      public String toString()
      Overrides:
      toString in class Object