Package com.progress.open4gl.dynamicapi
Class ResultSetMetaData
java.lang.Object
com.progress.open4gl.dynamicapi.MetaDataBase
com.progress.open4gl.dynamicapi.ResultSetMetaData
- All Implemented Interfaces:
ProResultSetMetaData,Serializable,ResultSetMetaData,Wrapper
- Direct Known Subclasses:
ProResultSetMetaDataImpl
A ResultSetMetaData object can be used to find out about the types and
properties of the columns in a ResultSet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected int[]protected com.progress.open4gl.dynamicapi.FieldDesc[]protected ExternalHashtableprotected intprotected intFields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
Constructor Summary
ConstructorsConstructorDescriptionResultSetMetaData(int id, int numFields) ResultSetMetaData(int id, int numFields, String bufName) -
Method Summary
Modifier and TypeMethodDescriptiongetCaption(int field) getCatalogName(int column) getColumnCaption(int column) getColumnClassName(int column) intWhat's the number of columns in the ResultSet?intgetColumnDisplaySize(int column) intgetColumnFlag(int column) getColumnInitialValue(int column) getColumnJavaTypeName(int column) Returns the default Java data type mapping for this column.getColumnLabel(int column) getColumnName(int column) What's a column's name?intgetColumnProType(int column) Returns the columns's 4GL type number.intgetColumnType(int column) What's a column's SQL type?getColumnTypeName(int column) What's a column's data source specific type name?intgetColumnUserOrder(int column) intgetColumnXMLMapping(int column) intReturns the number of fields in the 4GL Temp-Table.intgetFieldExtent(int field) What's the field # of extents?getFieldJavaTypeName(int field) Returns the default Java data type mapping for this field.getFieldName(int field) Returns the name of this field.intgetFieldProType(int field) Returns the field's 4GL type number.getFieldTypeName(int field) Returns the field's 4GL type name.intgetFlag(int field) getInitialValue(int field) intgetPrecision(int column) intgetProColumnType(int column) intgetScale(int column) getSchemaName(int column) getTableName(int column) booleanisAutoIncrement(int column) booleanisCaseSensitive(int column) booleanisCurrency(int column) booleanisDefinitelyWritable(int column) intisNullable(int column) booleanisReadOnly(int column) booleanisSearchable(int column) booleanisSigned(int column) booleanisWrapperFor(Class<?> iface) booleanisWritable(int column) com.progress.open4gl.dynamicapi.FieldDescsetFieldDesc(int field, String name, int extents, int proType) com.progress.open4gl.dynamicapi.FieldDescsetFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping) com.progress.open4gl.dynamicapi.FieldDescsetFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag) com.progress.open4gl.dynamicapi.FieldDescsetFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag, String caption) com.progress.open4gl.dynamicapi.FieldDescsetFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag, String caption, String initValue) <T> Tprotected static booleanvalidate(int parmNum, ResultSetMetaData rsmd1, ResultSetMetaData rsmd2) protected voidvalidateCol(int column) protected booleanMethods inherited from class com.progress.open4gl.dynamicapi.MetaDataBase
getTypeCode
-
Field Details
-
fields
protected com.progress.open4gl.dynamicapi.FieldDesc[] fields -
numColumns
protected int numColumns -
columns
protected int[] columns -
uniqueId
protected int uniqueId -
nameTable
-
bufferName
-
-
Constructor Details
-
ResultSetMetaData
public ResultSetMetaData(int id, int numFields) -
ResultSetMetaData
-
ResultSetMetaData
- Throws:
ProSQLException
-
-
Method Details
-
setFieldDesc
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field, String name, int extents, int proType) -
setFieldDesc
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping) -
setFieldDesc
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag) -
setFieldDesc
-
setFieldDesc
-
validateCol
- Throws:
ProSQLException
-
validate
protected static boolean validate(int parmNum, ResultSetMetaData rsmd1, ResultSetMetaData rsmd2) throws ProSQLException - Throws:
ProSQLException
-
validateFields
- Throws:
ClientException
-
getProColumnType
- Throws:
ProSQLException
-
getFieldCount
public int getFieldCount()Description copied from interface:ProResultSetMetaDataReturns the number of fields in the 4GL Temp-Table.- Specified by:
getFieldCountin interfaceProResultSetMetaData
-
getFieldProType
Description copied from interface:ProResultSetMetaDataReturns the field's 4GL type number.- Specified by:
getFieldProTypein interfaceProResultSetMetaData- Throws:
ProSQLException
-
getColumnProType
Description copied from interface:ProResultSetMetaDataReturns the columns's 4GL type number.- Specified by:
getColumnProTypein interfaceProResultSetMetaData- Throws:
ProSQLException
-
getColumnUserOrder
- Throws:
ProSQLException
-
getColumnXMLMapping
- Throws:
ProSQLException
-
getFieldJavaTypeName
Description copied from interface:ProResultSetMetaDataReturns the default Java data type mapping for this field.- Specified by:
getFieldJavaTypeNamein interfaceProResultSetMetaData- Throws:
ProSQLException
-
getColumnJavaTypeName
Description copied from interface:ProResultSetMetaDataReturns the default Java data type mapping for this column.- Specified by:
getColumnJavaTypeNamein interfaceProResultSetMetaData- Throws:
ProSQLException
-
getFieldExtent
What's the field # of extents?- Specified by:
getFieldExtentin interfaceProResultSetMetaData- Parameters:
field- the first field is 1, the second is 2, ...- Returns:
- # of extents
- Throws:
ProSQLException- if a database-access error occurs.- See Also:
-
getColumnCount
public int getColumnCount()What's the number of columns in the ResultSet?- Specified by:
getColumnCountin interfaceResultSetMetaData- Returns:
- column count of the result set
-
getColumnName
What's a column's name?- Specified by:
getColumnNamein interfaceResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- column name
- Throws:
ProSQLException- if a database-access error occurs.
-
getFieldName
Description copied from interface:ProResultSetMetaDataReturns the name of this field.- Specified by:
getFieldNamein interfaceProResultSetMetaData- Throws:
ProSQLException
-
getFlag
- Throws:
ProSQLException
-
getColumnFlag
- Throws:
ProSQLException
-
getCaption
- Throws:
ProSQLException
-
getColumnCaption
- Throws:
ProSQLException
-
getInitialValue
- Throws:
ProSQLException
-
getColumnInitialValue
- Throws:
ProSQLException
-
getColumnType
What's a column's SQL type?- Specified by:
getColumnTypein interfaceResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- SQL type
- Throws:
ProSQLException- if a database-access error occurs.- See Also:
-
getColumnTypeName
What's a column's data source specific type name?- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- type name
- Throws:
ProSQLException- if a database-access error occurs.
-
getFieldTypeName
Description copied from interface:ProResultSetMetaDataReturns the field's 4GL type name.- Specified by:
getFieldTypeNamein interfaceProResultSetMetaData- Throws:
ProSQLException
-
isAutoIncrement
- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Throws:
ProSQLException
-
isCaseSensitive
- Specified by:
isCaseSensitivein interfaceResultSetMetaData- Throws:
ProSQLException
-
isSearchable
- Specified by:
isSearchablein interfaceResultSetMetaData- Throws:
ProSQLException
-
isCurrency
- Specified by:
isCurrencyin interfaceResultSetMetaData- Throws:
ProSQLException
-
isNullable
- Specified by:
isNullablein interfaceResultSetMetaData- Throws:
ProSQLException
-
isSigned
- Specified by:
isSignedin interfaceResultSetMetaData- Throws:
ProSQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySizein interfaceResultSetMetaData- Throws:
ProSQLException
-
getColumnLabel
- Specified by:
getColumnLabelin interfaceResultSetMetaData- Throws:
ProSQLException
-
getSchemaName
- Specified by:
getSchemaNamein interfaceResultSetMetaData- Throws:
ProSQLException
-
getPrecision
- Specified by:
getPrecisionin interfaceResultSetMetaData- Throws:
ProSQLException
-
getScale
- Specified by:
getScalein interfaceResultSetMetaData- Throws:
ProSQLException
-
getTableName
- Specified by:
getTableNamein interfaceResultSetMetaData- Throws:
ProSQLException
-
getCatalogName
- Specified by:
getCatalogNamein interfaceResultSetMetaData- Throws:
ProSQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceResultSetMetaData- Throws:
ProSQLException
-
isWritable
- Specified by:
isWritablein interfaceResultSetMetaData- Throws:
ProSQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritablein interfaceResultSetMetaData- Throws:
ProSQLException
-
getColumnClassName
- Specified by:
getColumnClassNamein interfaceResultSetMetaData- Throws:
ProSQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-