Package de.hybris.platform.util
Class BidirectionalOneToManyHandler<T extends ExtensibleItem>
- java.lang.Object
-
- de.hybris.platform.util.OneToManyHandler<T>
-
- de.hybris.platform.util.BidirectionalOneToManyHandler<T>
-
public class BidirectionalOneToManyHandler<T extends ExtensibleItem> extends OneToManyHandler<T>
Specific 1:n relation handler to cover a n-side adjustments of relation entries and give them appropriate position values.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.util.OneToManyHandler
foreignKeyAttr, handlerMode
-
-
Constructor Summary
Constructors Constructor Description BidirectionalOneToManyHandler(java.lang.String targetItemType, boolean partOf, java.lang.String foreignKeyAttr, java.lang.String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection)BidirectionalOneToManyHandler(java.lang.String targetItemType, boolean partOf, java.lang.String foreignKeyAttr, java.lang.String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection, java.lang.String conditionQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(SessionContext ctx, Item key, T toLink)protected voidsetForeignKeyValue(SessionContext ctx, Item key, T toLink)sets a foreign key propertyOneToManyHandler.foreignKeyAttrfor source item TvoidsetValues(SessionContext ctx, Item key, java.util.Collection<T> values)-
Methods inherited from class de.hybris.platform.util.OneToManyHandler
getConditionQuery, getForeignKeyAttr, getNextOrderNumber, getOrderNumberAttr, getValues, isPartOf, isReOrderable, newInstance, notifyKeyRemoval, removeValue, searchForLinkedItems, setPosAttributeValue, setValuesInternal, useLegacyMode, withRelationQualifier
-
-
-
-
Constructor Detail
-
BidirectionalOneToManyHandler
public BidirectionalOneToManyHandler(java.lang.String targetItemType, boolean partOf, java.lang.String foreignKeyAttr, java.lang.String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection)
-
BidirectionalOneToManyHandler
public BidirectionalOneToManyHandler(java.lang.String targetItemType, boolean partOf, java.lang.String foreignKeyAttr, java.lang.String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection, java.lang.String conditionQuery)
-
-
Method Detail
-
addValue
public void addValue(SessionContext ctx, Item key, T toLink)
- Overrides:
addValuein classOneToManyHandler<T extends ExtensibleItem>
-
setForeignKeyValue
protected void setForeignKeyValue(SessionContext ctx, Item key, T toLink) throws JaloSecurityException, JaloBusinessException
Description copied from class:OneToManyHandlersets a foreign key propertyOneToManyHandler.foreignKeyAttrfor source item T- Overrides:
setForeignKeyValuein classOneToManyHandler<T extends ExtensibleItem>- Throws:
JaloSecurityExceptionJaloBusinessException
-
setValues
public void setValues(SessionContext ctx, Item key, java.util.Collection<T> values)
- Overrides:
setValuesin classOneToManyHandler<T extends ExtensibleItem>
-
-