public class MapExpression extends oracle.odi.domain.root.Root implements IMapExpression, IMappingObject, oracle.odi.domain.mapping.IMapReferenceOwner
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MapExpression.AggregationFunctionType  | 
static class  | 
MapExpression.ExecuteOnLocation
This enumeration type defines the values for "Execute on Hint" property. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static java.util.Vector | 
keywordList
A list of keywords recognized in ODI expressions. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkReferences()
Checks to see if all references are still valid. 
 | 
java.lang.Object | 
clone()
Creates a new instance having same content values with this expression. 
 | 
boolean | 
containsAggregationFunction(ITechnology techno)
Returns true if this expression contains any kind of aggregation function call in the
 context of the specified technology. 
 | 
boolean | 
containsAggregationFunction(ITechnology techno,
                           MapExpression.AggregationFunctionType type)
Returns true if this expression contains group-by type aggregation function call or window (analytical) function call in the
 context of the specified technology. 
 | 
boolean | 
containsGroupByAggregationFunction(ITechnology techno)
Returns true if this expression contains group-by type Aggregation function call in the
 context of the specified technology. 
 | 
boolean | 
containsWindowFunction(ITechnology techno)
Returns true if this expression contains a window (analytical) function call in the
 context of the specified technology. 
 | 
java.util.List | 
getAllMapReferences()  | 
oracle.odi.domain.mapping.MapComponentOwner | 
getComponentOwner()
Returns the component owner that owns this expression or owns the component which owns this
 expression, or null if there is none. 
 | 
MapExpressionXRef | 
getCrossReference(java.lang.String key)
Gets the cross reference object from the list of cross references, for the given key. 
 | 
java.util.Map | 
getCrossReferenceMap()
Gets a map between reference key to  
MapExpressionXRef object. | 
java.util.List | 
getCrossReferences()
Gets the full list of cross references for this expression, created when the expression
 was last parsed. 
 | 
java.util.List | 
getCrossReferences(java.util.List inScopeComponents)
Gets the full list of cross references for this expression, created when the expression
 was last parsed. 
 | 
java.lang.String | 
getDisplayableObjectName()
Returns descriptive name for this expression suitable for UI. 
 | 
int | 
getDistinctReferenceCount()
Gets the number of distinct references, with no duplicates, for this expression. 
 | 
MapExpression.ExecuteOnLocation | 
getExecuteOnHint()
Gets the execute on hint value for this expression. 
 | 
ILogicalSchema | 
getExecuteOnLocation()
Gets the execute on hint value of this expression. 
 | 
java.lang.String | 
getExecuteOnLocationName()
Gets the name for execute on hint value set on this expression. 
 | 
java.util.Map | 
getExpressionMap()
Gets a hash map keyed by scoping input connector point, and whose values are the
 expressions associated with the input connector point. 
 | 
IMapExpressionOwner | 
getExpressionOwner()
Gets the direct owner of this expression. 
 | 
java.lang.String | 
getExpressionText(java.util.Map substitutes)
Gets the expression text using the specified substitute text map for each 
 referenced attribute. 
 | 
java.util.List | 
getLanguages()
Gets the list of languages that are used to interpret this expression in the logical
 mapping graph. 
 | 
ITechnology | 
getLogicalExpressionTechnology()
Returns the implementing technology for expressions owned by bound components,
 or mapping generic technology for expressions of unbound components. 
 | 
IRoot | 
getOwner()
Gets the owner of this expression. 
 | 
MapAttribute | 
getOwningAttribute()
Gets the attribute that owns this expression. 
 | 
IMapComponent | 
getOwningComponent()
Returns the component that owns this expression, or null if there is none. 
 | 
IMapComponent | 
getOwningLeafComponent()
Returns the component that owns this expression, or null if there is none. 
 | 
MapConnectorPoint | 
getOwningLeafConnectorPoint()
Returns the connector point that owns this expression, or null if there is none. 
 | 
Property | 
getOwningProperty()
Gets the property that owns this expression. 
 | 
java.lang.String | 
getParsedText()
Returns the parsed text of this expression. 
 | 
int | 
getReferenceCount()
Gets the current reference count for the expression. 
 | 
java.util.List | 
getReferencedObjects()
Gets a list of the referenced objects for this expressions. 
 | 
oracle.odi.domain.mapping.MapRootContainer | 
getRootContainer()
Get the owning FCO root container object for this object. 
 | 
MapConnectorPoint | 
getScopingInputPoint()
Gets the associated input connector point used for scoping. 
 | 
java.lang.String | 
getTechnicalDescription()
Returns the technical description property value of this expression 
 | 
java.lang.String | 
getText()
Gets the unparsed text of this expression. 
 | 
java.util.List | 
getUnparsedIdentifiers()
Gets a list of possible identifiers that do not match any objects. 
 | 
