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 String
protected int[]
protected com.progress.open4gl.dynamicapi.FieldDesc[]
protected ExternalHashtable
protected int
protected int
Fields 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) int
What's the number of columns in the ResultSet?int
getColumnDisplaySize
(int column) int
getColumnFlag
(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?int
getColumnProType
(int column) Returns the columns's 4GL type number.int
getColumnType
(int column) What's a column's SQL type?getColumnTypeName
(int column) What's a column's data source specific type name?int
getColumnUserOrder
(int column) int
getColumnXMLMapping
(int column) int
Returns the number of fields in the 4GL Temp-Table.int
getFieldExtent
(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.int
getFieldProType
(int field) Returns the field's 4GL type number.getFieldTypeName
(int field) Returns the field's 4GL type name.int
getFlag
(int field) getInitialValue
(int field) int
getPrecision
(int column) int
getProColumnType
(int column) int
getScale
(int column) getSchemaName
(int column) getTableName
(int column) boolean
isAutoIncrement
(int column) boolean
isCaseSensitive
(int column) boolean
isCurrency
(int column) boolean
isDefinitelyWritable
(int column) int
isNullable
(int column) boolean
isReadOnly
(int column) boolean
isSearchable
(int column) boolean
isSigned
(int column) boolean
isWrapperFor
(Class<?> iface) boolean
isWritable
(int column) com.progress.open4gl.dynamicapi.FieldDesc
setFieldDesc
(int field, String name, int extents, int proType) com.progress.open4gl.dynamicapi.FieldDesc
setFieldDesc
(int field, String name, int extents, int proType, int userOrder, int xmlMapping) com.progress.open4gl.dynamicapi.FieldDesc
setFieldDesc
(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag) com.progress.open4gl.dynamicapi.FieldDesc
setFieldDesc
(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag, String caption) com.progress.open4gl.dynamicapi.FieldDesc
setFieldDesc
(int field, String name, int extents, int proType, int userOrder, int xmlMapping, int flag, String caption, String initValue) <T> T
protected static boolean
validate
(int parmNum, ResultSetMetaData rsmd1, ResultSetMetaData rsmd2) protected void
validateCol
(int column) protected boolean
Methods 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:ProResultSetMetaData
Returns the number of fields in the 4GL Temp-Table.- Specified by:
getFieldCount
in interfaceProResultSetMetaData
-
getFieldProType
Description copied from interface:ProResultSetMetaData
Returns the field's 4GL type number.- Specified by:
getFieldProType
in interfaceProResultSetMetaData
- Throws:
ProSQLException
-
getColumnProType
Description copied from interface:ProResultSetMetaData
Returns the columns's 4GL type number.- Specified by:
getColumnProType
in interfaceProResultSetMetaData
- Throws:
ProSQLException
-
getColumnUserOrder
- Throws:
ProSQLException
-
getColumnXMLMapping
- Throws:
ProSQLException
-
getFieldJavaTypeName
Description copied from interface:ProResultSetMetaData
Returns the default Java data type mapping for this field.- Specified by:
getFieldJavaTypeName
in interfaceProResultSetMetaData
- Throws:
ProSQLException
-
getColumnJavaTypeName
Description copied from interface:ProResultSetMetaData
Returns the default Java data type mapping for this column.- Specified by:
getColumnJavaTypeName
in interfaceProResultSetMetaData
- Throws:
ProSQLException
-
getFieldExtent
What's the field # of extents?- Specified by:
getFieldExtent
in 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:
getColumnCount
in interfaceResultSetMetaData
- Returns:
- column count of the result set
-
getColumnName
What's a column's name?- Specified by:
getColumnName
in 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:ProResultSetMetaData
Returns the name of this field.- Specified by:
getFieldName
in 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:
getColumnType
in 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:
getColumnTypeName
in 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:ProResultSetMetaData
Returns the field's 4GL type name.- Specified by:
getFieldTypeName
in interfaceProResultSetMetaData
- Throws:
ProSQLException
-
isAutoIncrement
- Specified by:
isAutoIncrement
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isCaseSensitive
- Specified by:
isCaseSensitive
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isSearchable
- Specified by:
isSearchable
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isCurrency
- Specified by:
isCurrency
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isNullable
- Specified by:
isNullable
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isSigned
- Specified by:
isSigned
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySize
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getColumnLabel
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getSchemaName
- Specified by:
getSchemaName
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getPrecision
- Specified by:
getPrecision
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getScale
- Specified by:
getScale
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getTableName
- Specified by:
getTableName
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getCatalogName
- Specified by:
getCatalogName
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isWritable
- Specified by:
isWritable
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritable
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
getColumnClassName
- Specified by:
getColumnClassName
in interfaceResultSetMetaData
- Throws:
ProSQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-