Skip navigation links

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

E17060-04


oracle.odi.domain.xrefs.expression
Class ExpressionUtils

java.lang.Object
  extended by oracle.odi.domain.xrefs.expression.ExpressionUtils


public abstract class ExpressionUtils
extends java.lang.Object

Helper class to manage Expression usage within domain objects implementation.

Note: This class is used internally and application code must not use it.

Since:
11.1.1.3.0

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

ExpressionUtils

public ExpressionUtils()

Method Detail

setExpression

public static void setExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder,
                                 oracle.odi.domain.texts.WorkTextOrig pExpectedWorkTextOrig,
                                 Expression pExpression)
                          throws java.lang.IllegalArgumentException
Convenient function that set the given expression to the given value holder's 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).

Parameters:
pWorkTextValueHolder - the toplink value holder holding the WorkText instance
pExpectedWorkTextOrig - the expected WorkTextOrig
pExpression - the expression to set, can be null
Throws:
DomainRuntimeException - if mismatch between WorkTextOrigs
java.lang.IllegalArgumentException
See Also:
WorkText.setExpression(Expression), getExpression(ValueHolderInterface)

getExpression

public static Expression getExpression(org.eclipse.persistence.indirection.ValueHolderInterface pWorkTextValueHolder)
Convenient function that get an Expression from the given toplink value holder. That method should be used to implement Expression getter method within domain objects.

If the WorkText instance of the given holder is null, that method will return null. Otherwise, ask the expression from the WorkText instance.

Parameters:
pWorkTextValueHolder - the toplink value holder holding the WorkText instance
Returns:
an Expression from the given WorkText holder
See Also:
WorkText.getExpression(), setExpression(ValueHolderInterface, WorkTextOrig, Expression)

Skip navigation links

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

E17060-04


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