boolean | 
hasReferenceTo(java.lang.Object modelObj)
Returns true if this expression contains a reference to the specified object. 
 | 
boolean | 
isNoParse()
Checks if the expression parsing is disables. 
 | 
boolean | 
isSimpleExpression()
Returns true if this expression represents a simple reference to one upstream attribute. 
 | 
oracle.odi.domain.mapping.expression.parser.tree.ExpressionNode | 
parseExpression()
Checks if the expression has been invalidated, and if so, re-parses the expression. 
 | 
oracle.odi.domain.mapping.expression.parser.tree.ExpressionNode | 
parseExpression(java.util.List inScopeComponents)
Checks if the expression has been invalidated, and if so, re-parses the expression. 
 | 
void | 
setExecuteOnHint(MapExpression.ExecuteOnLocation loc)
Sets the execute on hint value for this expression 
 | 
void | 
setExecuteOnLocation(ILogicalSchema loc)
Sets the execute on hint to the given logical schema. 
 | 
void | 
setExecuteOnLocationByName(java.lang.String name)
Sets execute on hint value based on the String value given. 
 | 
void | 
setExpressionOwner(IMapExpressionOwner owner)
Sets the root owner for this expression. 
 | 
void | 
setNoParse(boolean value)
Sets a flag that prevents parsing of expression text. 
 | 
void | 
setScopingInputPoint(MapConnectorPoint point)
Sets the associated input scoping connector point for this expression. 
 | 
void | 
setText(java.lang.String text)
Sets the expression text. 
 | 
java.lang.String | 
toString()
Gets an informative String showing all the essential aspects of this expression. 
 | 
addCachedIssue, addCachedIssues, clearIssueCache, delete, displayIssues, displayIssues, displayIssues, dump, dump, dump, dump, dumpToString, equals, getCachedErrors, getCachedSyncState, getCachedValidationErrorMessage, getChildNamespaceId, getFCOContainer, getFullName, getGUID, getInternalId, getName, getPropertyDefinitionOwner, getStrongTypeClassName, getSyncState, getValueHolderValue, hasAdapter, hashCode, isNew, setCachedSyncState, validate, validategetBigNumericId, getGlobalId, getNumericId, getParentgetNamegetBigNumericId, getGlobalId, getNumericIdgetGlobalId, getParentpublic static java.util.Vector keywordList
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone in class oracle.odi.domain.support.BusinessObjectCloneNotSupportedException.java.lang.CloneNotSupportedExceptionpublic void setExpressionOwner(IMapExpressionOwner owner)
owner - the owner of this expression.public void setScopingInputPoint(MapConnectorPoint point)
point - the connector point to be set as the scoping point.public MapConnectorPoint getScopingInputPoint()
public void setNoParse(boolean value)
value - if true, parsing of expression text is disabled.public boolean isNoParse()
public IRoot getOwner()
public void setText(java.lang.String text)
             throws MappingException
text - The text to set.AdapterExceptionMappingExceptionpublic java.lang.String getText()
public java.lang.String getParsedText()
                               throws MappingException,
                                      AdapterException
PropertyExceptionAdapterExceptionMappingExceptionpublic java.util.List getUnparsedIdentifiers()
public MapExpressionXRef getCrossReference(java.lang.String key) throws MappingException, AdapterException
key - the cross reference key.oracle.odi.domain.mapping.expression.parser.ExpressionParseExceptionMappingExceptionAdapterExceptionpublic int getReferenceCount()
public int getDistinctReferenceCount()
public java.util.List getReferencedObjects()
public java.util.List getCrossReferences()
                                  throws MappingException,
                                         AdapterException
MappingExceptionAdapterExceptionpublic java.util.List getCrossReferences(java.util.List inScopeComponents)
                                  throws MappingException,
                                         AdapterException
inScopeComponents - the list of components that are considered in-scope for this expression.
 If the value is null, then the in-scope component list will be determined by the 
 graph itself, which is the normal case.MappingExceptionAdapterExceptionpublic java.util.Map getCrossReferenceMap()
MapExpressionXRef object.public oracle.odi.domain.mapping.expression.parser.tree.ExpressionNode parseExpression()
                                                                                throws MappingException,
                                                                                       AdapterException
MappingExceptionAdapterExceptionpublic oracle.odi.domain.mapping.expression.parser.tree.ExpressionNode parseExpression(java.util.List inScopeComponents)
                                                                                throws MappingException,
                                                                                       AdapterException
inScopeComponents - the list of in scope components to restrict parsing of this expression.MappingExceptionAdapterExceptionpublic boolean checkReferences()
                        throws MappingException,
                               AdapterException
