public class OneToManyHandler<T extends Item> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
foreignKeyAttr |
protected String |
handlerMode |
| Constructor and Description |
|---|
OneToManyHandler(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) |
protected final String handlerMode
protected final String foreignKeyAttr
public OneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc)
public OneToManyHandler(String targetItemType, boolean partOf, String foreignKeyAttr, String orderNumberAttr, boolean reorderable, boolean asc, int typeOfCollection)
protected boolean useLegacyMode()
setForeignKeyValue(SessionContext, Item, Item) is called,
otherwise a positioning logic is used while setting reference, this affects relative position in ordered
collections.public SearchResult searchForLinkedItems(PK pk)
public Collection<T> getValues(SessionContext ctx, Item key)
public int getNextOrderNumber(SessionContext ctx, Item key)
protected boolean setValuesInternal(SessionContext ctx, Item key, Collection<T> values)
public void setValues(SessionContext ctx, Item key, Collection<T> values)
public void addValue(SessionContext ctx, Item key, T toLink)
public void newInstance(SessionContext ctx, Item.ItemAttributeMap attributes)
protected void setForeignKeyValue(SessionContext ctx, Item key, T toLink) throws JaloSecurityException, JaloBusinessException
foreignKeyAttr for source item Tprotected void setPosAttributeValue(SessionContext ctx, T toLink, int index) throws JaloSecurityException, JaloBusinessException
orderNumberAttr) related for foreignKeyAttr for source item Tpublic void removeValue(SessionContext ctx, Item key, T linked)
public void notifyKeyRemoval(SessionContext ctx, Item key)
public String getForeignKeyAttr()
public String getOrderNumberAttr()
public boolean isReOrderable()
public boolean isPartOf()
public String getConditionQuery()
Copyright © 2017 SAP SE. All Rights Reserved.