Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.common.objects
Class SDReferenceUsage

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.common.objects.SDMappedUsage
      extended by oracle.apps.fnd.applseed.rt.common.objects.SDReferenceUsage
Direct Known Subclasses:
SDLOVUsage, SDReferenceUsageTest.TestSDReferenceUsage, SDVLReferenceUsage

public abstract class SDReferenceUsage
extends SDMappedUsage

Since:
release specific (what release of product did this appear in) This class represents a "reference" relationship between two nodes. A reference relationship differs from a parent/child relationship in that the referred attributes may or may not be a part of the primary key of the referring entity. Currently, the Seed fwk lets reference relationships to be modeled using ViewLinks or LOVs.
Version:
$Header: atgpf/applseed/src/java/oracle/apps/fnd/applseed/rt/common/objects/SDReferenceUsage.java /main/10 2010/09/13 15:43:45 sjanarth Exp $
Author:
sjanarth

Field Summary
protected  SDViewNode destNode
          Invalid mapping if atleast one attribute of primary key is not part of the derived attribute of LOV
protected  boolean isInternalReference
           
protected  boolean isSelfReference
           
protected  oracle.jbo.ApplicationModule refAM
           
protected  SDViewNode refDestNode
           
protected  SDViewNode srcNode
           
 
Fields inherited from class oracle.apps.fnd.applseed.rt.common.objects.SDMappedUsage
destAttrs, srcAttrs
 
Constructor Summary
protected SDReferenceUsage(SDViewNode src)
           
 
Method Summary
 SDViewNode getDestination()
           
 SDViewNode getRefDestNode()
           
 oracle.jbo.ApplicationModule getReferencedAM()
           
static oracle.jbo.ApplicationModule getReferencedAM(java.lang.String viewName, java.lang.String driverName, oracle.jbo.ApplicationModule srcAM)
          Returns application module of the reference object.
 SDViewNode getSource()
           
 void initPrivateVO()
           
 boolean isExternalReference()
           
 boolean isInternalReference()
           
 boolean isSelfReference()
           
 boolean isValidReference()
          True if there is valid destination view object found in reference AM
protected  void setParams()
           
 void setReferencedAM(oracle.jbo.ApplicationModule am)
           
 java.lang.String toString()
           
 boolean useVAForExtRefProcessing()
          Method to check if VA can be used for external reference processing
 
Methods inherited from class oracle.apps.fnd.applseed.rt.common.objects.SDMappedUsage
getDestAttributeForSrc, getDestAttributes, getSrcAttributeForDest, getSrcAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

srcNode

protected SDViewNode srcNode

destNode

protected SDViewNode destNode
Invalid mapping if atleast one attribute of primary key is not part of the derived attribute of LOV


refDestNode

protected SDViewNode refDestNode

isInternalReference

protected boolean isInternalReference

isSelfReference

protected boolean isSelfReference

refAM

protected oracle.jbo.ApplicationModule refAM
Constructor Detail

SDReferenceUsage

protected SDReferenceUsage(SDViewNode src)
Method Detail

initPrivateVO

public void initPrivateVO()
                   throws java.lang.NoSuchMethodException,
                          java.lang.InstantiationException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException,
                          SDMetaDataException
Throws:
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
SDMetaDataException

setParams

protected void setParams()

getReferencedAM

public oracle.jbo.ApplicationModule getReferencedAM()

setReferencedAM

public void setReferencedAM(oracle.jbo.ApplicationModule am)

getSource

public SDViewNode getSource()

getDestination

public SDViewNode getDestination()

getRefDestNode

public SDViewNode getRefDestNode()

isValidReference

public boolean isValidReference()
True if there is valid destination view object found in reference AM

Returns:

isInternalReference

public boolean isInternalReference()

isExternalReference

public boolean isExternalReference()

isSelfReference

public boolean isSelfReference()

useVAForExtRefProcessing

public boolean useVAForExtRefProcessing()
Method to check if VA can be used for external reference processing

Returns:
true if Va is enabled for ext ref processing and the reference node is not same as the VA.

getReferencedAM

public static oracle.jbo.ApplicationModule getReferencedAM(java.lang.String viewName,
                                                           java.lang.String driverName,
                                                           oracle.jbo.ApplicationModule srcAM)
Returns application module of the reference object.

Returns:
reference application module

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.