Interface ChangeSet

All Known Subinterfaces:
MutableChangeSet
All Known Implementing Classes:
DefaultChangeSet

public interface ChangeSet
Represents whole change set what have been modified in models.
  • Method Details

    • getEntityRecords

      Collection<EntityRecord> getEntityRecords()
      Gets immutable collections with entity records.
      Returns:
      collection of records
    • getRelationChanges

      Map<String,RelationChanges> getRelationChanges()
      Gets immutable map with all relation changesets.
      Returns:
      map of relation changes where key is the relation name and value RelationChanges object
    • isJaloWayRecommended

      boolean isJaloWayRecommended()
      Provides info, if jalo way is recommended (instead of direct persistence)
      Returns:
      true, if jalo way is recommended, false by default (direct persistence)
    • withAdded

      ChangeSet withAdded(ChangeSet otherChangeSet)
      Creates a new ChangeSet that contains the sum of EntityRecords and RelationChanges from this ChangeSet and otherChangeSet
      Returns:
      new ChangeSet containing changes from this ChangeSet and otherChangeSet
    • allowEmptyUpdate

      default boolean allowEmptyUpdate()
      Allows empty updates (by default) or not.
      Returns:
      true, if empty updates are allowed (by default), false otherwise
    • getResultsToInvalidate

      default Collection<PersistResult> getResultsToInvalidate(Set<PersistResult> results)