Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.domain.xrefs.expression.contexts
Class OdiProjectExpressionContext

java.lang.Object
  extended by oracle.odi.domain.xrefs.expression.contexts.OdiProjectExpressionContext
All Implemented Interfaces:
IExpressionContext

public final class OdiProjectExpressionContext
extends java.lang.Object
implements IExpressionContext

Context that has to be used to get SnpsExpressionTags relative to an OdiProject.

That context returns expression tags relative to OdiVariables, OdiSequences and OdiUserFunctions that belong to the specified OdiProject instance.

Since:
11.1.1.3.0

Constructor Summary
OdiProjectExpressionContext(OdiProject pProject)
          Create a new OdiProjectExpressionContext.
OdiProjectExpressionContext(OdiProject pProject, IOdiVariableFinder pOdiVariableFinder, IOdiSequenceFinder pOdiSequenceFinder, IOdiUserFunctionFinder pOdiUserFunctionFinder)
          Create a new OdiProjectExpressionContext.
 
Method Summary
 com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
          Obtains the expression tags relative to this context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdiProjectExpressionContext

public OdiProjectExpressionContext(OdiProject pProject)
Create a new OdiProjectExpressionContext. By using this constructor, the expression context will see the variables/sequences/userfunctions using the getters from the project only. Therefore it will not see new objects added from another transaction.

Parameters:
pProject - a project

OdiProjectExpressionContext

public OdiProjectExpressionContext(OdiProject pProject,
                                   IOdiVariableFinder pOdiVariableFinder,
                                   IOdiSequenceFinder pOdiSequenceFinder,
                                   IOdiUserFunctionFinder pOdiUserFunctionFinder)
Create a new OdiProjectExpressionContext. By using this constructor, the expression context will retrieve the objects through the finders rather than getting them from the project. Therefore you will see new objects added from other transactions, but you will not see the ones that have been added in this transaction unless flush() on the entity manager is called.

Parameters:
pProject - the project for which we want the context
pOdiVariableFinder - to find variables in the project
pOdiSequenceFinder - to find sequences in the project
pOdiUserFunctionFinder - to find user functions in the project
Method Detail

getSnpsExpressionTags

public com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
Description copied from interface: IExpressionContext
Obtains the expression tags relative to this context.

Specified by:
getSnpsExpressionTags in interface IExpressionContext
Parameters:
pSnpsLanguage - the language that will be used when manipulating the expression tags (i.e. when building the Expression)
Returns:
an array of expression tags

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.