Interface ChangeSet
-
- All Known Subinterfaces:
MutableChangeSet
- All Known Implementing Classes:
DefaultChangeSet
public interface ChangeSetRepresents whole change set what have been modified in models.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanallowEmptyUpdate()Allows empty updates (by default) or not.java.util.Collection<EntityRecord>getEntityRecords()Gets immutable collections with entity records.java.util.Map<java.lang.String,RelationChanges>getRelationChanges()Gets immutable map with all relation changesets.booleanisJaloWayRecommended()Provides info, if jalo way is recommended (instead of direct persistence)ChangeSetwithAdded(ChangeSet otherChangeSet)Creates a new ChangeSet that contains the sum of EntityRecords and RelationChanges from this ChangeSet and otherChangeSet
-
-
-
Method Detail
-
getEntityRecords
java.util.Collection<EntityRecord> getEntityRecords()
Gets immutable collections with entity records.- Returns:
- collection of records
-
getRelationChanges
java.util.Map<java.lang.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
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),falseotherwise
-
-