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

E22562-03

oracle.apps.fnd.applcore.trees.validator.util
Class ValidatorUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.trees.validator.util.ValidatorUtils

public final class ValidatorUtils
extends java.lang.Object

Utility class for Validators used during audit.

Author:
Abhay K Kumar <abhay.k.kumar&064;oracle.com>

Method Summary
static java.lang.String concatenatedPrimaryKeyFromDataSourceNode(DataSource ds, oracle.jbo.Row dataSourceNodeRow)
           
static java.lang.String concatenatedPrimaryKeyFromTreeNode(oracle.jbo.Row valueNodeRow)
           
static java.util.List<java.lang.String> getAvailableLabelsForDataSource(oracle.jbo.ApplicationModule helperAM, DataSource ds)
          Gets the available labels information from attached Label VO.
static java.util.Map<java.lang.String,java.lang.String> getAvailableNodesForDataSource(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId, oracle.jbo.ApplicationModule helperAM, DataSource ds, int startIndex)
          Gets the available Nodes from the data source along with custom attribute UsedFlag.
static java.lang.String getMessage(java.lang.String code, java.lang.Object[] params)
          Returns the translated message for given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableLabelsForDataSource

public static java.util.List<java.lang.String> getAvailableLabelsForDataSource(oracle.jbo.ApplicationModule helperAM,
                                                                               DataSource ds)
                                                                        throws oracle.jbo.SQLStmtException,
                                                                               oracle.jbo.JboException
Gets the available labels information from attached Label VO.

Parameters:
helperAM - Helper Application Module to create VO instance
ds - as Data Source
Returns:
List of of concatenated Primary keys attributes values
Throws:
oracle.jbo.SQLStmtException - Sql Statment Exception
oracle.jbo.JboException - No Definition/Invalid definition found Exception

getAvailableNodesForDataSource

public static java.util.Map<java.lang.String,java.lang.String> getAvailableNodesForDataSource(java.lang.String treeStructureCode,
                                                                                              java.lang.String treeCode,
                                                                                              java.lang.String treeVersionId,
                                                                                              oracle.jbo.ApplicationModule helperAM,
                                                                                              DataSource ds,
                                                                                              int startIndex)
                                                                                       throws oracle.jbo.SQLStmtException,
                                                                                              oracle.jbo.JboException
Gets the available Nodes from the data source along with custom attribute UsedFlag.

Parameters:
treeStructureCode - as Tree Structure Code
helperAM - Helper Application Module to create VO instance
ds - Data Source
startIndex - as the starting index of row to be filtered
Returns:
Map of of concatenated Primary keys and Usage attibute(which will be populated later)as pair
Throws:
oracle.jbo.SQLStmtException - Sql Statment Exception
oracle.jbo.JboException - No Definition/Invalid definition found Exception

concatenatedPrimaryKeyFromDataSourceNode

public static java.lang.String concatenatedPrimaryKeyFromDataSourceNode(DataSource ds,
                                                                        oracle.jbo.Row dataSourceNodeRow)

concatenatedPrimaryKeyFromTreeNode

public static java.lang.String concatenatedPrimaryKeyFromTreeNode(oracle.jbo.Row valueNodeRow)

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.lang.Object[] params)
Returns the translated message for given code.

Parameters:
code - as string
params - as array of parameter objects
Returns:
Message as String

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

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.