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>
Specific 1:n relation handler to cover a n-side adjustments of relation entries and give them appropriate position
values.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.util.OneToManyHandler
OneToManyHandler.RelationsData -
Field Summary
Fields inherited from class de.hybris.platform.util.OneToManyHandler
foreignKeyAttr, handlerMode, IGNORE_PART_OF_CONSTRAINT_FOR_TYPE_CODE, relationQualifier, relationsInfo, reorderingEnabledFlagName -
Constructor Summary
ConstructorsConstructorDescriptionBidirectionalOneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection) BidirectionalOneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection, String conditionQuery) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(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, Collection<T> values) withRelationCode(String relationCode) 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 Details
-
BidirectionalOneToManyHandler
-
BidirectionalOneToManyHandler
-
-
Method Details
-
addValue
- Overrides:
addValuein classOneToManyHandler<T extends ExtensibleItem>
-
withRelationCode
- Overrides:
withRelationCodein 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
- Overrides:
setValuesin classOneToManyHandler<T extends ExtensibleItem>
-