Class ProResultSetMetaDataImpl

All Implemented Interfaces:
ProResultSetMetaData, Serializable, ResultSetMetaData, Wrapper

public class ProResultSetMetaDataImpl extends ResultSetMetaData
The ProResultSetMetaDataImpl class is used by the the application to set metadata for an Input Temp-Table that maps to a 4GL TABLE-HANDLE parameter. Because the 4GL temp-table is dynamic, the proxy does not know what its schema is. Thus the application must provide it itself via this class.
See Also:
  • Constructor Details

    • ProResultSetMetaDataImpl

      public ProResultSetMetaDataImpl(int numFields)
      Constructor.
      Parameters:
      numFields - The number of fields for the input result set
    • ProResultSetMetaDataImpl

      public ProResultSetMetaDataImpl(ResultSetMetaData resultsetMetaData) throws ProSQLException
      Constructor.
      Parameters:
      resultsetMetaData -
      Throws:
      ProSQLException
  • Method Details

    • setFieldMetaData

      public void setFieldMetaData(int fieldNum, String name, int extent, int proType) throws ProSQLException
      Set the MetaData for a field of the input Result set.
      Parameters:
      fieldNum - The 1-based field number of the field to set schema for
      name - The field's name
      extent - The field's extent If the field is not an array field this value should be 0.
      proType - The field's data type This should be one of the PRO_XXX constants supplied by com.progress.open4gl.Parameter.
      Throws:
      ProSQLException