|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.trees.uiModel.util.UIModelUtils
public final class UIModelUtils
Utility class to be used across UIModel.
Method Summary | |
---|---|
static TreeNodeProperties.TreeNodeType |
checkTreeNodeType(oracle.jbo.Row treeNodeRow)
Checks the type of tree node whether it is value based, range based or referenced node. |
static java.lang.String |
extractDestViewDef(oracle.jbo.server.ApplicationModuleImpl am,
java.lang.String vlAccessorName,
java.lang.String viewDefName)
Extracts the View Definition name assoicated with destionation of given View Link and its container data source view object. |
static oracle.jbo.server.ViewRowSetImpl |
getChildAccessorTreeNodes(DataSource ds,
oracle.jbo.Row treeNodeRow,
oracle.jbo.ApplicationModule am,
boolean isDynamicRow)
Gets the List of actual Tree nodes from child accessor data source as row iterator of value nodes. |
static java.util.List<org.apache.commons.beanutils.DynaProperty> |
getDataSourceProperties(TreeStructure treeStructure)
Gets the list of DynaPropertys of all DataSources associated with this tree structure. |
static java.lang.Object |
getFormattedValue(java.lang.Class attrClassName,
java.lang.Object value)
Get formatted value for any String representation of value based on class name. |
static java.lang.String |
getMessage(java.lang.String code,
java.lang.Object[] params)
Returns the translated message for given code. |
static java.lang.String[] |
getPrimaryKeysVal(java.util.List<Attribute> pkAttrs,
oracle.jbo.Row nodeRow)
|
static oracle.jbo.RowIterator |
getRangeTreeNodes(DataSource ds,
oracle.jbo.Row rangeNodeRow,
oracle.jbo.ApplicationModule am)
Gets the actual Tree nodes Iterator as set of actual data source nodes for a given range tree node. |
static oracle.jbo.Row |
getValueTreeNode(DataSource ds,
oracle.jbo.Row valueNodeRow,
oracle.jbo.ApplicationModule am)
Gets the actual Tree nodes from data source as value node. |
static boolean |
isLeafNode(TreeNodeProperties.TreeNodeType nodeType,
oracle.jbo.Row nodeRow,
boolean hasVlAccessorChild)
Checks whether the node is a referenced tree node. |
static boolean |
isNullOrEmpty(java.lang.String passedVal)
Checks whether passed value is null or empty. |
static boolean |
isRangeNode(oracle.jbo.Row rangeNodeRow)
Checks whether the node is a range node. |
static boolean |
isRefTreeNode(oracle.jbo.Row refTreeNodeRow)
Checks whether the node is a referenced tree node. |
static java.util.Map |
loadAttributeHints(TreeStructure treeStructure)
load hints for all the available attributes for given tree structure. |
static java.lang.String |
trim(java.lang.String toTrim)
Trims spaces from a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isRangeNode(oracle.jbo.Row rangeNodeRow)
rangeNodeRow
- as Row
public static TreeNodeProperties.TreeNodeType checkTreeNodeType(oracle.jbo.Row treeNodeRow)
treeNodeRow
- as oracle.jbo.Row
public static boolean isRefTreeNode(oracle.jbo.Row refTreeNodeRow)
refTreeNodeRow
- as Row
public static boolean isLeafNode(TreeNodeProperties.TreeNodeType nodeType, oracle.jbo.Row nodeRow, boolean hasVlAccessorChild)
nodeType
- as TreeNodeProperties.TreeNodeTypenodeRow
- as RowhasVlAccessorChild
- true if foreign key based child is allowed for
associated data source
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] params)
code
- as stringparams
- as array of parameter objects
public static java.util.Map loadAttributeHints(TreeStructure treeStructure)
treeStructure
- Tree Structure metadata
TreeStructure
public static java.util.List<org.apache.commons.beanutils.DynaProperty> getDataSourceProperties(TreeStructure treeStructure)
treeStructure
- as Tree structure metadata
DynaProperty
,
TreeStructure
public static java.lang.Object getFormattedValue(java.lang.Class attrClassName, java.lang.Object value)
attrClassName
- Class Namevalue
- Value in String format
public static oracle.jbo.RowIterator getRangeTreeNodes(DataSource ds, oracle.jbo.Row rangeNodeRow, oracle.jbo.ApplicationModule am) throws oracle.jbo.SQLStmtException, oracle.jbo.JboException
ds
- as data source to which these nodes are associatedrangeNodeRow
- as Rowam
- Application module for containing dynamic VO
oracle.jbo.SQLStmtException
- Sql Statment Exception
oracle.jbo.JboException
- No Definition/Invalid Definition found Exceptionpublic static java.lang.String[] getPrimaryKeysVal(java.util.List<Attribute> pkAttrs, oracle.jbo.Row nodeRow)
public static java.lang.String extractDestViewDef(oracle.jbo.server.ApplicationModuleImpl am, java.lang.String vlAccessorName, java.lang.String viewDefName)
am
- ApplicationModulevlAccessorName
- View Link Accessor NameviewDefName
- Contaier source View Definition name
public static oracle.jbo.Row getValueTreeNode(DataSource ds, oracle.jbo.Row valueNodeRow, oracle.jbo.ApplicationModule am) throws oracle.jbo.SQLStmtException, oracle.jbo.JboException
ds
- as DataSource to which these nodes are associatedvalueNodeRow
- as Rowam
- Application module for containing dynamic VO
oracle.jbo.SQLStmtException
- Sql Statment Exception
oracle.jbo.JboException
- No Definition/Invalid Definition found Exceptionpublic static oracle.jbo.server.ViewRowSetImpl getChildAccessorTreeNodes(DataSource ds, oracle.jbo.Row treeNodeRow, oracle.jbo.ApplicationModule am, boolean isDynamicRow) throws oracle.jbo.SQLStmtException, oracle.jbo.JboException
ds
- as DataSource to which these nodes are associatedtreeNodeRow
- as Row for master node for which VLAccessor will be trackedam
- Application module for containing dynamic VO
oracle.jbo.SQLStmtException
- Sql Statment Exception
oracle.jbo.JboException
- No Definition/Invalid Definition found Exceptionpublic static java.lang.String trim(java.lang.String toTrim)
toTrim
- the string to trim
public static boolean isNullOrEmpty(java.lang.String passedVal)
passedVal
- Passed value
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |