Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo.common
Class AbstractListBinding

java.lang.Object
  extended by oracle.jbo.common.AbstractListBinding
Direct Known Subclasses:
ListBinding

public abstract class AbstractListBinding
extends java.lang.Object


Field Summary
static java.lang.Class CLASS_INSTANCE
           
static int LIST_ADD_NULL_AT_END
           
static int LIST_ADD_NULL_AT_START
           
static int LIST_ADD_NULL_NOWHERE
           
static int LIST_ADD_NULL_UNINIT
           
protected  java.lang.Object[] mValueList
           
 
Constructor Summary
AbstractListBinding()
           
AbstractListBinding(ListBindingDef def, StructureDef component, RowSetIterator listIter)
           
 
Method Summary
 void autoClear(Row curRow)
           
 RowSetIterator filterList(Map valuesMap, Row curRow, ViewCriteria vc)
          Advanced internal method.
 RowSetIterator filterList(Map valuesMap, Row curRow, ViewCriteria vc, ArrayList varvals)
          Deprecated. use filterList(Map, Row, ViewCriteria, ArrayList, boolean)
 RowSetIterator filterList(Map valuesMap, Row curRow, ViewCriteria vc, ArrayList varvals, boolean exactMatch)
          Advanced internal method.
 RowSetIterator filterList(Map valuesMap, Row curRow, ViewCriteria vc, ArrayList varvals, Map attrNameValues, boolean exactMatch)
           
 ListBindingDef getDef()
           
protected  java.lang.Object[] getDrivingValues(Row row)
           
protected  java.lang.Object[] getDrivingValues(Row row, Map attrNameValues)
           
 RowSetIterator getListRSI()
           
protected  Row getRowForVariableEvaluation(Row curRow)
           
protected abstract  void handleListBindingMismatch(Row row, Map valuesMap, RowIterator listRSI)
           
 boolean isApplyNecessary(Map map)
           
 void setListRSI(RowSetIterator rsi)
           
protected  void setTargetAttrsFromLovRow(Row targetRow, Row lovRow)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

mValueList

protected java.lang.Object[] mValueList

LIST_ADD_NULL_UNINIT

public static final int LIST_ADD_NULL_UNINIT
See Also:
Constant Field Values

LIST_ADD_NULL_NOWHERE

public static final int LIST_ADD_NULL_NOWHERE
See Also:
Constant Field Values

LIST_ADD_NULL_AT_START

public static final int LIST_ADD_NULL_AT_START
See Also:
Constant Field Values

LIST_ADD_NULL_AT_END

public static final int LIST_ADD_NULL_AT_END
See Also:
Constant Field Values
Constructor Detail

AbstractListBinding

public AbstractListBinding()

AbstractListBinding

public AbstractListBinding(ListBindingDef def,
                           StructureDef component,
                           RowSetIterator listIter)
Method Detail

isApplyNecessary

public boolean isApplyNecessary(Map map)

getListRSI

public RowSetIterator getListRSI()

setListRSI

public void setListRSI(RowSetIterator rsi)

getDef

public ListBindingDef getDef()

getDrivingValues

protected java.lang.Object[] getDrivingValues(Row row)

getDrivingValues

protected java.lang.Object[] getDrivingValues(Row row,
                                              Map attrNameValues)

setTargetAttrsFromLovRow

protected void setTargetAttrsFromLovRow(Row targetRow,
                                        Row lovRow)

filterList

public RowSetIterator filterList(Map valuesMap,
                                 Row curRow,
                                 ViewCriteria vc)
Advanced internal method.

Given a map of attribute names and values that they map to, shorten the data that this list is exposing.

This method establishes a new ViewCriteria on the collection that the list source iterator binding is bound to. Looks up values from the given map based on the Attribute names in the associated list source collection and sets the corresponding values on a new ViewCriteria row that is added to the ViewCriteria and then applied on the collection to filter the collection.

If the filtered list has only one row then that row is assumed as the selected row and list selection index is set to that row.


filterList

public RowSetIterator filterList(Map valuesMap,
                                 Row curRow,
                                 ViewCriteria vc,
                                 ArrayList varvals)
Deprecated. use filterList(Map, Row, ViewCriteria, ArrayList, boolean)

Advanced internal method...may be removed in a future release.


filterList

public RowSetIterator filterList(Map valuesMap,
                                 Row curRow,
                                 ViewCriteria vc,
                                 ArrayList varvals,
                                 boolean exactMatch)
Advanced internal method.

Given a map of attribute names and values that they map to, shorten the data that this list is exposing.

This method establishes a new ViewCriteria on the collection that the list source iterator binding is bound to. Looks up values from the given map based on the Attribute names in the associated list source collection and sets the corresponding values on a new ViewCriteria row that is added to the ViewCriteria based on exactMatch flag and then applied on the collection to filter the collection.

If the filtered list has only one row then that row is assumed as the selected row and list selection index is set to that row.

If exactMatch flag is not on, then each value is appended with a wildChar for LIKE kind of queries to get all possible choices.


filterList

public RowSetIterator filterList(Map valuesMap,
                                 Row curRow,
                                 ViewCriteria vc,
                                 ArrayList varvals,
                                 Map attrNameValues,
                                 boolean exactMatch)

getRowForVariableEvaluation

protected Row getRowForVariableEvaluation(Row curRow)

autoClear

public void autoClear(Row curRow)

handleListBindingMismatch

protected abstract void handleListBindingMismatch(Row row,
                                                  Map valuesMap,
                                                  RowIterator listRSI)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.