Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.trees.uiModel.util
Class DataSourceDataLoader

java.lang.Object
  extended by oracle.apps.fnd.applcore.trees.uiModel.util.DataSourceDataLoader

public final class DataSourceDataLoader
extends java.lang.Object

Factory for available Data Source's Data.

Author:
Abhay K Kumar <abhay.k.kumar@oracle.com>

Method Summary
static java.lang.String concatenateAttrs(java.util.List<Attribute> attrs, oracle.jbo.Row dataSourceVORow)
          Concatenates values for all the Attributes obtained from the row.
static java.lang.String concatenatePrimaryKeys(java.lang.String[] primaryKeysVal)
          Concatenats the primary keys values using seperator.
static java.lang.String concatenatePrimaryKeysWithSpace(java.lang.String[] primaryKeysVal)
          Concatenats the primary keys values using seperator " ".
static boolean dataSourceParamsBasedValidation(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId, DataSource ds, java.lang.String[] primaryKeysVal)
          Validates whether this is a suilable candidate for addition when parameters provided for data source.
static java.util.Map<java.lang.String,java.lang.String> getAvailableNodesFromDataSource(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId, DataSource dataSource, int startIndex)
          Gets the available nodes information from DataSource.
static void setAndExecuteDataSourceQuery(OAViewObjectImpl dataSourceVO, int startIndex, java.lang.String viewDefName, java.lang.String treeStructureCode, java.lang.String orderbyColumn)
          Sets and execute data source query.
static java.lang.String validateAndGetHierarchyDisplay(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId, DataSource ds, java.lang.String[] primaryKeysVal)
          Validates whether this is a candidate for addition when parameters provided for data source and return hierarchy Display
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableNodesFromDataSource

public static java.util.Map<java.lang.String,java.lang.String> getAvailableNodesFromDataSource(java.lang.String treeStructureCode,
                                                                                               java.lang.String treeCode,
                                                                                               java.lang.String treeVersionId,
                                                                                               DataSource dataSource,
                                                                                               int startIndex)
Gets the available nodes information from DataSource.

Parameters:
treeStructureCode - Tree Structure Code
treeCode - Tree Code
treeVersionId - Tree Version Id
dataSource - Selected Data Source
startIndex - as int for start of range
Returns:
Map representing pair of Primary key attrs and Hier Disp attrs values

concatenatePrimaryKeys

public static java.lang.String concatenatePrimaryKeys(java.lang.String[] primaryKeysVal)
Concatenats the primary keys values using seperator.

Parameters:
primaryKeysVal - Array of primary keys values
Returns:
Concatenated primary keys string

concatenatePrimaryKeysWithSpace

public static java.lang.String concatenatePrimaryKeysWithSpace(java.lang.String[] primaryKeysVal)
Concatenats the primary keys values using seperator " ".

Parameters:
primaryKeysVal - Array of primary keys values
Returns:
Concatenated primary keys string

concatenateAttrs

public static java.lang.String concatenateAttrs(java.util.List<Attribute> attrs,
                                                oracle.jbo.Row dataSourceVORow)
Concatenates values for all the Attributes obtained from the row.

Parameters:
attrs - List of attributes
dataSourceVORow - Row from which value will be extracted
Returns:
Concatenated String for attribute values separated by :

dataSourceParamsBasedValidation

public static boolean dataSourceParamsBasedValidation(java.lang.String treeStructureCode,
                                                      java.lang.String treeCode,
                                                      java.lang.String treeVersionId,
                                                      DataSource ds,
                                                      java.lang.String[] primaryKeysVal)
Validates whether this is a suilable candidate for addition when parameters provided for data source.

Parameters:
treeStructureCode - Tree Structure Code
treeCode - Tree Code
treeVersionId - as Tree Version Id
ds - Data Source
primaryKeysVal - Array of primarykey keys value
Returns:
true if data source paramters based validation passed for node

validateAndGetHierarchyDisplay

public static java.lang.String validateAndGetHierarchyDisplay(java.lang.String treeStructureCode,
                                                              java.lang.String treeCode,
                                                              java.lang.String treeVersionId,
                                                              DataSource ds,
                                                              java.lang.String[] primaryKeysVal)
Validates whether this is a candidate for addition when parameters provided for data source and return hierarchy Display

Parameters:
treeStructureCode - Tree Structure Code
treeCode - Tree Code
treeVersionId - as Tree Version Id
ds - Data Source
primaryKeysVal - Array of primarykey keys value
Returns:
hierDisplay if data source paramters based validation passed for node

setAndExecuteDataSourceQuery

public static void setAndExecuteDataSourceQuery(OAViewObjectImpl dataSourceVO,
                                                int startIndex,
                                                java.lang.String viewDefName,
                                                java.lang.String treeStructureCode,
                                                java.lang.String orderbyColumn)
                                         throws oracle.jbo.JboException
Sets and execute data source query.

Parameters:
dataSourceVO - as View Object
startIndex - starting index for row selection
viewDefName - View definition name
treeStructureCode - Tree Structure Code
Throws:
oracle.jbo.JboException - Jbo Exception for any query error

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.