class SoapOperationParameter
extends java.lang.Object
The data is read from the actual 4GL target (external program, internal entry, class or method).
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
beforeTable
The before-table name.
|
(package private) java.util.List<SoapOperationParameter> |
datasetTables
List of table fields, if this is a DATASET parameter.
|
(package private) int |
extent
The extent value (-2 for no extent, -1 for dynamic extent, the extent value otherwise).
|
(package private) long |
mode
The parameter mode (a token type).
|
(package private) java.lang.String |
name
The legacy parameter name.
|
(package private) boolean |
nillable
Flag indicating if this parameter will be returned by the SOAP request, if is unknown.
|
(package private) java.lang.String |
nodeName
The name to be used at the XML node (for datasets).
|
(package private) java.util.List<DataSetRelation> |
relations
Relation list in case of datasets.
|
(package private) java.util.Map<java.lang.String,SoapOperationParameter> |
tableFields
List of table fields, if this is a TABLE parameter.
|
(package private) java.util.List<Index> |
tableIndexes
List of indexes for this table.
|
(package private) long |
type
The parameter token type.
|
(package private) boolean |
useBeforeImage
Flag indicating the 'before-image' must be written.
|
| Constructor and Description |
|---|
SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable)
Create a new instance.
|
SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable,
boolean useBeforeImage)
Create a new instance.
|
SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable,
int extent)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SoapOperationParameter> |
getChildTables(SoapOperationParameter parent)
Get all the child tables for this parent table.
|
boolean |
isNestedTable(SoapOperationParameter table)
Check if this table is nested (via the
relations) as a child for another table. |
void |
loadDataSet(Aast ref,
SchemaDictionary dictionary)
For a dataset parameter, load its tables, as they appear defined in the schema dictionary.
|
void |
loadTable(Aast ref,
SchemaDictionary dictionary,
boolean forDataset)
For a table parameter, load its fields, as they appear defined in the schema dictionary.
|
private java.lang.String |
readProperty(Aast propAst)
Read a property from a schema dict AST.
|
(package private) void |
setNodeName(java.lang.String serializeName,
java.lang.String xmlNodeName)
Set the
nodeName for this parameter from the XML-NODE-NAME and SERIALIZE-NAME attributes. |
final java.lang.String name
final long type
final long mode
final boolean nillable
final int extent
final boolean useBeforeImage
java.lang.String nodeName
java.util.Map<java.lang.String,SoapOperationParameter> tableFields
java.util.List<Index> tableIndexes
java.util.List<DataSetRelation> relations
java.util.List<SoapOperationParameter> datasetTables
java.lang.String beforeTable
public SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable)
name - The legacy parameter name.type - The parameter token type.mode - The parameter mode (a token type).nillable - Flag indicating if this parameter will be returned by the SOAP request, if is unknown.public SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable,
boolean useBeforeImage)
name - The legacy parameter name.type - The parameter token type.mode - The parameter mode (a token type).nillable - Flag indicating if this parameter will be returned by the SOAP request, if is unknown.useBeforeImage - Flag indicating if before-image is used for a dataset.public SoapOperationParameter(java.lang.String name,
long type,
long mode,
boolean nillable,
int extent)
name - The legacy parameter name.type - The parameter token type.mode - The parameter mode (a token type).nillable - Flag indicating if this parameter will be returned by the SOAP request, if is unknown.extent - The extent value (-2 for no extent, -1 for dynamic extent, the extent value otherwise).public void loadTable(Aast ref, SchemaDictionary dictionary, boolean forDataset)
ref - The parameter definition AST.dictionary - The schema dictionary.forDataset - Flag indicating that this table is for a datasetpublic boolean isNestedTable(SoapOperationParameter table)
relations) as a child for another table.table - The table reference.public java.util.List<SoapOperationParameter> getChildTables(SoapOperationParameter parent)
parent - The parent table.relations, for this parent.public void loadDataSet(Aast ref, SchemaDictionary dictionary) throws SchemaException
ref - The parameter definition AST.dictionary - The schema dictionary.SchemaExceptionvoid setNodeName(java.lang.String serializeName,
java.lang.String xmlNodeName)
nodeName for this parameter from the XML-NODE-NAME and SERIALIZE-NAME attributes.serializeName - The SERIALIZE-NAME attribute.xmlNodeName - The XML-NODE-NAME attribute.private java.lang.String readProperty(Aast propAst)
propAst - The property AST.