MappingExceptionAdapterExceptionpublic IMapComponent getOwningComponent()
public IMapComponent getOwningLeafComponent() throws MappingException
MappingExceptionpublic MapConnectorPoint getOwningLeafConnectorPoint() throws MappingException
MappingExceptionpublic MapAttribute getOwningAttribute()
public Property getOwningProperty()
public ITechnology getLogicalExpressionTechnology() throws oracle.odi.domain.mapping.exception.MapComponentException, AdapterException
oracle.odi.domain.mapping.exception.MapComponentExceptionAdapterExceptionpublic oracle.odi.domain.mapping.MapComponentOwner getComponentOwner()
                                                              throws oracle.odi.domain.mapping.exception.MapComponentException
oracle.odi.domain.mapping.exception.MapComponentExceptionpublic IMapExpressionOwner getExpressionOwner()
public java.util.Map getExpressionMap()
                               throws oracle.odi.domain.mapping.exception.MapComponentException
oracle.odi.domain.mapping.exception.MapComponentExceptionpublic java.lang.String toString()
toString in class oracle.odi.domain.root.Rootpublic java.lang.String getExpressionText(java.util.Map substitutes)
                                   throws MappingException,
                                          AdapterException
substitutes - MappingExceptionAdapterExceptionpublic boolean hasReferenceTo(java.lang.Object modelObj)
                       throws MappingException,
                              AdapterException
AdapterExceptionMappingExceptionpublic boolean containsAggregationFunction(ITechnology techno) throws MappingException, AdapterException
techno - The technology whose supported aggregation functions will be checked.  If null, the mapping generic technology is used.
.  * @return true if this expression contains an aggregate function call, false otherwise.MappingExceptionAdapterExceptionpublic boolean containsWindowFunction(ITechnology techno) throws MappingException, AdapterException
techno - The technology whose supported aggregation functions will be checked.  If null, the mapping generic technology is used.
.  * @return true if this expression contains an aggregate function call, false otherwise.MappingExceptionAdapterExceptionpublic boolean containsGroupByAggregationFunction(ITechnology techno) throws MappingException, AdapterException
techno - The technology whose supported aggregation functions will be checked.  If null, the mapping generic technology is used.
.  * @return true if this expression contains an aggregate function call, false otherwise.MappingExceptionAdapterExceptionpublic boolean containsAggregationFunction(ITechnology techno, MapExpression.AggregationFunctionType type) throws MappingException, AdapterException
techno - The technology whose supported aggregation functions will be checked.  If null, the mapping generic technology is used.type - WINDOW for a window (analytical) function, otherwise AGGREGATION for a regular aggregation functionMappingExceptionAdapterExceptionpublic java.util.List getLanguages()
                            throws oracle.odi.domain.mapping.exception.MapComponentException,
                                   AdapterException
oracle.odi.domain.mapping.exception.MapComponentExceptionAdapterExceptionpublic MapExpression.ExecuteOnLocation getExecuteOnHint() throws MappingException
MappingExceptionpublic void setExecuteOnHint(MapExpression.ExecuteOnLocation loc) throws MappingException
loc - the execute on hit.MappingExceptionpublic void setExecuteOnLocation(ILogicalSchema loc) throws oracle.odi.domain.mapping.exception.MapComponentException, AdapterException
loc - the logical schema from which to calculate the value for execute on hint and set.oracle.odi.domain.mapping.exception.MapComponentExceptionAdapterExceptionpublic ILogicalSchema getExecuteOnLocation() throws AdapterException, oracle.odi.domain.mapping.exception.MapComponentException
AdapterExceptionoracle.odi.domain.mapping.exception.MapComponentExceptionpublic void setExecuteOnLocationByName(java.lang.String name)
                                throws AdapterException,
                                       MappingException
name - the String value for the execute on hint.AdapterExceptionMappingExceptionpublic java.lang.String getExecuteOnLocationName()
                                          throws AdapterException,
                                                 oracle.odi.domain.mapping.exception.MapComponentException
AdapterExceptionoracle.odi.domain.mapping.exception.MapComponentExceptionpublic boolean isSimpleExpression()
                           throws AdapterException,
                                  MappingException
AdapterExceptionMappingExceptionpublic java.lang.String getDisplayableObjectName()
getDisplayableObjectName in interface IRootgetDisplayableObjectName in class oracle.odi.domain.root.Rootpublic java.lang.String getTechnicalDescription()
public java.util.List getAllMapReferences()
getAllMapReferences in interface oracle.odi.domain.mapping.IMapReferenceOwnerpublic oracle.odi.domain.mapping.MapRootContainer getRootContainer()
IMappingObjectgetRootContainer in interface oracle.odi.domain.mapping.IMapReferenceOwnergetRootContainer in interface IMappingObjectgetRootContainer in class oracle.odi.domain.root.Root