Class ChangeCalculator

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

public class ChangeCalculator extends Object
Calculates changes made on objects by comparing a clone with its registered original.
  • Constructor Details

  • Method Details

    • calculateChanges

      public boolean calculateChanges(ObjectChangeSet changeSet)
      Calculates the changes that happened to the clone object.

      The changes are written into the Change passed in as argument.

      Parameters:
      changeSet - Contains references to the original and clone objects. Into this change set the changes should be propagated
      Returns:
      true if there were any changes, false otherwise
      Throws:
      NullPointerException - If changeSet is null