Class DefaultLocalizedRelationChanges
- java.lang.Object
-
- de.hybris.platform.directpersistence.record.impl.DefaultLocalizedRelationChanges
-
- All Implemented Interfaces:
LocalizedRelationChanges,RelationChanges
public class DefaultLocalizedRelationChanges extends java.lang.Object implements LocalizedRelationChanges
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.directpersistence.record.RelationChanges
RelationChanges.RelationChangesVisitor<V>
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalizedRelationChanges(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.DefaultRelationChangesgetRelationChangeForLanguage(java.util.Locale locale)returns all relation changes for a given localejava.util.Map<java.util.Locale,DefaultRelationChanges>getRelationChanges()returns the localized relation changesRelationMetaInfogetRelationMetaInfo()returns the meta information of relation typevoidgroupOrderInformation()Takes care of grouping/merging the relation changes to avoid e.g duplicates in the change setvoidput(java.util.Locale locale, DefaultRelationChanges changeSet)Allows to add or change the relation changes for a given localejava.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultLocalizedRelationChanges
public DefaultLocalizedRelationChanges(RelationMetaInfo relationMetaInfo)
-
-
Method Detail
-
getRelationChanges
public java.util.Map<java.util.Locale,DefaultRelationChanges> getRelationChanges()
Description copied from interface:LocalizedRelationChangesreturns the localized relation changes- Specified by:
getRelationChangesin interfaceLocalizedRelationChanges- Returns:
- a map containing locales with corresponding relation changes
-
getRelationChangeForLanguage
public DefaultRelationChanges getRelationChangeForLanguage(java.util.Locale locale)
Description copied from interface:LocalizedRelationChangesreturns all relation changes for a given locale- Specified by:
getRelationChangeForLanguagein interfaceLocalizedRelationChanges- Parameters:
locale- locale, for which the lookup will be executed- Returns:
- relation changes for given locale
-
put
public void put(java.util.Locale locale, DefaultRelationChanges changeSet)Description copied from interface:LocalizedRelationChangesAllows to add or change the relation changes for a given locale- Specified by:
putin interfaceLocalizedRelationChanges- Parameters:
locale- locale, for which the relation changes will be associated withchangeSet- relation changes to be associated with the given locale
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
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
-
-