public class DefaultChangeSet extends java.lang.Object implements MutableChangeSet
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
| Constructor and Description |
|---|
DefaultChangeSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EntityRecord... entityRecords)
Adds new entity records to change set.
|
void |
addAllEntityRecords(java.util.Collection<? extends EntityRecord> entityRecords)
Adds new entity records to change set.
|
boolean |
allowEmptyUpdate()
Allows empty updates (by default) or not.
|
void |
finish() |
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.
|
RelationChanges |
getRelationChangesForRelation(java.lang.String relationName)
Gets relation changes for single relation type identified by name.
|
void |
groupOrderInformation()
Group together information about order (position) where possible.
|
boolean |
isJaloWayRecommended()
Provides info, if jalo way is recommended (instead of direct persistence)
|
void |
putRelationChanges(java.lang.String relationName,
RelationChanges changeSet)
Adds new relation changes for the given relation type.
|
void |
setJaloWayRecommended(boolean jaloWayRecommended)
Sets the jaloWayRecommended flag.
|
void |
sortAll()
Sorts collection of entity records and relation records by PK.
|
void |
sortEntityRecords()
Sorts collection of entity records by PK.
|
java.lang.String |
toString() |
ChangeSet |
withAdded(ChangeSet otherChangeSet)
Creates a new ChangeSet that contains the sum of EntityRecords and RelationChanges from this ChangeSet and
otherChangeSet
|
public java.util.Collection<EntityRecord> getEntityRecords()
ChangeSetgetEntityRecords in interface ChangeSetpublic void add(EntityRecord... entityRecords)
MutableChangeSetadd in interface MutableChangeSetpublic void addAllEntityRecords(java.util.Collection<? extends EntityRecord> entityRecords)
MutableChangeSetaddAllEntityRecords in interface MutableChangeSetpublic java.util.Map<java.lang.String,RelationChanges> getRelationChanges()
ChangeSetgetRelationChanges in interface ChangeSetpublic void putRelationChanges(java.lang.String relationName,
RelationChanges changeSet)
MutableChangeSetputRelationChanges in interface MutableChangeSetrelationName - Name of relationchangeSet - Relation changespublic RelationChanges getRelationChangesForRelation(java.lang.String relationName)
MutableChangeSetgetRelationChangesForRelation in interface MutableChangeSetrelationName - Name of relationspublic void sortEntityRecords()
MutableChangeSetsortEntityRecords in interface MutableChangeSetpublic void groupOrderInformation()
MutableChangeSetgroupOrderInformation in interface MutableChangeSetpublic void sortAll()
MutableChangeSetsortAll in interface MutableChangeSetpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setJaloWayRecommended(boolean jaloWayRecommended)
MutableChangeSetsetJaloWayRecommended in interface MutableChangeSetjaloWayRecommended - jaloWayRecommended flagpublic void finish()
finish in interface MutableChangeSetpublic boolean isJaloWayRecommended()
ChangeSetisJaloWayRecommended in interface ChangeSettrue, if jalo way is recommended, false by default (direct persistence)public ChangeSet withAdded(ChangeSet otherChangeSet)
ChangeSetpublic boolean allowEmptyUpdate()
ChangeSetallowEmptyUpdate in interface ChangeSettrue, if empty updates are allowed (by default), false otherwiseCopyright © 2018 SAP SE. All Rights Reserved.