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 Summary
Modifier and TypeMethodDescriptiondefault booleanAllows empty updates (by default) or not.Gets immutable collections with entity records.Gets immutable map with all relation changesets.default Collection<PersistResult>getResultsToInvalidate(Set<PersistResult> results) booleanProvides info, if jalo way is recommended (instead of direct persistence)Creates a new ChangeSet that contains the sum of EntityRecords and RelationChanges from this ChangeSet and otherChangeSet
-
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,falseby default (direct persistence)
-
withAdded
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),falseotherwise
-
getResultsToInvalidate
-