Interface MutableChangeSet
-
- All Superinterfaces:
ChangeSet
- All Known Implementing Classes:
DefaultChangeSet
public interface MutableChangeSet extends ChangeSet
MutableChangeSet interface for creating changeset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(EntityRecord... entityRecords)Adds new entity records to change set.voidaddAllEntityRecords(java.util.Collection<? extends EntityRecord> entityRecords)Adds new entity records to change set.voidfinish()RelationChangesgetRelationChangesForRelation(java.lang.String relationName)Gets relation changes for single relation type identified by name.voidgroupOrderInformation()Group together information about order (position) where possible.voidputRelationChanges(java.lang.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.voidsortEntityRecords()Sorts collection of entity records by PK.-
Methods inherited from interface de.hybris.platform.directpersistence.ChangeSet
allowEmptyUpdate, getEntityRecords, getRelationChanges, isJaloWayRecommended, withAdded
-
-
-
-
Method Detail
-
add
void add(EntityRecord... entityRecords)
Adds new entity records to change set.
-
addAllEntityRecords
void addAllEntityRecords(java.util.Collection<? extends EntityRecord> entityRecords)
Adds new entity records to change set.
-
putRelationChanges
void putRelationChanges(java.lang.String relationName, RelationChanges changes)Adds new relation changes for the given relation type.- Parameters:
relationName- Name of relationchanges- Relation changes
-
getRelationChangesForRelation
RelationChanges getRelationChangesForRelation(java.lang.String relationName)
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()
-
-