Package de.hybris.platform.jalo.type
Class OneToManyRelationAttributeAccess
java.lang.Object
de.hybris.platform.jalo.type.OneToManyRelationAttributeAccess
- All Implemented Interfaces:
AttributeAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue(SessionContext ctx, Item item) Retrieves the attribute data from a given item.voidsetValue(SessionContext ctx, Item item, Object value) Stores the attribute data for a given item.
-
Constructor Details
-
OneToManyRelationAttributeAccess
-
-
Method Details
-
getValue
public Object getValue(SessionContext ctx, Item item) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException Description copied from interface:AttributeAccessRetrieves the attribute data from a given item. Primitive data types likeintare wrapped into their object instances.- Specified by:
getValuein interfaceAttributeAccess- Parameters:
ctx- the current session context - e.g. specifies the session languageitem- the item to get data from- Returns:
- the data value
- Throws:
JaloTypeException- in case the attribute type does not allow reading this valueJaloInvalidParameterException- in some data required for reading the value is missing or not as expected ( like missing session language )JaloSecurityException- in case there are security constraints which do not allow reding this value
-
setValue
public void setValue(SessionContext ctx, Item item, Object value) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException, JaloBusinessException Description copied from interface:AttributeAccessStores the attribute data for a given item.- Specified by:
setValuein interfaceAttributeAccess- Parameters:
ctx- the current session context - e.g. specifies the session languageitem- the item to store data forvalue- the value to store- Throws:
JaloTypeException- in case the attribute type does not allow storing this valueJaloInvalidParameterException- in case the value is not compatible with this attributeJaloSecurityException- in case there are security constraints which do not allow this value to be writtenJaloBusinessException- any other error
-