public final class FieldAssigner extends AbstractSimpleParameter
OutputParameterAssigner
that handles various *Field
data-type
wrapper implementations, which assigns an INPUT-OUTPUT or OUTPUT parameter's value back to the
database field with which it is associated, upon exit from a procedure or function.
An individual instance of this class is created by each *Field
instance, and that
variable is stored within this object. At construction, it initializes the parameter (if
necessary) to the appropriate current value from the database. 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 FieldReference |
field
Field reference which manages the association with the DMO property.
|
convCtor, outputValue
context, LOG
Constructor and Description |
---|
FieldAssigner(BaseDataType variable,
DataModelObject dmo,
java.lang.String property,
NumberType index,
boolean initialize)
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 FieldReference field
public FieldAssigner(BaseDataType variable, DataModelObject dmo, java.lang.String property, NumberType index, boolean initialize)
variable
- Parameter value to and from which we will assign.dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.index
- Index to access, if property represents an extent field.initialize
- Should this variable be initialized with the DMO's current value for the target
field?protected void assign()
assign
in class AbstractSimpleParameter