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
Populates a collection of primitives
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<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, populateAttributeMethods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isNew, populate, setModelService
-
Constructor Details
-
PrimitiveCollectionAttributePopulator
public PrimitiveCollectionAttributePopulator()
-
-
Method Details
-
isApplicable
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 Collection<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
-