Class DefaultNonLocalizedRelationChanges
- java.lang.Object
-
- de.hybris.platform.directpersistence.record.impl.DefaultNonLocalizedRelationChanges
-
- All Implemented Interfaces:
DefaultRelationChanges,RelationChanges
public class DefaultNonLocalizedRelationChanges extends java.lang.Object implements DefaultRelationChanges
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.directpersistence.record.RelationChanges
RelationChanges.RelationChangesVisitor<V>
-
-
Constructor Summary
Constructors Constructor Description DefaultNonLocalizedRelationChanges(RelationMetaInfo relationMetaInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Vaccept(RelationMetaInfo metaInfo, RelationChanges.RelationChangesVisitor<V> visitor)Accepts the relation changes visitor which will build necessary data for further persistence processing.voidadd(InsertManyToManyRelationRecord... records)Allows to add new many to many relation records to be insertedvoidadd(InsertOneToManyRelationRecord... records)Allows to add new one to many relation records to be insertedvoidadd(RemoveManyToManyRelationsRecord... records)Allows to add new many to many relation records to be removedvoidadd(RemoveOneToManyRelationsRecord... records)Allows to add new one to many relation records to be clearedjava.util.Collection<InsertManyToManyRelationRecord>getInsertManyToManyRelationRecords()returns the many to many relation records too be insertedjava.util.Collection<InsertOneToManyRelationRecord>getOneToManyRelationRecords()returns the one to many relation records to be insertedRelationMetaInfogetRelationMetaInfo()returns the meta information of relation typejava.util.Collection<RemoveManyToManyRelationsRecord>getRemoveManyToManyRelationsRecords()returns the many to many relation records too be removedjava.util.Collection<RemoveOneToManyRelationsRecord>getRemoveOneToManyRelationsRecords()voidgroupOrderInformation()Takes care of grouping/merging the relation changes to avoid e.g duplicates in the change setjava.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultNonLocalizedRelationChanges
public DefaultNonLocalizedRelationChanges(RelationMetaInfo relationMetaInfo)
-
-
Method Detail
-
getInsertManyToManyRelationRecords
public java.util.Collection<InsertManyToManyRelationRecord> getInsertManyToManyRelationRecords()
Description copied from interface:DefaultRelationChangesreturns the many to many relation records too be inserted- Specified by:
getInsertManyToManyRelationRecordsin interfaceDefaultRelationChanges- Returns:
- collection of many to many relation records to be inserted
-
getRemoveManyToManyRelationsRecords
public java.util.Collection<RemoveManyToManyRelationsRecord> getRemoveManyToManyRelationsRecords()
Description copied from interface:DefaultRelationChangesreturns the many to many relation records too be removed- Specified by:
getRemoveManyToManyRelationsRecordsin interfaceDefaultRelationChanges- Returns:
- collection of many to many relation records to be removed
-
getOneToManyRelationRecords
public java.util.Collection<InsertOneToManyRelationRecord> getOneToManyRelationRecords()
Description copied from interface:DefaultRelationChangesreturns the one to many relation records to be inserted- Specified by:
getOneToManyRelationRecordsin interfaceDefaultRelationChanges- Returns:
- collection of one to many relation records to be inserted
-
getRemoveOneToManyRelationsRecords
public java.util.Collection<RemoveOneToManyRelationsRecord> getRemoveOneToManyRelationsRecords()
- Specified by:
getRemoveOneToManyRelationsRecordsin interfaceDefaultRelationChanges
-
add
public void add(InsertManyToManyRelationRecord... records)
Description copied from interface:DefaultRelationChangesAllows to add new many to many relation records to be inserted- Specified by:
addin interfaceDefaultRelationChanges- Parameters:
records- new many to many relation records to be inserted
-
add
public void add(RemoveManyToManyRelationsRecord... records)
Description copied from interface:DefaultRelationChangesAllows to add new many to many relation records to be removed- Specified by:
addin interfaceDefaultRelationChanges- Parameters:
records- new many to many relation records to be removed
-
add
public void add(RemoveOneToManyRelationsRecord... records)
Description copied from interface:DefaultRelationChangesAllows to add new one to many relation records to be cleared- Specified by:
addin interfaceDefaultRelationChanges
-
add
public void add(InsertOneToManyRelationRecord... records)
Description copied from interface:DefaultRelationChangesAllows to add new one to many relation records to be inserted- Specified by:
addin interfaceDefaultRelationChanges- Parameters:
records- new many to many relation records to be inserted
-
groupOrderInformation
public void groupOrderInformation()
Description copied from interface:RelationChangesTakes care of grouping/merging the relation changes to avoid e.g duplicates in the change set- Specified by:
groupOrderInformationin interfaceRelationChanges
-
accept
public <V> V accept(RelationMetaInfo metaInfo, RelationChanges.RelationChangesVisitor<V> visitor)
Description copied from interface:RelationChangesAccepts the relation changes visitor which will build necessary data for further persistence processing.- Specified by:
acceptin interfaceRelationChanges
-
getRelationMetaInfo
public RelationMetaInfo getRelationMetaInfo()
Description copied from interface:RelationChangesreturns the meta information of relation type- Specified by:
getRelationMetaInfoin interfaceRelationChanges- Returns:
RelationMetaInfoobject, containing all required relation meta information
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-