|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.odi.domain.xrefs.expression.ExpressionUtils
public abstract class ExpressionUtils
Helper class to manage Expression usage within domain objects implementation.
Note: This class is used internally and application code must not use it.
Constructor Summary | |
---|---|
ExpressionUtils() |
Method Summary | |
---|---|
static Expression |
getExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder) Convenient function that get an Expression from the given toplink value holder. |
static void |
setExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder, oracle.odi.domain.texts.WorkTextOrig pExpectedWorkTextOrig, Expression pExpression) Convenient function that set the given expression to the given value holder's WorkText . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionUtils()
Method Detail |
---|
public static void setExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder, oracle.odi.domain.texts.WorkTextOrig pExpectedWorkTextOrig, Expression pExpression) throws java.lang.IllegalArgumentException
WorkText
. That method should be used to implement an Expression setter method within domain objects.
This method allow to recycle WorkText instance held by the given ValueHolder. That method simply update the underlying WorkText with the expression property values. If the expression is null and the value holder contains a not null WorkText, then that WorkText is set to null and will be deleted as well as its part and cross refs. However, if the underlying WorkText is null, a new one is created, if required (i.e. the expression isn't null).
pWorkTextValueHolder
- the toplink value holder holding the WorkText instancepExpectedWorkTextOrig
- the expected WorkTextOrigpExpression
- the expression to set, can be nulljava.lang.IllegalArgumentException
- if mismatch between WorkTextOrigsWorkText.setExpression(Expression)
, getExpression(ValueHolderInterface)
public static Expression getExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder)
If the WorkText instance of the given holder is null, that method will return null
. Otherwise, ask the expression from the WorkText instance.
pWorkTextValueHolder
- the toplink value holder holding the WorkText instanceWorkText.getExpression()
, setExpression(ValueHolderInterface, WorkTextOrig, Expression)
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.5.0) E17060-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |