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

E22564-02

oracle.apps.fnd.applseed.rt.loader.core
Class SDLoaderViewNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by oracle.apps.fnd.applseed.rt.common.objects.SDViewNode
          extended by oracle.apps.fnd.applseed.rt.loader.core.SDLoaderViewNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class SDLoaderViewNode
extends SDViewNode

This class represents a generic SeedViewObject.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.apps.fnd.applseed.rt.common.objects.SDViewNode
childNodes, dumpDepth, extRefList, isNodeTranslatable, orderedPayloadAttrs, refVAList
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
SDLoaderViewNode(oracle.jbo.ViewObject viewObject, oracle.jbo.ApplicationModule appModule)
          View Object based constructor.
 
Method Summary
 void enableBulkValidations()
           
 void enableJDBCBatchMode()
           
 SDLoaderViewNode getChildWithPolymorphicType(java.lang.String childName, java.lang.String subType)
          Returns the correct polymorphic sub type node for a child of this node .
 int getCommitSize(SDLoaderParams lps)
          Get the commit size for this node, if this node is not a driver node then get the commit size of the driver root node.
 oracle.jbo.server.ViewObjectImpl getDuplicateViewObjectForDE()
           
 java.lang.String getLastUpdatedByAttrName()
           
 SDLoaderViewNode getNodeInTreeByName(java.lang.String voName)
          Looks up a node with the given name within the current node's hieararchy.
 SDLoaderViewNode getPolymorphicNode(java.lang.String subType)
          Returns the correct polymorphic sub type node.
 java.util.List<SDTable> getUpdatedTablesList()
          Get the DML table list associated with this view node.
 boolean hasAttribute(java.lang.String attributeName)
          Test if attribute belongs to this node.
 void initialize()
           
 boolean isBatchUpdates(SDLoaderParams lps)
           
 boolean isBulkValidate(SDLoaderParams lps)
           
 boolean isIncrLoading(SDLoaderParams lps)
           
 
Methods inherited from class oracle.apps.fnd.applseed.rt.common.objects.SDViewNode
areDriverNodesSame, buildParentHierarchy, dumpNode, dumpTree, equals, findOrCreateViewObject, findViewInstance, findViewNode, findViewNodeByDBObject, findViewNodeByDef, getAllCompositionUsages, getAllLOVUsages, getAllMappers, getAllReferenceUsages, getAltKeyAttributeList, getAltKeyAttributeNames, getAltKeyAttributesWithoutEffDate, getAltKeyCriteria, getAM, getChildByDefName, getChildByName, getChildren, getCompositionUsage, getContainedNodeForDBObject, getContainedNodeForDef, getDBObject, getDriver, getDriver, getDriverId, getDriverNode, getDrivingAttributeDefsMap, getDrivingAttributes, getDrivingLOVUsage, getEnterpriseAttribute, getExtensionNode, getExtractAttributes, getKeyAttributes, getMapper, getName, getOrderedPayloadAttrs, getPrimaryKeyAttributesWithoutEffDate, getReferenceAttributeName, getReferenceByName, getReferences, getReferenceUsage, getReferenceUsageByAttribute, getRootViews, getSeedChangeIndicator, getSeedDriverViews, getSelfReferences, getStaticExtRefList, getSurrogateAttribute, getTrueKeyAttributeDefsMap, getTrueKeyAttributeNames, getTrueKeyAttributeNamesNoChaining, getViewAttrDefForEntityAttrDef, getViewAttrDefForEntityAttrDef, getViewObject, handleSelfReferences, hasExtensionVOs, hasExtractedAttribute, hashCode, hasReference, hasSelfReferences, hasSurrogate, isAttrInCompUsage, isAttrToBeExcluded, isChangeIndicator, isContained, isEffDateAttr, isEffectiveDated, isForeignKey, isHashingAttr, isHistoryColAttribute, isIncrDatabase, isIncrMidTier, isKeyAttribute, isLOVDriven, isLOVToBeExcluded, isMLSAttribute, isMultiTenantCapable, isParentKey, isReference, isTranslatable, isTranslationIncrLoad, isVAInRefVAList, 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
 

Constructor Detail

SDLoaderViewNode

public SDLoaderViewNode(oracle.jbo.ViewObject viewObject,
                        oracle.jbo.ApplicationModule appModule)
                 throws java.lang.NoSuchMethodException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.lang.reflect.InvocationTargetException,
                        SDMetaDataException
View Object based constructor.

Parameters:
viewObject - ViewObject of the node
appModule - Application Module configuration
Throws:
java.lang.NoSuchMethodException - no such method
java.lang.InstantiationException - instantiation
java.lang.IllegalAccessException - illegal access
java.lang.reflect.InvocationTargetException - invocation target
SDMetaDataException - Metadata Exception
Method Detail

initialize

public void initialize()
Overrides:
initialize in class SDViewNode

getLastUpdatedByAttrName

public java.lang.String getLastUpdatedByAttrName()

hasAttribute

public boolean hasAttribute(java.lang.String attributeName)
Test if attribute belongs to this node.

Parameters:
attributeName - attribute name
Returns:
true if attribute belongs to node

getPolymorphicNode

public SDLoaderViewNode getPolymorphicNode(java.lang.String subType)
                                    throws SDUnknownEntitySubTypeException
Returns the correct polymorphic sub type node.

Parameters:
subType -
Returns:
the correct polymorphic sub type node
Throws:
SDUnknownEntitySubTypeException

getChildWithPolymorphicType

public SDLoaderViewNode getChildWithPolymorphicType(java.lang.String childName,
                                                    java.lang.String subType)
                                             throws SDUnknownEntityException
Returns the correct polymorphic sub type node for a child of this node .

Parameters:
childName -
subType -
Returns:
the correct polymorphic sub type node
Throws:
SDUnknownEntitySubTypeException
SDUnknownEntityException

getNodeInTreeByName

public SDLoaderViewNode getNodeInTreeByName(java.lang.String voName)
Looks up a node with the given name within the current node's hieararchy.

Parameters:
voName -
Returns:
a node with the given name within the current node's hieararchy

getDuplicateViewObjectForDE

public oracle.jbo.server.ViewObjectImpl getDuplicateViewObjectForDE()

getUpdatedTablesList

public java.util.List<SDTable> getUpdatedTablesList()
Get the DML table list associated with this view node.

Returns:
List of SDTables TODO: We might have to add the list of tables provided by the user.

getCommitSize

public int getCommitSize(SDLoaderParams lps)
Get the commit size for this node, if this node is not a driver node then get the commit size of the driver root node. based on following precedence: 1. command line param 2. AM custom property for only for the driver root node 3. environment variable 4. default value

Parameters:
lps - SDLoaderParams
Returns:
int commit size to use for loader

isIncrLoading

public boolean isIncrLoading(SDLoaderParams lps)

isBatchUpdates

public boolean isBatchUpdates(SDLoaderParams lps)

isBulkValidate

public boolean isBulkValidate(SDLoaderParams lps)

enableBulkValidations

public void enableBulkValidations()

enableJDBCBatchMode

public void enableJDBCBatchMode()

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

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.