|
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 javax.swing.tree.DefaultMutableTreeNode oracle.apps.fnd.applseed.rt.common.objects.SDViewNode
public class SDViewNode
This class serves as a common infrastructure for both upload and extract. It encapsulates an ADF ViewObject and provides access to all the metadata contained within it. This class also takes care of interpreting the metadata in the context of applseed.
Field Summary | |
---|---|
protected java.util.List<SDViewNode> |
childNodes
|
protected static int |
dumpDepth
|
protected java.util.List<java.lang.String[]> |
extRefList
|
protected java.lang.Boolean |
isNodeTranslatable
|
protected java.util.Set<oracle.jbo.AttributeDef> |
orderedPayloadAttrs
|
protected java.util.List<java.lang.String> |
refVAList
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
SDViewNode(oracle.jbo.ViewObject viewObject,
oracle.jbo.ApplicationModule appModule)
|
Method Summary | |
---|---|
static boolean |
areDriverNodesSame(SDViewNode node1,
SDViewNode node2)
Checks for given two ViewNodes whether the driver is same or not |
void |
buildParentHierarchy()
Special Method used for creating the parent hierarchy. |
void |
dumpNode()
|
void |
dumpTree()
|
boolean |
equals(java.lang.Object obj)
|
protected oracle.jbo.ViewObject |
findOrCreateViewObject(oracle.jbo.server.ViewDefImpl def)
|
static SDViewNode |
findViewInstance(java.lang.String instanceName,
oracle.jbo.ApplicationModule am)
Finds the view object with the given instance name in the am |
static SDViewNode |
findViewNode(oracle.jbo.ApplicationModule refAM,
oracle.jbo.ViewObject refVO)
|
static SDViewNode |
findViewNodeByDBObject(oracle.jbo.ApplicationModule appModule,
SDViewNode excludeNode,
java.lang.String dBObject)
find the view node which has the same DB Object as dBObject
and is either a driver view node or is part of the hierarchy of a driver view node. |
static SDViewNode |
findViewNodeByDef(oracle.jbo.ApplicationModule appModule,
SDViewNode excludeNode,
java.lang.String viewDef)
find the view node which has the same view definition as viewDef
and is either a driver view node or is part of the hierarchy of a driver view node |
java.util.Collection<SDCompositionUsage> |
getAllCompositionUsages()
|
java.util.Collection<SDLOVUsage> |
getAllLOVUsages()
|
java.util.List<Mapper> |
getAllMappers()
|
java.util.Collection<SDReferenceUsage> |
getAllReferenceUsages()
|
java.util.List<oracle.jbo.AttributeDef> |
getAltKeyAttributeList()
Method returns list of invariant key attributes. |
java.util.List<java.lang.String> |
getAltKeyAttributeNames()
Get the attribute names of the alternate key as a List of Strings. |
java.util.List<oracle.jbo.AttributeDef> |
getAltKeyAttributesWithoutEffDate()
Get the list of AttributeDefs that make up the logical keys of the effective dated entity. |
oracle.jbo.ViewCriteria |
getAltKeyCriteria()
Method returns a ViewCriteria. |
oracle.jbo.ApplicationModule |
getAM()
|
SDViewNode |
getChildByDefName(java.lang.String defName)
|
SDViewNode |
getChildByName(java.lang.String name)
|
java.util.List<SDViewNode> |
getChildren()
Returns a list of SDViewNode instances that are children of this node. |
SDCompositionUsage |
getCompositionUsage(java.lang.String childName)
|
SDViewNode |
getContainedNodeForDBObject(java.lang.String dbObject)
|
SDViewNode |
getContainedNodeForDef(java.lang.String viewDef)
Method returns contained child node that has the same view definition object as the viewDef. |
static java.lang.String |
getDBObject(oracle.jbo.ViewObject vo)
|
static SDViewNode |
getDriver(oracle.jbo.ApplicationModule appModule,
java.lang.String viewName)
Convinience API. |
static SDViewNode |
getDriver(oracle.jbo.ApplicationModule appModule,
java.lang.String viewName,
java.lang.Class cls)
Gets the seed driver view object for a given view name. |
java.lang.String |
getDriverId()
|
SDViewNode |
getDriverNode()
|
java.util.Map<java.lang.String,oracle.jbo.AttributeDef> |
getDrivingAttributeDefsMap(java.lang.String attrName)
Fetches the list of attributes definitions that drive the given attribute via an LOV. |
java.util.Set<java.lang.String> |
getDrivingAttributes(java.lang.String attrName)
Fetches the list of attributes that drive the given attribute via an LOV. |
SDLOVUsage |
getDrivingLOVUsage(java.lang.String attrName)
|
oracle.jbo.AttributeDef |
getEnterpriseAttribute()
|
SDViewNode |
getExtensionNode(java.lang.String name)
Looks up a polymorphic subtype of the current node. |
java.util.List<oracle.jbo.AttributeDef> |
getExtractAttributes()
|
java.util.List<oracle.jbo.AttributeDef> |
getKeyAttributes()
Gets the key attributes for this view node. |
Mapper |
getMapper(java.lang.String attr)
|
java.lang.String |
getName()
|
java.util.Set<oracle.jbo.AttributeDef> |
getOrderedPayloadAttrs()
|
java.util.List<oracle.jbo.AttributeDef> |
getPrimaryKeyAttributesWithoutEffDate()
Get the list of AttributeDefs that make up the logical keys of the effective dated entity. |
static java.lang.String |
getReferenceAttributeName(SDViewNode targetNode,
java.lang.String attr)
|
SDViewNode |
getReferenceByName(java.lang.String name)
|
java.util.List<SDViewNode> |
getReferences()
|
SDReferenceUsage |
getReferenceUsage(java.lang.String refName)
|
SDReferenceUsage |
getReferenceUsageByAttribute(java.lang.String attrName)
|
static java.util.List<oracle.jbo.ViewObject> |
getRootViews(oracle.jbo.ApplicationModule appModule)
Gets a list of 'top-level' view objects in the given app module. |
java.lang.String |
getSeedChangeIndicator()
Get the seed change indicator attribute as defined for this node. |
static java.util.List<oracle.jbo.ViewObject> |
getSeedDriverViews(oracle.jbo.ApplicationModule appModule)
Gets a list of Seed Driver View Objects in the given app Module. |
java.util.LinkedHashMap<oracle.jbo.AttributeDef,oracle.jbo.AttributeDef> |
getSelfReferences()
Gets the attributes which make up the self reference if this SDViewNode instance really has a self referemce. |
java.util.List<java.lang.String[]> |
getStaticExtRefList()
|
oracle.jbo.AttributeDef |
getSurrogateAttribute()
Returns the attribute that is identified in the configurton as surrogate. |
java.util.Map<java.lang.String,oracle.jbo.AttributeDef> |
getTrueKeyAttributeDefsMap()
returns a map of attribute name and java type |
java.util.Collection<java.lang.String> |
getTrueKeyAttributeNames()
Gets the complete list of attribute names that make up the 'true' key of this node. |
java.util.List<java.lang.String> |
getTrueKeyAttributeNamesNoChaining()
Get the list of key attribute names, not including the parental chain. |
static oracle.jbo.AttributeDef |
getViewAttrDefForEntityAttrDef(oracle.jbo.AttributeDef eoAttrDef,
oracle.jbo.ViewObject vo)
|
static oracle.jbo.AttributeDef |
getViewAttrDefForEntityAttrDef(oracle.jbo.AttributeDef eoAttrDef,
oracle.jbo.ViewObject vo,
oracle.jbo.server.EntityDefImpl eDef)
Get the View attribute def associated with the given Entity attribute def. |
oracle.jbo.ViewObject |
getViewObject()
|
protected void |
handleSelfReferences()
Checks if the current view object has a reference to itself. |
boolean |
hasExtensionVOs()
Checks if the current node has polymorphic extension nodes. |
boolean |
hasExtractedAttribute(java.lang.String attrName)
|
int |
hashCode()
|
boolean |
hasReference(java.lang.String refName)
|
boolean |
hasSelfReferences()
Checks if this SDViewNode instance has selef references. |
boolean |
hasSurrogate()
|
protected void |
initialize()
|
boolean |
isAttrInCompUsage(oracle.jbo.AttributeDef attr)
Determine if attribute participates in the parent composition usage. |
protected boolean |
isAttrToBeExcluded(java.lang.String attrName)
|
boolean |
isChangeIndicator(oracle.jbo.AttributeDef attr)
Checks if given attribute is marked as Change Indicator (OVN) on its EntityDef. |
boolean |
isContained()
|
boolean |
isEffDateAttr(oracle.jbo.server.AttributeDefImpl attr)
Test if the attribute def is marked as an effective date attr. |
boolean |
isEffectiveDated()
Checks if this SDViewNode instance is an effective dated one. |
boolean |
isForeignKey(oracle.jbo.AttributeDef attr)
Checks if a given attribute is linked through View Links to some other node. |
protected boolean |
isHashingAttr(oracle.jbo.AttributeDef attr)
Does the attribute partake in the mid-tier hash gen. |
boolean |
isHistoryColAttribute(oracle.jbo.AttributeDef attr)
|
boolean |
isIncrDatabase()
|
boolean |
isIncrMidTier()
Test if incremental loading, and mid-tier hash cacluation enabled. |
boolean |
isKeyAttribute(oracle.jbo.AttributeDef attr)
|
boolean |
isLOVDriven(java.lang.String attrName)
Checks if a given attribute is populated through LOV(s). |
boolean |
isLOVToBeExcluded(java.lang.String lovName)
|
boolean |
isMLSAttribute(oracle.jbo.AttributeDef attr)
Return true if attribute is "Language" |
boolean |
isMultiTenantCapable()
Check if this node is multi-tenant aware. |
boolean |
isParentKey(oracle.jbo.AttributeDef attr)
Checks if a given attribute is linked to the parent of this node. |
boolean |
isReference(oracle.jbo.server.ViewAttributeDefImpl attr)
|
boolean |
isTranslatable()
Test if this node is translatable. |
boolean |
isTranslationIncrLoad()
Test if incremental load for translations is enabled for this node. |
boolean |
isVAInRefVAList(java.lang.String vaDefName)
|
java.lang.String |
toString()
|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<SDViewNode> childNodes
protected java.util.List<java.lang.String[]> extRefList
protected java.util.List<java.lang.String> refVAList
protected java.util.Set<oracle.jbo.AttributeDef> orderedPayloadAttrs
protected java.lang.Boolean isNodeTranslatable
protected static int dumpDepth
Constructor Detail |
---|
public SDViewNode(oracle.jbo.ViewObject viewObject, oracle.jbo.ApplicationModule appModule)
Method Detail |
---|
public static java.util.List<oracle.jbo.ViewObject> getRootViews(oracle.jbo.ApplicationModule appModule)
appModule
- application module to look into for top-level view objects
public static java.util.List<oracle.jbo.ViewObject> getSeedDriverViews(oracle.jbo.ApplicationModule appModule)
appModule
- Application Module
public static SDViewNode findViewNodeByDef(oracle.jbo.ApplicationModule appModule, SDViewNode excludeNode, java.lang.String viewDef)
viewDef
and is either a driver view node or is part of the hierarchy of a driver view node
appModule
- Application ModuleviewDef
- view definition name, Full definition is expected
public static SDViewNode findViewNodeByDBObject(oracle.jbo.ApplicationModule appModule, SDViewNode excludeNode, java.lang.String dBObject)
dBObject
and is either a driver view node or is part of the hierarchy of a driver view node.
appModule
- Application ModuledBObject
- db object name
public static boolean areDriverNodesSame(SDViewNode node1, SDViewNode node2)
node1
- node2
-
public static SDViewNode findViewNode(oracle.jbo.ApplicationModule refAM, oracle.jbo.ViewObject refVO)
public static SDViewNode findViewInstance(java.lang.String instanceName, oracle.jbo.ApplicationModule am)
instanceName
- view object instance name which needs to be found in amam
- AppilcationModule in which instance should be found
public static SDViewNode getDriver(oracle.jbo.ApplicationModule appModule, java.lang.String viewName, java.lang.Class cls)
appModule
- Application ModuleviewName
- View Object name whose driver view object is being requestedcls
- a subclass of SDViewNode. If a driver view is located, the returned object will
be an instance of this class.
public static SDViewNode getDriver(oracle.jbo.ApplicationModule appModule, java.lang.String viewName)
appModule
- Application ModuleviewName
- View Object name whose driver view object is being requested
public static java.lang.String getDBObject(oracle.jbo.ViewObject vo)
protected void initialize()
public void buildParentHierarchy() throws java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, SDMetaDataException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
SDMetaDataException
public boolean isLOVToBeExcluded(java.lang.String lovName)
protected boolean isAttrToBeExcluded(java.lang.String attrName)
public java.lang.String getSeedChangeIndicator()
public boolean isIncrMidTier()
public boolean isIncrDatabase()
public boolean isTranslationIncrLoad()
public static oracle.jbo.AttributeDef getViewAttrDefForEntityAttrDef(oracle.jbo.AttributeDef eoAttrDef, oracle.jbo.ViewObject vo) throws SDMetaDataException
SDMetaDataException
public static oracle.jbo.AttributeDef getViewAttrDefForEntityAttrDef(oracle.jbo.AttributeDef eoAttrDef, oracle.jbo.ViewObject vo, oracle.jbo.server.EntityDefImpl eDef) throws SDMetaDataException
eoAttrDef
- AttributeDef at Entity level
SDMetaDataException
public boolean isParentKey(oracle.jbo.AttributeDef attr)
attr
- attribute to be checked
public boolean isAttrInCompUsage(oracle.jbo.AttributeDef attr)
attr
- AttributeDef
public boolean isMLSAttribute(oracle.jbo.AttributeDef attr)
attr
-
public boolean isChangeIndicator(oracle.jbo.AttributeDef attr)
attr
- AttributeDef to check
public boolean isForeignKey(oracle.jbo.AttributeDef attr)
attr
- attribute to be checked
public boolean isReference(oracle.jbo.server.ViewAttributeDefImpl attr)
public boolean isLOVDriven(java.lang.String attrName)
attrName
- - attribute to check
public java.util.Set<java.lang.String> getDrivingAttributes(java.lang.String attrName)
attrName
- - attribute whose LOV driving attributes are to be fetched
public java.util.Map<java.lang.String,oracle.jbo.AttributeDef> getDrivingAttributeDefsMap(java.lang.String attrName)
attrName
- - attribute whose LOV driving attributes are to be fetched
public SDLOVUsage getDrivingLOVUsage(java.lang.String attrName)
protected boolean isHashingAttr(oracle.jbo.AttributeDef attr)
attr
- AttributeDef
public boolean isHistoryColAttribute(oracle.jbo.AttributeDef attr)
public boolean isKeyAttribute(oracle.jbo.AttributeDef attr)
protected oracle.jbo.ViewObject findOrCreateViewObject(oracle.jbo.server.ViewDefImpl def)
public boolean hasExtensionVOs()
public SDViewNode getExtensionNode(java.lang.String name)
name
- - view name of the the polymorphic sub type
protected void handleSelfReferences()
public boolean hasSelfReferences()
public java.util.LinkedHashMap<oracle.jbo.AttributeDef,oracle.jbo.AttributeDef> getSelfReferences()
public boolean isEffectiveDated()
public java.lang.String getName()
public boolean isContained()
public java.lang.String getDriverId()
public SDViewNode getDriverNode()
public oracle.jbo.ViewObject getViewObject()
public oracle.jbo.ApplicationModule getAM()
public boolean hasSurrogate()
public oracle.jbo.AttributeDef getSurrogateAttribute()
public java.util.List<SDViewNode> getChildren()
public SDViewNode getChildByName(java.lang.String name)
public SDViewNode getChildByDefName(java.lang.String defName)
public SDCompositionUsage getCompositionUsage(java.lang.String childName)
public java.util.Collection<SDCompositionUsage> getAllCompositionUsages()
public java.util.List<SDViewNode> getReferences()
public java.util.Collection<SDLOVUsage> getAllLOVUsages()
public SDViewNode getReferenceByName(java.lang.String name)
public SDReferenceUsage getReferenceUsageByAttribute(java.lang.String attrName)
public SDReferenceUsage getReferenceUsage(java.lang.String refName)
public java.util.Collection<SDReferenceUsage> getAllReferenceUsages()
public boolean hasExtractedAttribute(java.lang.String attrName)
public boolean hasReference(java.lang.String refName)
public java.util.List<oracle.jbo.AttributeDef> getExtractAttributes()
public java.util.Set<oracle.jbo.AttributeDef> getOrderedPayloadAttrs()
public Mapper getMapper(java.lang.String attr)
public java.util.List<Mapper> getAllMappers()
public java.util.List<oracle.jbo.AttributeDef> getAltKeyAttributeList()
public oracle.jbo.ViewCriteria getAltKeyCriteria()
public java.util.List<oracle.jbo.AttributeDef> getKeyAttributes()
public java.util.List<oracle.jbo.AttributeDef> getPrimaryKeyAttributesWithoutEffDate()
public java.util.List<oracle.jbo.AttributeDef> getAltKeyAttributesWithoutEffDate()
public boolean isEffDateAttr(oracle.jbo.server.AttributeDefImpl attr)
attr
- AttributeDefImpl
public java.util.List<java.lang.String> getTrueKeyAttributeNamesNoChaining()
public java.util.Collection<java.lang.String> getTrueKeyAttributeNames()
public java.util.Map<java.lang.String,oracle.jbo.AttributeDef> getTrueKeyAttributeDefsMap()
public SDViewNode getContainedNodeForDef(java.lang.String viewDef)
viewDef
- View definition
public SDViewNode getContainedNodeForDBObject(java.lang.String dbObject)
public static java.lang.String getReferenceAttributeName(SDViewNode targetNode, java.lang.String attr)
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void dumpNode()
public void dumpTree()
public java.util.List<java.lang.String> getAltKeyAttributeNames()
public boolean isMultiTenantCapable()
public boolean isVAInRefVAList(java.lang.String vaDefName)
public java.util.List<java.lang.String[]> getStaticExtRefList()
public boolean isTranslatable()
public oracle.jbo.AttributeDef getEnterpriseAttribute()
|
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 |