public class JDBCResultSetMetaData extends java.lang.Object implements java.sql.ResultSetMetaData, DatabaseDescribeCallback
Constructor and Description |
---|
JDBCResultSetMetaData(int serverCCSID,
java.util.Calendar calendarUsedForConversions,
java.lang.String catalog) |
Modifier and Type | Method and Description |
---|---|
void |
baseColumnName(int fieldIndex,
java.lang.String name) |
void |
baseSchemaName(int fieldIndex,
java.lang.String name) |
void |
baseTableName(int fieldIndex,
java.lang.String name) |
void |
columnAttributes(int fieldIndex,
int updateable,
int searchable,
boolean isIdentity,
boolean isAlwaysGenerated,
boolean isPartOfAnyIndex,
boolean isLoneUniqueIndex,
boolean isPartOfUniqueIndex,
boolean isExpression,
boolean isPrimaryKey,
boolean isNamed,
boolean isRowID,
boolean isRowChangeTimestamp) |
void |
columnLabel(int fieldIndex,
java.lang.String name) |
void |
fieldDescription(int fieldIndex,
int type,
int length,
int scale,
int precision,
int ccsid,
int joinRefPosition,
int attributeBitmap,
int lobMaxSize) |
void |
fieldName(int fieldIndex,
java.lang.String name) |
java.lang.String |
getCatalogName(int column)
Not implemented.
|
java.lang.String |
getColumnClassName(int column)
Not implemented.
|
int |
getColumnCount() |
int |
getColumnDisplaySize(int column)
Not implemented.
|
java.lang.String |
getColumnLabel(int column) |
java.lang.String |
getColumnName(int column) |
int |
getColumnType(int column) |
java.lang.String |
getColumnTypeName(int column) |
int |
getPrecision(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)
Indicates if the column is a currency value.
|
boolean |
isDefinitelyWritable(int column) |
int |
isNullable(int column)
Not implemented.
|
boolean |
isReadOnly(int column) |
boolean |
isSearchable(int column) |
boolean |
isSigned(int column)
Not implemented.
|
boolean |
isWritable(int column) |
void |
resultSetDescription(int numFields,
int dateFormat,
int timeFormat,
int dateSeparator,
int timeSeparator,
int recordSize) |
void |
setCacheLastOnly(int column,
boolean b)
Caches the last String returned by ResultSet.getString(column), and returns that same object
on the next call to ResultSet.getString(column) if the value returned from the database is identical.
|
void |
setCacheLastOnly(java.lang.String column,
boolean b)
You know you want this, if you're going to be calling getString() a lot.
|
void |
setUseDateCache(int column,
boolean b)
Caches the last Date returned by ResultSet.getDate(column), and returns that same object
on the next call to ResultSet.getDate(column) if the value returned from the database is identical.
|
void |
setUseDateCache(java.lang.String column,
boolean b)
You know you want this, if you're going to be calling getDate() a lot.
|
void |
setUseStringCache(int column,
boolean b)
Caches all unique Strings returned by ResultSet.getString(column).
|
void |
setUseStringCache(java.lang.String column,
boolean b)
You know you want this, if you're going to be calling getString() a lot.
|
void |
setUseTimeCache(int column,
boolean b)
Caches the last Time returned by ResultSet.getTime(column), and returns that same object
on the next call to ResultSet.getTime(column) if the value returned from the database is identical.
|
void |
setUseTimeCache(java.lang.String column,
boolean b)
You know you want this, if you're going to be calling getTime() a lot.
|
void |
sqlFromSchema(int fieldIndex,
java.lang.String name) |
void |
sqlFromTable(int fieldIndex,
java.lang.String name) |
void |
udtName(int fieldIndex,
java.lang.String name) |
public JDBCResultSetMetaData(int serverCCSID, java.util.Calendar calendarUsedForConversions, java.lang.String catalog)
public void resultSetDescription(int numFields, int dateFormat, int timeFormat, int dateSeparator, int timeSeparator, int recordSize)
resultSetDescription
in interface DatabaseDescribeCallback
public void fieldDescription(int fieldIndex, int type, int length, int scale, int precision, int ccsid, int joinRefPosition, int attributeBitmap, int lobMaxSize)
fieldDescription
in interface DatabaseDescribeCallback
public void fieldName(int fieldIndex, java.lang.String name)
fieldName
in interface DatabaseDescribeCallback
public void udtName(int fieldIndex, java.lang.String name)
udtName
in interface DatabaseDescribeCallback
public void baseColumnName(int fieldIndex, java.lang.String name)
baseColumnName
in interface DatabaseDescribeCallback
public void baseTableName(int fieldIndex, java.lang.String name)
baseTableName
in interface DatabaseDescribeCallback
public void columnLabel(int fieldIndex, java.lang.String name)
columnLabel
in interface DatabaseDescribeCallback
public void baseSchemaName(int fieldIndex, java.lang.String name)
baseSchemaName
in interface DatabaseDescribeCallback
public void sqlFromTable(int fieldIndex, java.lang.String name)
sqlFromTable
in interface DatabaseDescribeCallback
public void sqlFromSchema(int fieldIndex, java.lang.String name)
sqlFromSchema
in interface DatabaseDescribeCallback
public void columnAttributes(int fieldIndex, int updateable, int searchable, boolean isIdentity, boolean isAlwaysGenerated, boolean isPartOfAnyIndex, boolean isLoneUniqueIndex, boolean isPartOfUniqueIndex, boolean isExpression, boolean isPrimaryKey, boolean isNamed, boolean isRowID, boolean isRowChangeTimestamp)
columnAttributes
in interface DatabaseDescribeCallback
public void setUseDateCache(int column, boolean b)
public void setUseDateCache(java.lang.String column, boolean b)
public void setUseTimeCache(int column, boolean b)
public void setUseTimeCache(java.lang.String column, boolean b)
public void setUseStringCache(int column, boolean b)
setCacheLastOnly()
and use an ORDER BY clause.public void setUseStringCache(java.lang.String column, boolean b)
public void setCacheLastOnly(int column, boolean b)
setUseStringCache()
was called with a value of true
for this column.public void setCacheLastOnly(java.lang.String column, boolean b)
public java.lang.String getCatalogName(int column) throws java.sql.SQLException
getCatalogName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getColumnClassName(int column) throws java.sql.SQLException
getColumnClassName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int getColumnCount() throws java.sql.SQLException
getColumnCount
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int getColumnDisplaySize(int column) throws java.sql.SQLException
getColumnDisplaySize
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getColumnLabel(int column) throws java.sql.SQLException
getColumnLabel
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getColumnName(int column) throws java.sql.SQLException
getColumnName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int getColumnType(int column) throws java.sql.SQLException
getColumnType
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getColumnTypeName(int column) throws java.sql.SQLException
getColumnTypeName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int getPrecision(int column) throws java.sql.SQLException
getPrecision
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int getScale(int column) throws java.sql.SQLException
getScale
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getSchemaName(int column) throws java.sql.SQLException
getSchemaName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public java.lang.String getTableName(int column) throws java.sql.SQLException
getTableName
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isAutoIncrement(int column) throws java.sql.SQLException
isAutoIncrement
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isCaseSensitive(int column) throws java.sql.SQLException
isCaseSensitive
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isCurrency(int column) throws java.sql.SQLException
isCurrency
in interface java.sql.ResultSetMetaData
column
- The column index (1-based).java.sql.SQLException
- If the column index is not valid.public boolean isDefinitelyWritable(int column) throws java.sql.SQLException
isDefinitelyWritable
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public int isNullable(int column) throws java.sql.SQLException
isNullable
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isReadOnly(int column) throws java.sql.SQLException
isReadOnly
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isSearchable(int column) throws java.sql.SQLException
isSearchable
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isSigned(int column) throws java.sql.SQLException
isSigned
in interface java.sql.ResultSetMetaData
java.sql.SQLException
public boolean isWritable(int column) throws java.sql.SQLException
isWritable
in interface java.sql.ResultSetMetaData
java.sql.SQLException