com.metamatrix.query.mapping.xml
Class MappingSourceNode

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingNode
      extended by com.metamatrix.query.mapping.xml.MappingBaseNode
          extended by com.metamatrix.query.mapping.xml.MappingSourceNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MappingSourceNode
extends MappingBaseNode

This represents a source node. A source node is which produces results from executing a relational query.

See Also:
Serialized Form

Constructor Summary
protected MappingSourceNode()
           
  MappingSourceNode(java.lang.String source)
           
 
Method Summary
 void acceptVisitor(MappingVisitor visitor)
           
 java.util.Map buildFullSymbolMap()
           
 java.lang.String getActualResultSetName()
           
 java.lang.String getAliasResultName()
           
 ElementSymbol getMappedSymbol(ElementSymbol symbol)
           
 GroupSymbol getMappedSymbol(GroupSymbol symbol)
           
 MappingSourceNode getParentSourceNode()
           
 java.lang.String getResultName()
           
 ResultSetInfo getResultSetInfo()
           
 MappingSourceNode getSourceNode()
          Get the source node for this Mapping Node; note that only mapping elements and mapping attributes have the source nodes; that too ones with specified with NameInSource specified attribute.
 java.util.Map getSymbolMap()
           
 boolean isRootSourceNode()
           
 void setAliasResultName(java.lang.String alias)
          in the case of recursive node we need to know the original source node name; this represents that name.
 void setResultSetInfo(ResultSetInfo resultSetInfo)
           
 MappingBaseNode setSource(java.lang.String source)
           
 void setSymbolMap(java.util.Map symbolMap)
           
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 void updateSymbolMapDependentValues()
           
 
Methods inherited from class com.metamatrix.query.mapping.xml.MappingBaseNode
addAllNode, addChildElement, addChoiceNode, addCriteriaNode, addSequenceNode, addSourceNode, addStagingTable, getCanonicalName, getDocument, getMaxOccurence, getMinOccurence, getName, getParentNode, getRecursionId, getSource, getStagingTables, isDocumentNode, isRootRecursiveNode, isTagRoot, removeChildNode, setMaxOccurrs, setMinOccurrs, setStagingTables
 
Methods inherited from class com.metamatrix.query.mapping.xml.MappingNode
addChild, equals, findNode, getChildren, getChildren, getFullyQualifiedName, getNameInSource, getNodeChildren, getNodeProperties, getParent, getPathName, getProperty, hashCode, isExcluded, printMappingNodeTree, setExclude, toStringNodeTree
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingSourceNode

protected MappingSourceNode()

MappingSourceNode

public MappingSourceNode(java.lang.String source)
Method Detail

acceptVisitor

public void acceptVisitor(MappingVisitor visitor)
Specified by:
acceptVisitor in class MappingNode

getResultName

public java.lang.String getResultName()

getAliasResultName

public java.lang.String getAliasResultName()

setAliasResultName

public void setAliasResultName(java.lang.String alias)
in the case of recursive node we need to know the original source node name; this represents that name.

Parameters:
alias -

setSource

public MappingBaseNode setSource(java.lang.String source)
Overrides:
setSource in class MappingBaseNode

getSourceNode

public MappingSourceNode getSourceNode()
Description copied from class: MappingNode
Get the source node for this Mapping Node; note that only mapping elements and mapping attributes have the source nodes; that too ones with specified with NameInSource specified attribute. If not find nearest one looking up the tree.

Overrides:
getSourceNode in class MappingNode
Returns:

isRootSourceNode

public boolean isRootSourceNode()

getParentSourceNode

public MappingSourceNode getParentSourceNode()

getResultSetInfo

public ResultSetInfo getResultSetInfo()

setResultSetInfo

public void setResultSetInfo(ResultSetInfo resultSetInfo)

toString

public java.lang.String toString()
Description copied from class: MappingNode
Returns a string representation of an instance of this class.

Overrides:
toString in class MappingNode

getSymbolMap

public java.util.Map getSymbolMap()

setSymbolMap

public void setSymbolMap(java.util.Map symbolMap)

updateSymbolMapDependentValues

public void updateSymbolMapDependentValues()

getActualResultSetName

public java.lang.String getActualResultSetName()

buildFullSymbolMap

public java.util.Map buildFullSymbolMap()

getMappedSymbol

public ElementSymbol getMappedSymbol(ElementSymbol symbol)

getMappedSymbol

public GroupSymbol getMappedSymbol(GroupSymbol symbol)


Copyright © 2009. All Rights Reserved.