Class PrimitiveCollectionAttributePopulator
- java.lang.Object
-
- de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
-
- de.hybris.platform.inboundservices.persistence.populator.AbstractCollectionAttributePopulator
-
- de.hybris.platform.inboundservices.persistence.populator.PrimitiveCollectionAttributePopulator
-
- All Implemented Interfaces:
AttributePopulator
public class PrimitiveCollectionAttributePopulator extends AbstractCollectionAttributePopulator
Populates a collection of primitives
-
-
Constructor Summary
Constructors Constructor Description PrimitiveCollectionAttributePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<java.lang.Object>getNewCollection(ItemModel item, TypeAttributeDescriptor attributeDescriptor, PersistenceContext context)Get the collection of values from the context to be persistedprotected booleanisApplicable(TypeAttributeDescriptor attribute, PersistenceContext context)Determines whether a specific implementation can provide value for the specified attribute.voidsetPrimitiveValueHandler(PrimitiveValueHandler primitiveValueHandler)-
Methods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractCollectionAttributePopulator
combineAttributeValues, getExistingCollection, populateAttribute
-
Methods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isNew, populate, setModelService
-
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(TypeAttributeDescriptor attribute, PersistenceContext context)
Description copied from class:AbstractAttributePopulatorDetermines whether a specific implementation can provide value for the specified attribute.- Specified by:
isApplicablein classAbstractAttributePopulator- Parameters:
attribute- attribute to make the decision about.context- context that may be needed to make the decision.- Returns:
true, if this attribute processor is applicable to the specified attribute and can provide a value for it;false, otherwise.
-
getNewCollection
protected java.util.Collection<java.lang.Object> getNewCollection(ItemModel item, TypeAttributeDescriptor attributeDescriptor, PersistenceContext context)
Description copied from class:AbstractCollectionAttributePopulatorGet the collection of values from the context to be persisted- Specified by:
getNewCollectionin classAbstractCollectionAttributePopulatorattributeDescriptor- Contains information that describes the attributecontext- Contains the data to persist- Returns:
- Collection of values to persist
-
setPrimitiveValueHandler
public void setPrimitiveValueHandler(PrimitiveValueHandler primitiveValueHandler)
-
-