Package de.hybris.platform.util
Class OneToManyHandler<T extends Item>
java.lang.Object
de.hybris.platform.util.OneToManyHandler<T>
- Direct Known Subclasses:
BidirectionalOneToManyHandler
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc) OneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection) OneToManyHandler(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) intgetNextOrderNumber(SessionContext ctx, Item key) getValues(SessionContext ctx, Item key) booleanisPartOf()booleanvoidnewInstance(SessionContext ctx, Item.ItemAttributeMap attributes) voidnotifyKeyRemoval(SessionContext ctx, Item key) voidremoveValue(SessionContext ctx, Item key, T linked) protected voidsetForeignKeyValue(SessionContext ctx, Item key, T toLink) sets a foreign key propertyforeignKeyAttrfor source item Tprotected voidsetPosAttributeValue(SessionContext ctx, T toLink, int index) sets a _pos attribute (orderNumberAttr) related forforeignKeyAttrfor source item TvoidsetValues(SessionContext ctx, Item key, Collection<T> values) protected booleansetValuesInternal(SessionContext ctx, Item key, Collection<T> values) protected booleanIf returns true.withRelationCode(String relationCode) withRelationQualifier(String qualifier)
-
Field Details
-
IGNORE_PART_OF_CONSTRAINT_FOR_TYPE_CODE
- See Also:
-
handlerMode
- See Also:
-
foreignKeyAttr
-
reorderingEnabledFlagName
-
relationQualifier
-
relationsInfo
-
-
Constructor Details
-
OneToManyHandler
-
OneToManyHandler
-
OneToManyHandler
-
-
Method Details
-
useLegacyMode
protected boolean useLegacyMode()If returns true. The regular set attributesetForeignKeyValue(SessionContext, Item, Item)is called, otherwise a positioning logic is used while setting reference, this affects relative position in ordered collections. -
searchForLinkedItems
-
getValues
-
getNextOrderNumber
-
setValuesInternal
-
setValues
-
addValue
-
newInstance
-
setForeignKeyValue
protected void setForeignKeyValue(SessionContext ctx, Item key, T toLink) throws JaloSecurityException, JaloBusinessException sets a foreign key propertyforeignKeyAttrfor source item T -
setPosAttributeValue
protected void setPosAttributeValue(SessionContext ctx, T toLink, int index) throws JaloSecurityException, JaloBusinessException sets a _pos attribute (orderNumberAttr) related forforeignKeyAttrfor source item T -
removeValue
-
notifyKeyRemoval
-
getForeignKeyAttr
-
getOrderNumberAttr
-
isReOrderable
public boolean isReOrderable() -
isPartOf
public boolean isPartOf() -
getConditionQuery
-
withRelationQualifier
-
withRelationCode
-