ProResultSetMetaDataImpl class
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
ProResultSetMetaDataImpl class
ResultSet must
be supplied by code implemented in the client application, the getMetaData() method
must be implemented to return an instance of ResultSetMetaData.
The recommended way to do this is to use the com.progress.open4gl.ProResultSetMetaDataImpl class provided
in the Open Client Toolkit. This is an implementation of the ProResultSetMetaData interface,
the same interface that is used by the client when getting output
data. There are only two methods of ProResultSetMetaDataImpl that the application
must call:
- The constructor:
Syntax
ProResultSetMetaDataImpl(int numFields) - The
setFieldMetaData()method:Syntax
setFieldMetaData(int fieldNumber, String Name, int extent, int type)
The setFieldMetaData() method requires the following:
- fieldNumber must be between 1 and the number of fields.
- Name cannot be null.
- The value of Name must be unique within the table.
-
extent must be zero or greater (for
BLOBandCLOBfields, it must be zero or one). -
type must be one of the class constant values defined in
com.progress.open4gl.Parameter. For more information, see the information on specifying data type meta data for temp-tables in Pass Parameters.
Note: The Open Client Toolkit class documentation in
OpenEdge-install-directory
/java/doc/ also describes
these methods used by the client application for the ProResultSetMetaDataImpl
class.To pass a self-implemented ResultSet for a TABLE–HANDLE
parameter, the application must:
-
Create a new class that extends
com.progress.open4gl.InputResultSet, to provide access to the data to be passed to the server. This object's implementation includes code fornext()andgetObject()(as for a static temp-table) and forgetMetaData(), which should return thecom.progress.open4gl.ProResultSetMetaDataImplinstance when called. - Create an instance of the class you created in Step 1.
-
Create an instance of
com.progress.open4gl.ProResultSetMetaDataImpl. -
Call
ProResultSetMetaDataImpl.setFieldMetaData()for each field of the table. -
Make the
ProResultSetMetaDataImplinstance available to theInputResultSetobject. You can do this in any way you like, for example, by adding asetMetaData()method to yourInputResultSetimplementation. -
Make the proxy method call passing the
com.progress.open4gl.InputResultSetinstance as the parameter.