|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.3.0) E17060-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.odi.domain.xrefs.expression.ExpressionStringBuilder
public final class ExpressionStringBuilder
Helps in the construction of an Expression instance.
This class provides methods to build an expression using ODI objects that can be part of an expression (i.e. variable, column, etc.), as well as plain string corresponding to statements from a predefined language.
You can use that class in order to:
toString() method can be used to get
such string.toExpression() method can be used to get such instance.
Expression| Constructor Summary | |
|---|---|
ExpressionStringBuilder(com.sunopsis.language.SnpsLanguage pLanguage)
Create a new ExpressionStringBuilder. |
|
| Method Summary | |
|---|---|
ExpressionStringBuilder |
append(IColumn<?> pColumn,
java.lang.String pDataStoreAlias)
Append the string representation of the given IColumn to this builder's expression. |
ExpressionStringBuilder |
append(ISourceColumn pSourceColumn)
Append the string representation of the given ISourceColumn to this builder's
expression. |
ExpressionStringBuilder |
append(OdiSequence pOdiSequence,
boolean pBinding)
Append the string representation of the given OdiSequence to this builder's
expression. |
ExpressionStringBuilder |
append(OdiUserFunction pOdiUserFunction)
Append the string representation of the given OdiUserFunction to this builder's
expression. |
ExpressionStringBuilder |
append(OdiUserFunction pOdiUserFunction,
java.util.List<ExpressionStringBuilder> pBuilders)
Append the string representation of the given OdiUserFunction to this builder's
expression and uses the pBuilders as parameters of the function. |
ExpressionStringBuilder |
append(OdiVariable pOdiVariable,
boolean pBinding)
Append the string representation of the given OdiVariable to this builder's
expression. |
ExpressionStringBuilder |
append(java.lang.String pString)
Append the given string to this builder's expression. |
com.sunopsis.language.parser.SnpsExpressionTag[] |
getExpressionTags()
Returns the current expression tags of this builder. |
com.sunopsis.language.SnpsLanguage |
getLanguage()
Returns the language that is used by this builder. |
Expression |
toExpression()
Conversion method that takes the current state of this builder and returns it as an Expression instance. |
java.lang.String |
toString()
Returns the string representation of the expression of this builder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionStringBuilder(com.sunopsis.language.SnpsLanguage pLanguage)
ExpressionStringBuilder.
pLanguage - a language definition| Method Detail |
|---|
public ExpressionStringBuilder append(IColumn<?> pColumn,
java.lang.String pDataStoreAlias)
throws IllegalExpressionObjectException
IColumn to this builder's expression.
pColumn - the column to appendpDataStoreAlias - the alias of the data store to be appended to the column name
IllegalExpressionObjectException - if the string representation of the given column
is illegal
public ExpressionStringBuilder append(ISourceColumn pSourceColumn)
throws IllegalExpressionObjectException
ISourceColumn to this builder's
expression.
pSourceColumn - the column to append
IllegalExpressionObjectException - if the string representation of the given column
is illegal
public ExpressionStringBuilder append(OdiSequence pOdiSequence,
boolean pBinding)
throws IllegalExpressionObjectException
OdiSequence to this builder's
expression.
pOdiSequence - the sequence to appendpBinding - true if the sequence should be resolved during SQL binding,
or false to resolve it using direct replacement
IllegalExpressionObjectException - if the string representation of the given sequence
is illegal
public ExpressionStringBuilder append(OdiUserFunction pOdiUserFunction)
throws IllegalExpressionObjectException
OdiUserFunction to this builder's
expression.
pOdiUserFunction - the user function to append
IllegalExpressionObjectException - if the string representation of the given user
function is illegal
public ExpressionStringBuilder append(OdiUserFunction pOdiUserFunction,
java.util.List<ExpressionStringBuilder> pBuilders)
throws IllegalExpressionObjectException
OdiUserFunction to this builder's
expression and uses the pBuilders as parameters of the function. Note that
every parameter is considered as existing (optional parameters are considered as mandatory)
and only one instance is taken for each parameter, even for repeatable ones.
pOdiUserFunction - the user function to appendpBuilders - the ExpressionStringBuilders to be used as parameters for the function
IllegalExpressionObjectException - if the string representation of the given user function is illegal
public ExpressionStringBuilder append(OdiVariable pOdiVariable,
boolean pBinding)
throws IllegalExpressionObjectException
OdiVariable to this builder's
expression.
pOdiVariable - the variable to appendpBinding - true if the variable should be resolved during SQL binding,
or false to resolve it using direct replacement
IllegalExpressionObjectException - if the string representation of the given variable
is illegalpublic ExpressionStringBuilder append(java.lang.String pString)
pString - the string to append
public com.sunopsis.language.parser.SnpsExpressionTag[] getExpressionTags()
public com.sunopsis.language.SnpsLanguage getLanguage()
public Expression toExpression()
Expression instance.
Expression objectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.3.0) E17060-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||