Using sample helper classes to manage TABLE-HANDLE parameters
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
OpenEdge Web services sample applications come installed with a set of helper classes that
you can use to manipulate TABLE-HANDLE parameters. For example:
ColumnMetaData.java— Represents the schema of a column, as shown:public class ColumnMetaData { protected String name; protected int type; protected int extent; ...}RowSet.java— Represents the XML Schema and data for aTABLE-HANDLEparameter, as shown:public class RowSet { private Vector m_rows; private ColumnMetaData[ ] m_schema; ...}In the
RowSetclass,m_rowsis aVectorof rows, each of which is aVectorof column data. Each column datum is a Java object appropriate for the column data type. Them_schemavariable is theColumnMetaDataarray representing the schema for the temp-table.SchemaParser.java— Parses the<schema>element from a SOAP response message and creates aColumnMetaDataarray for theRowSetclass, as shown:public class SchemaParser { protected ColumnMetaData[ ] m_schema; ...}