com.progress.open4gl
Class ProResultSetMetaDataImpl

java.lang.Object
  |
  +--com.progress.open4gl.dynamicapi.ResultSetMetaData
        |
        +--com.progress.open4gl.ProResultSetMetaDataImpl
All Implemented Interfaces:
ProResultSetMetaData, java.sql.ResultSetMetaData, java.io.Serializable

public class ProResultSetMetaDataImpl
extends com.progress.open4gl.dynamicapi.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:
Serialized Form

Field Summary
 
Fields inherited from class com.progress.open4gl.dynamicapi.ResultSetMetaData
columns, fields, nameTable, numColumns, uniqueId
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
ProResultSetMetaDataImpl(int numFields)
          Constructor.
 
Method Summary
 void setFieldMetaData(int fieldNum, java.lang.String name, int extent, int proType)
          Set the MetaData for a field of the input Result set.
 
Methods inherited from class com.progress.open4gl.dynamicapi.ResultSetMetaData
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnJavaTypeName, getColumnLabel, getColumnName, getColumnProType, getColumnType, getColumnTypeName, getFieldCount, getFieldExtent, getFieldJavaTypeName, getFieldName, getFieldProType, getFieldTypeName, getPrecision, getProColumnType, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable, setFieldDesc, validateCol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProResultSetMetaDataImpl

public ProResultSetMetaDataImpl(int numFields)
Constructor.

Parameters:
numFields - The number of fields for the input result set
Method Detail

setFieldMetaData

public void setFieldMetaData(int fieldNum,
                             java.lang.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.
ProSQLException