Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

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.

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 long getEstimatedNodeCountForDataSource(java.lang.String treeStructureCode, java.lang.String treeCode, java.lang.String treeVersionId, oracle.jbo.ApplicationModule helperAM, DataSource ds)
          Gets the estimated node count for the data source
static java.lang.String getFormattedMessage(java.lang.String code, java.lang.String message)
          Returns the translated message for given code.
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

getEstimatedNodeCountForDataSource

public static long getEstimatedNodeCountForDataSource(java.lang.String treeStructureCode,
                                                      java.lang.String treeCode,
                                                      java.lang.String treeVersionId,
                                                      oracle.jbo.ApplicationModule helperAM,
                                                      DataSource ds)
                                               throws oracle.jbo.SQLStmtException,
                                                      oracle.jbo.JboException
Gets the estimated node count for the data source

Parameters:
treeStructureCode - as Tree Structure Code
helperAM - Helper Application Module to create VO instance
ds - Data Source
Returns:
estimated count for data source nodes
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

getFormattedMessage

public static java.lang.String getFormattedMessage(java.lang.String code,
                                                   java.lang.String message)
Returns the translated message for given code.

Parameters:
code - as string
message - as String for translated message
Returns:
Message as String

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.