public abstract class Expression extends AbstractSyntaxTree implements ISelectItem
AbstractSyntaxTree.LogCounter
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
JAVA_LOGGER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List |
getAccompanyingExpressions()
Get all accompanying expressions.
|
java.lang.String |
getDefaultValueTemplate()
Gets the default value template of this expression.
|
oracle.odi.domain.mapping.MapAttribute |
getMapAttribute()
Get the map attribute that is associated with this select item, if any, else null.
|
oracle.odi.domain.root.IMappingObject |
getMappingObject() |
int |
getMaxColumnLength()
Get the max length of the column name.
|
MapAttributeWithPath |
getRefAttributeWithPath()
Gets the referenced attribute object with the path information for this
expression.
|
oracle.odi.domain.mapping.xreference.IExpressionReferencedObject |
getRefObject()
Get the reference object.
|
oracle.odi.domain.mapping.MapPathSpecifier |
getRefPath()
Gets the reference path for this expression.
|
java.lang.String |
getTargetColumnName()
Get a target column name that corresponds to this query select item, for the case where
the query is owned by a DML statement object.
|
java.lang.String |
getTemplate()
Gets the template of this expression.
|
abstract java.lang.String |
getText()
Get the text for this expression.
|
java.lang.String |
getType()
Get the class type of this object.
|
boolean |
hasCorrelatedSubquery()
Returns true if this expression contains a correlated subquery.
|
int |
hashCode() |
boolean |
hasWindowFunction(oracle.odi.domain.adapter.topology.ITechnology techno)
Indicates whether this expression references a window function.
|
boolean |
isAggregation(oracle.odi.domain.adapter.topology.ITechnology techno)
Indicates whether this expression references an aggregation function.
|
boolean |
isAggregation(oracle.odi.domain.adapter.topology.ITechnology techno,
oracle.odi.mapping.generation.Expression.AggregationFunctionType type)
Returns true if this expression is an aggregate or window function.
|
boolean |
isPassive() |
abstract boolean |
isSimpleExpression()
Return true if the expression is a simple reference to exactly one referenced source object or attribute,
with no function calls or operators.
|
getChildren, getCodeGenerationTemplate, getCodeGenerationTemplateName, getCustomTemplate, getExpressions, getKMName, getLeafLevelChildren, getMapPhysicalNode, getOrder, getParentAST, getParentOfType, getPropertyValue, getSourceLanguage, getSourceLocation, getSourceTechnology, getSourceText, getTargetLanguage, getTargetLocation, getTargetTechnology, getTargetText, getTemplateSubstitutionMap, hasCustomTemplate, hasSourceAndTargetText, isLeafLevelNode, isPushFromSource
getClass, notify, notifyAll, toString, wait, wait, wait
getArrayExpression, getCorrelatedQuery, getQuery, getSourceAttributes, getSourceExpressions, getStringExpression, getText
public java.lang.String getTemplate()
public java.lang.String getDefaultValueTemplate()
public boolean isPassive()
public oracle.odi.domain.mapping.xreference.IExpressionReferencedObject getRefObject()
getRefObject
in interface ISelectItem
public oracle.odi.domain.mapping.MapPathSpecifier getRefPath()
getRefPath
in interface ISelectItem
public int getMaxColumnLength()
getMaxColumnLength
in interface ISelectItem
public abstract boolean isSimpleExpression()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasWindowFunction(oracle.odi.domain.adapter.topology.ITechnology techno)
hasWindowFunction
in interface ISelectItem
techno
- technology to use for finding the list of aggregation functionspublic boolean isAggregation(oracle.odi.domain.adapter.topology.ITechnology techno)
isAggregation
in interface ISelectItem
techno
- technology to use for finding the list of aggregation functionspublic boolean isAggregation(oracle.odi.domain.adapter.topology.ITechnology techno, oracle.odi.mapping.generation.Expression.AggregationFunctionType type)
techno
- The Technology this expression belongs to.type
- type of aggregation to check for: AggregationFunctionType.AGGREGATION or AggregationFunctionType.WINDOWpublic abstract java.lang.String getText()
getText
in class AbstractSyntaxTree
public java.util.List getAccompanyingExpressions()
public boolean hasCorrelatedSubquery()
hasCorrelatedSubquery
in interface ISelectItem
public java.lang.String getTargetColumnName()
getTargetColumnName
in interface ISelectItem
public MapAttributeWithPath getRefAttributeWithPath()
getRefAttributeWithPath
in interface ISelectItem
public java.lang.String getType()
getType
in class AbstractSyntaxTree
public oracle.odi.domain.root.IMappingObject getMappingObject()
getMappingObject
in interface ISelectItem
public oracle.odi.domain.mapping.MapAttribute getMapAttribute() throws oracle.odi.domain.adapter.AdapterException, oracle.odi.domain.mapping.exception.MappingException
ISelectItem
getMapAttribute
in interface ISelectItem
oracle.odi.domain.mapping.exception.MappingException
oracle.odi.domain.adapter.AdapterException