public class OdiLoadPlanStepCase extends OdiLoadPlanStep
An OdiLoadPlanStepCase is one of the OdiLoadPlanStepCase.
It represents an aggregate "case-when*-else" (* there can be multiple when clauses).
The life cycle of OdiLoadPlanStepCase is managed by the aggregate OdiLoadPlan.
It begins when a user adds an OdiLoadPlanStepCase to the OdiLoadPlan. It is then typically stored inside ODI runtime repository when the OdiLoadPlan is persisted.
The users can modify the OdiLoadPlanStepCase in order to make it fit their needs.
The life cycle ends when a user removes the OdiLoadPlanStepCase from the OdiLoadPlan.
OdiLoadPlanStep.ExceptionBehavior, OdiLoadPlanStep.RegenerationModeMAX_PRIORITY, MIN_PRIORITY, SESSION_KEYWORDS_MAX_LENGTHNAME_MAX_LENGTH| Modifier and Type | Method and Description |
|---|---|
OdiCaseWhen |
addCaseWhen(OdiCaseWhen.ComparisonOperator pComparisonOperator,
java.lang.Object pValue)
Creates an
OdiCaseWhen, adds it to the list and return it |
OdiLoadPlanStepCase |
copy(boolean generateName)
Deprecated.
since 11.1.1.7.0 consider using
OdiLoadPlanStep.duplicate() or OdiLoadPlanStep.duplicate(OdiLoadPlanStep) method. |
OdiCaseElse |
getCaseElse() |
java.util.List |
getCaseWhenList() |
OdiLoadPlanVariable |
getTestVariable() |
void |
moveCaseWhenAfter(OdiCaseWhen pCaseToMove,
OdiCaseWhen pAfterThisCase)
Moves the given step in the children list, putting it right after the second parameter step.
No action if pStepToMove is already right after pAfterThisStep. |
void |
moveCaseWhenBefore(OdiCaseWhen pCaseToMove,
OdiCaseWhen pBeforeThisCase)
Moves the given step in the children list, putting it right before the second parameter step.
No action if pStepToMove is already right after pBeforeThisStep. |
void |
removeCaseElse()
remove the current CaseElse of the
OdiLoadPlanStepCase. |
void |
removeCaseWhen(OdiCaseWhen pOdiCaseWhen)
|
void |
setCaseElse(java.lang.String pName)
Initializes the
OdiCaseElse of this OdiLoadPlanStepCase
if the current caseElse is not null, this method should throw an exception |
void |
setTestVariable(OdiLoadPlanVariable testVariable) |
addVariable, addVariable, duplicate, duplicate, getException, getExceptionBehavior, getInternalId, getLoadPlanStepVariables, getOrder, getParentElement, getSessionKeywordsAsString, getTimeout, isEnabled, regenerate, removeVariable, setEnabled, setException, setExceptionBehavior, setSessionKeywordsAsString, setTimeoutgetLoadPlan, getName, getSecurityContainer, getStepId, hasDisabledParent, setName, toStringpublic OdiCaseWhen addCaseWhen(OdiCaseWhen.ComparisonOperator pComparisonOperator, java.lang.Object pValue)
OdiCaseWhen, adds it to the list and return itpComparisonOperator - the OdiCaseWhen.ComparisonOperator used to test the OdiLoadPlanVariable. It must not be null.pValue - the value to use for the test of the OdiLoadPlanVariable. It must not be null.OdiCaseWhen createdremoveCaseWhen(OdiCaseWhen),
#getCaseWhenLst(),
OdiCaseWhenpublic void removeCaseWhen(OdiCaseWhen pOdiCaseWhen)
pOdiCaseWhen - the OdiCaseWhen to remove from the list of when clauses defined for this OdiLoadPlanStepCase. It must not be null#addCaseWhen(oracle.odi.domain.runtime.loadplan.OdiCaseWhen.ComparisonOperator, Number),
#getCaseWhenLst(),
OdiCaseWhenpublic java.util.List getCaseWhenList()
OdiLoadPlanStepCase#addCaseWhen(oracle.odi.domain.runtime.loadplan.OdiCaseWhen.ComparisonOperator, Number),
removeCaseWhen(OdiCaseWhen),
OdiCaseWhenpublic OdiCaseElse getCaseElse()
OdiLoadPlanStepCase.OdiCaseElsepublic void setCaseElse(java.lang.String pName)
OdiCaseElse of this OdiLoadPlanStepCase
if the current caseElse is not null, this method should throw an exceptionpName - must not be null, empty or longer than #NAME_MAX_LENGTHDomainRuntimeException - if the name is null, empty or longer than #NAME_MAX_LENGTH.java.lang.UnsupportedOperationException - if the caseElse is already defined for this StepCase.OdiCaseElsepublic void removeCaseElse()
OdiLoadPlanStepCase.
Throw an exception if there's no current OdiCaseElsepublic OdiLoadPlanVariable getTestVariable()
OdiLoadPlanVariable associated to this OdiLoadPlanStepCaseOdiLoadPlanVariable,
setTestVariable(OdiLoadPlanVariable)public void setTestVariable(OdiLoadPlanVariable testVariable)
testVariable - the OdiLoadPlanVariable associated to this OdiLoadPlanStepCase. Must not be null or defined in another load plan.DomainRuntimeException - if the variable is null or defined in another load plangetTestVariable(),
OdiLoadPlanVariablepublic void moveCaseWhenAfter(OdiCaseWhen pCaseToMove, OdiCaseWhen pAfterThisCase)
pCaseToMove - pAfterThisCase - DomainRuntimeException - if the steps are not defined in the same step containerpublic void moveCaseWhenBefore(OdiCaseWhen pCaseToMove, OdiCaseWhen pBeforeThisCase)
pCaseToMove - pBeforeThisCase - DomainRuntimeException - if the steps are not defined in the same step containerpublic OdiLoadPlanStepCase copy(boolean generateName)
OdiLoadPlanStep.duplicate() or OdiLoadPlanStep.duplicate(OdiLoadPlanStep) method.FOR INTERNAL USE ONLY
copy in class OdiLoadPlanStep