public final class VariableAssigner extends AbstractSimpleParameter
OutputParameterAssigner
that handles intermediary variables are
replacement of the correct type that assign INPUT-OUTPUT or OUTPUT parameter's value back to
the database field with which it is associated, upon exit from a procedure or function.
Instance of this class is automatically created if the original instance is not of the correct OUTPUT type. Upon exit from the procedure or function with which it is associated, it attempts to assign the current value of its contained variable back into the associated DMO, optionally applying the provided conversion constructor. This may trigger normal validation processing, which may produce error conditions.
AbstractParameter.Scope, AbstractParameter.WorkArea
Modifier and Type | Field and Description |
---|---|
private BaseDataType |
originalVar
The original variable that must be updated at the end of the subroutine.
|
convCtor, outputValue
context, LOG
Constructor and Description |
---|
VariableAssigner(BaseDataType variable,
BaseDataType originalVar)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assign()
Assign the current value of the parameter variable back to the associated DMO property.
|
getLocalParam, update
getCurrentScope, getScopeable, isParameter
private final BaseDataType originalVar
VariableAssigner(BaseDataType variable, BaseDataType originalVar)
variable
- Parameter value to and from which we will assign.originalVar
- Original variable from procedure call that is being accessed.protected void assign()
assign
in class AbstractSimpleParameter