public final class OutputParameter
extends java.lang.Object
Constructor and Description |
---|
OutputParameter() |
Modifier and Type | Method and Description |
---|---|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt,
boolean io)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt,
int index)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt,
int index,
boolean io)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt,
NumberType index)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(DataModelObject dmo,
java.lang.String property,
java.lang.Class bdt,
NumberType index,
boolean io)
Creates wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(T variable)
Creates variable wrapper and returns instance of T type.
|
static <T extends BaseDataType> |
wrap(T variable,
boolean io)
Creates wrapper and returns instance of T type.
|
public static <T extends BaseDataType> T wrap(T variable)
variable
- The variable to be wrapped.public static <T extends BaseDataType> T wrap(T variable, boolean io)
io
parameter).variable
- The variable to be wrapped.io
- Specifies an INPUT-OUTPUT parameter if true
. In this case, the local
variable in the called function will be initialized with the current value of the
original variable. Otherwise (simple OUTPUT), the parameter is initialized to
default value for respective datatype (follows the semantics of OUTPUT parameter
passing from 4GL).public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt, int index)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.index
- Index to access, if property represents an extent field.public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt, NumberType index)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.index
- Index to access, if property represents an extent field.public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt, boolean io)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.io
- Specifies an INPUT-OUTPUT parameter if true
. In this case, the local
variable in the called function will be initialized with the current value of the
original variable. Otherwise (simple OUTPUT), the parameter is initialized to
default value for respective datatype (follows the semantics of OUTPUT parameter
passing from 4GL).public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt, int index, boolean io)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.index
- Index to access, if property represents an extent field.io
- Specifies an INPUT-OUTPUT parameter if true
. In this case, the local
variable in the called function will be initialized with the current value of the
original variable. Otherwise (simple OUTPUT), the parameter is initialized to
default value for respective datatype (follows the semantics of OUTPUT parameter
passing from 4GL).public static <T extends BaseDataType> T wrap(DataModelObject dmo, java.lang.String property, java.lang.Class bdt, NumberType index, boolean io)
dmo
- Proxy for record whose field is being accessed.property
- Name of dmo field.bdt
- The BaseDataType
of the field. The returned value will have this datatype.
This argument can be detected dynamically at runtime but, for performance reasons,
it is computed and passed in at conversion time.index
- Index to access, if property represents an extent field.io
- Specifies an INPUT-OUTPUT parameter if true
. In this case, the local
variable in the called function will be initialized with the current value of the
original variable. Otherwise (simple OUTPUT), the parameter is initialized to
default value for respective datatype (follows the semantics of OUTPUT parameter
passing from 4GL).