public class ResultSetMetaData extends MetaDataBase implements ProResultSetMetaData, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
bufferName |
protected int[] |
columns |
protected com.progress.open4gl.dynamicapi.FieldDesc[] |
fields |
protected ExternalHashtable |
nameTable |
protected int |
numColumns |
protected int |
uniqueId |
| Constructor and Description |
|---|
ResultSetMetaData(int id,
int numFields) |
ResultSetMetaData(int id,
int numFields,
java.lang.String bufName) |
ResultSetMetaData(java.sql.ResultSetMetaData mdata) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCaption(int field) |
java.lang.String |
getCatalogName(int column) |
java.lang.String |
getColumnCaption(int column) |
java.lang.String |
getColumnClassName(int column) |
int |
getColumnCount()
What's the number of columns in the ResultSet?
|
int |
getColumnDisplaySize(int column) |
int |
getColumnFlag(int column) |
java.lang.String |
getColumnInitialValue(int column) |
java.lang.String |
getColumnJavaTypeName(int column)
Returns the default Java data type mapping for this column.
|
java.lang.String |
getColumnLabel(int column) |
java.lang.String |
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?
|
java.lang.String |
getColumnTypeName(int column)
What's a column's data source specific type name?
|
int |
getColumnUserOrder(int column) |
int |
getColumnXMLMapping(int column) |
int |
getFieldCount()
Returns the number of fields in the 4GL Temp-Table.
|
int |
getFieldExtent(int field)
What's the field # of extents?
|
java.lang.String |
getFieldJavaTypeName(int field)
Returns the default Java data type mapping for this field.
|
java.lang.String |
getFieldName(int field)
Returns the name of this field.
|
int |
getFieldProType(int field)
Returns the field's 4GL type number.
|
java.lang.String |
getFieldTypeName(int field)
Returns the field's 4GL type name.
|
int |
getFlag(int field) |
java.lang.String |
getInitialValue(int field) |
int |
getPrecision(int column) |
int |
getProColumnType(int column) |
int |
getScale(int column) |
java.lang.String |
getSchemaName(int column) |
java.lang.String |
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(java.lang.Class<?> iface) |
boolean |
isWritable(int column) |
com.progress.open4gl.dynamicapi.FieldDesc |
setFieldDesc(int field,
java.lang.String name,
int extents,
int proType) |
com.progress.open4gl.dynamicapi.FieldDesc |
setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping) |
com.progress.open4gl.dynamicapi.FieldDesc |
setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag) |
com.progress.open4gl.dynamicapi.FieldDesc |
setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag,
java.lang.String caption) |
com.progress.open4gl.dynamicapi.FieldDesc |
setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag,
java.lang.String caption,
java.lang.String initValue) |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected static boolean |
validate(int parmNum,
ResultSetMetaData rsmd1,
ResultSetMetaData rsmd2) |
protected void |
validateCol(int column) |
protected boolean |
validateFields() |
getTypeCodeprotected com.progress.open4gl.dynamicapi.FieldDesc[] fields
protected int numColumns
protected int[] columns
protected int uniqueId
protected ExternalHashtable nameTable
protected java.lang.String bufferName
public ResultSetMetaData(int id,
int numFields)
public ResultSetMetaData(int id,
int numFields,
java.lang.String bufName)
public ResultSetMetaData(java.sql.ResultSetMetaData mdata)
throws ProSQLException
ProSQLExceptionpublic com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field,
java.lang.String name,
int extents,
int proType)
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping)
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag)
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag,
java.lang.String caption)
public com.progress.open4gl.dynamicapi.FieldDesc setFieldDesc(int field,
java.lang.String name,
int extents,
int proType,
int userOrder,
int xmlMapping,
int flag,
java.lang.String caption,
java.lang.String initValue)
protected void validateCol(int column)
throws ProSQLException
ProSQLExceptionprotected static boolean validate(int parmNum,
ResultSetMetaData rsmd1,
ResultSetMetaData rsmd2)
throws ProSQLException
ProSQLExceptionprotected boolean validateFields()
throws ClientException
ClientExceptionpublic int getProColumnType(int column)
throws ProSQLException
ProSQLExceptionpublic int getFieldCount()
ProResultSetMetaDatagetFieldCount in interface ProResultSetMetaDatapublic int getFieldProType(int field)
throws ProSQLException
ProResultSetMetaDatagetFieldProType in interface ProResultSetMetaDataProSQLExceptionpublic int getColumnProType(int column)
throws ProSQLException
ProResultSetMetaDatagetColumnProType in interface ProResultSetMetaDataProSQLExceptionpublic int getColumnUserOrder(int column)
throws ProSQLException
ProSQLExceptionpublic int getColumnXMLMapping(int column)
throws ProSQLException
ProSQLExceptionpublic java.lang.String getFieldJavaTypeName(int field)
throws ProSQLException
ProResultSetMetaDatagetFieldJavaTypeName in interface ProResultSetMetaDataProSQLExceptionpublic java.lang.String getColumnJavaTypeName(int column)
throws ProSQLException
ProResultSetMetaDatagetColumnJavaTypeName in interface ProResultSetMetaDataProSQLExceptionpublic int getFieldExtent(int field)
throws ProSQLException
getFieldExtent in interface ProResultSetMetaDatafield - the first field is 1, the second is 2, ...ProSQLException - if a database-access error occurs.Typespublic int getColumnCount()
getColumnCount in interface java.sql.ResultSetMetaDatapublic java.lang.String getColumnName(int column)
throws ProSQLException
getColumnName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...ProSQLException - if a database-access error occurs.public java.lang.String getFieldName(int field)
throws ProSQLException
ProResultSetMetaDatagetFieldName in interface ProResultSetMetaDataProSQLExceptionpublic int getFlag(int field)
throws ProSQLException
ProSQLExceptionpublic int getColumnFlag(int column)
throws ProSQLException
ProSQLExceptionpublic java.lang.String getCaption(int field)
throws ProSQLException
ProSQLExceptionpublic java.lang.String getColumnCaption(int column)
throws ProSQLException
ProSQLExceptionpublic java.lang.String getInitialValue(int field)
throws ProSQLException
ProSQLExceptionpublic java.lang.String getColumnInitialValue(int column)
throws ProSQLException
ProSQLExceptionpublic int getColumnType(int column)
throws ProSQLException
getColumnType in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...ProSQLException - if a database-access error occurs.Typespublic java.lang.String getColumnTypeName(int column)
throws ProSQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...ProSQLException - if a database-access error occurs.public java.lang.String getFieldTypeName(int field)
throws ProSQLException
ProResultSetMetaDatagetFieldTypeName in interface ProResultSetMetaDataProSQLExceptionpublic boolean isAutoIncrement(int column)
throws ProSQLException
isAutoIncrement in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isCaseSensitive(int column)
throws ProSQLException
isCaseSensitive in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isSearchable(int column)
throws ProSQLException
isSearchable in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isCurrency(int column)
throws ProSQLException
isCurrency in interface java.sql.ResultSetMetaDataProSQLExceptionpublic int isNullable(int column)
throws ProSQLException
isNullable in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isSigned(int column)
throws ProSQLException
isSigned in interface java.sql.ResultSetMetaDataProSQLExceptionpublic int getColumnDisplaySize(int column)
throws ProSQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDataProSQLExceptionpublic java.lang.String getColumnLabel(int column)
throws ProSQLException
getColumnLabel in interface java.sql.ResultSetMetaDataProSQLExceptionpublic java.lang.String getSchemaName(int column)
throws ProSQLException
getSchemaName in interface java.sql.ResultSetMetaDataProSQLExceptionpublic int getPrecision(int column)
throws ProSQLException
getPrecision in interface java.sql.ResultSetMetaDataProSQLExceptionpublic int getScale(int column)
throws ProSQLException
getScale in interface java.sql.ResultSetMetaDataProSQLExceptionpublic java.lang.String getTableName(int column)
throws ProSQLException
getTableName in interface java.sql.ResultSetMetaDataProSQLExceptionpublic java.lang.String getCatalogName(int column)
throws ProSQLException
getCatalogName in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isReadOnly(int column)
throws ProSQLException
isReadOnly in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isWritable(int column)
throws ProSQLException
isWritable in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isDefinitelyWritable(int column)
throws ProSQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDataProSQLExceptionpublic java.lang.String getColumnClassName(int column)
throws ProSQLException
getColumnClassName in interface java.sql.ResultSetMetaDataProSQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException