|
Oracle Fusion Middleware extensions for Seed Data Framework 11g Release 1 (11.1.2) E22564-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applseed.rt.common.mapper.ReferenceUtil
public class ReferenceUtil
This class is intended to serve as a utility class for dealing with references. All the methods in this class are supposed to be static.
Constructor Summary | |
---|---|
ReferenceUtil()
|
Method Summary | |
---|---|
static boolean |
areViewObjectsCompatible(oracle.jbo.ViewObject srcVO,
oracle.jbo.ViewObject destVO)
check if the primary keys of the view object match, if yes return true |
static oracle.jbo.ViewCriteria |
constructViewCriteria(oracle.jbo.ViewObject vo,
java.util.List<oracle.jbo.AttributeDef> attrs,
oracle.jbo.Row row,
SDMappedUsage mappedUsage)
creates the view criteria on the key attributes with values from the given row |
static oracle.jbo.ViewCriteria |
constructViewCriteria(oracle.jbo.ViewObject vo,
oracle.jbo.ViewObject destVO,
oracle.jbo.Row row)
Constructs a view criteria using the key attributes from a given View object and values from the given row |
static java.lang.String |
getAttributeValueFromVO(SDViewNode startNode,
oracle.jbo.ViewObject destinationVO,
java.lang.String attr,
oracle.jbo.Row r)
Find the given attribute value from the given VO by reverse traversing In case it is internal reference then it creates new VO's and uses them |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getKeyValuesFromCurrentRow(SDViewNode node)
This method returns all the key attribute values for the given node. |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getKeyValuesFromCurrentRow(SDViewNode node,
boolean includeRootPartitionKey)
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getKeyValuesFromGivenRow(SDViewNode node,
oracle.jbo.Row row)
This method returns the key attributes values for a given node from the given row The remaining behaviour is same as the getKeyValuesFromCurrentRow method |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getKeyValuesFromRowNoParents(SDViewNode node,
oracle.jbo.Row row)
Get the Row key values, with Surrogates, Foreign Keys, and LOVs dereferenced as needed for Upload. |
static java.util.Map<java.lang.String,java.lang.Object> |
getKeyValuesFromXML(SDViewNode node,
SDDataEntity de,
boolean isMandatory)
|
static java.lang.String |
getPartitionKeyValue(SDReferenceUsage refUsage,
oracle.jbo.Row row)
For a given Reference Usage and the row of the source node, will find the partition key attribute value |
static boolean |
lookupEntity(SDViewNode destNode,
java.util.Map<java.lang.String,java.lang.Object> altKey,
SDDataEntity de)
|
static boolean |
validateDEData(oracle.jbo.ViewObject vo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferenceUtil()
Method Detail |
---|
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> getKeyValuesFromRowNoParents(SDViewNode node, oracle.jbo.Row row) throws SDRuntimeException
node
- SDViewNoderow
- Row
SDRuntimeException
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> getKeyValuesFromCurrentRow(SDViewNode node, boolean includeRootPartitionKey) throws SDRuntimeException
SDRuntimeException
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> getKeyValuesFromCurrentRow(SDViewNode node) throws SDRuntimeException
node
- SDViewNode
SDRuntimeException
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> getKeyValuesFromGivenRow(SDViewNode node, oracle.jbo.Row row) throws SDRuntimeException
getKeyValuesFromCurrentRow
method
node
- row
-
SDRuntimeException
public static java.util.Map<java.lang.String,java.lang.Object> getKeyValuesFromXML(SDViewNode node, SDDataEntity de, boolean isMandatory) throws SDMappingException, SDMetaDataException
SDMappingException
SDMetaDataException
public static boolean lookupEntity(SDViewNode destNode, java.util.Map<java.lang.String,java.lang.Object> altKey, SDDataEntity de) throws SDMetaDataException, SDMappingException
SDMetaDataException
SDMappingException
public static java.lang.String getAttributeValueFromVO(SDViewNode startNode, oracle.jbo.ViewObject destinationVO, java.lang.String attr, oracle.jbo.Row r)
startNode
- source NodedestinationVO
- partitioning voattr
- attribute whose value is requiredr
- row
public static boolean validateDEData(oracle.jbo.ViewObject vo)
public static java.lang.String getPartitionKeyValue(SDReferenceUsage refUsage, oracle.jbo.Row row)
refUsage
- row
-
public static oracle.jbo.ViewCriteria constructViewCriteria(oracle.jbo.ViewObject vo, oracle.jbo.ViewObject destVO, oracle.jbo.Row row)
vo
- View criteria to be generated ondestVO
- ViewObject from where the key's to be used in View Criteriarow
- Row from where values are used
public static boolean areViewObjectsCompatible(oracle.jbo.ViewObject srcVO, oracle.jbo.ViewObject destVO)
srcVO
- ViewobjectdestVO
- ViewObject
public static oracle.jbo.ViewCriteria constructViewCriteria(oracle.jbo.ViewObject vo, java.util.List<oracle.jbo.AttributeDef> attrs, oracle.jbo.Row row, SDMappedUsage mappedUsage)
|
Oracle Fusion Middleware extensions for Seed Data Framework 11g Release 1 (11.1.2) E22564-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |