Interface MutableChangeSet
- All Superinterfaces:
ChangeSet
- All Known Implementing Classes:
DefaultChangeSet
MutableChangeSet interface for creating changeset.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(EntityRecord... entityRecords) Adds new entity records to change set.voidaddAllEntityRecords(Collection<? extends EntityRecord> entityRecords) Adds new entity records to change set.voidfinish()getRelationChangesForRelation(String relationName) Gets relation changes for single relation type identified by name.voidGroup together information about order (position) where possible.voidputRelationChanges(String relationName, RelationChanges changes) Adds new relation changes for the given relation type.voidsetJaloWayRecommended(boolean jaloWayRecommended) Sets the jaloWayRecommended flag.voidsortAll()Sorts collection of entity records and relation records by PK.voidSorts collection of entity records by PK.Methods inherited from interface de.hybris.platform.directpersistence.ChangeSet
allowEmptyUpdate, getEntityRecords, getRelationChanges, getResultsToInvalidate, isJaloWayRecommended, withAdded
-
Method Details
-
add
Adds new entity records to change set. -
addAllEntityRecords
Adds new entity records to change set. -
putRelationChanges
Adds new relation changes for the given relation type.- Parameters:
relationName- Name of relationchanges- Relation changes
-
getRelationChangesForRelation
Gets relation changes for single relation type identified by name.- Parameters:
relationName- Name of relations
-
sortEntityRecords
void sortEntityRecords()Sorts collection of entity records by PK. -
sortAll
void sortAll()Sorts collection of entity records and relation records by PK. -
groupOrderInformation
void groupOrderInformation()Group together information about order (position) where possible. -
setJaloWayRecommended
void setJaloWayRecommended(boolean jaloWayRecommended) Sets the jaloWayRecommended flag. Only in some rare, exceptional cases this flag should be set to true. If it's set, it means - switching to jalo Way (instead of the direct persistence) is strongly recommended- Parameters:
jaloWayRecommended- jaloWayRecommended flag
-
finish
void finish()
-