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, outputValuecontext, LOG| Constructor and Description |
|---|
FieldAssigner(BaseDataType variable,
FieldReference field)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assign()
Assign the current value of the parameter variable back to the associated DMO property.
|
protected boolean |
isTableField()
Check if this parameter is associated with a table field, so a batch assign is required on output
parameter processing.
|
getLocalParam, release, updatecanRelease, getCurrentScope, getScopeable, isExtentParameter, isParameter, postProcessOutput, replaceParameterprivate final FieldReference field
public FieldAssigner(BaseDataType variable, FieldReference field)
variable - Parameter value to and from which we will assign.field - The field reference.protected void assign()
assign in class AbstractSimpleParameterprotected boolean isTableField()
isTableField in class AbstractParametertrue.