public class JDBCResultSetMetaData extends Object implements ResultSetMetaData, DatabaseDescribeCallback
columnNoNulls, columnNullable, columnNullableUnknown
Constructor and Description |
---|
JDBCResultSetMetaData(int serverCCSID,
Calendar calendarUsedForConversions,
String catalog) |
Modifier and Type | Method and Description |
---|---|
void |
baseColumnName(int fieldIndex,
String name) |
void |
baseSchemaName(int fieldIndex,
String name) |
void |
baseTableName(int fieldIndex,
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,
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,
String name) |
String |
getCatalogName(int column)
Not implemented.
|
String |
getColumnClassName(int column)
Not implemented.
|
int |
getColumnCount() |
int |
getColumnDisplaySize(int column)
Not implemented.
|
String |
getColumnLabel(int column) |
String |
getColumnName(int column) |
int |
getColumnType(int column) |
String |
getColumnTypeName(int column) |
int |
getPrecision(int column) |
int |
getScale(int column) |
String |
getSchemaName(int column) |
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(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(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(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(String column,
boolean b)
You know you want this, if you're going to be calling getTime() a lot.
|
void |
sqlFromSchema(int fieldIndex,
String name) |
void |
sqlFromTable(int fieldIndex,
String name) |
void |
udtName(int fieldIndex,
String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
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, String name)
fieldName
in interface DatabaseDescribeCallback
public void udtName(int fieldIndex, String name)
udtName
in interface DatabaseDescribeCallback
public void baseColumnName(int fieldIndex, String name)
baseColumnName
in interface DatabaseDescribeCallback
public void baseTableName(int fieldIndex, String name)
baseTableName
in interface DatabaseDescribeCallback
public void columnLabel(int fieldIndex, String name)
columnLabel
in interface DatabaseDescribeCallback
public void baseSchemaName(int fieldIndex, String name)
baseSchemaName
in interface DatabaseDescribeCallback
public void sqlFromTable(int fieldIndex, String name)
sqlFromTable
in interface DatabaseDescribeCallback
public void sqlFromSchema(int fieldIndex, 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(String column, boolean b)
public void setUseTimeCache(int column, boolean b)
public void setUseTimeCache(String column, boolean b)
public void setUseStringCache(int column, boolean b)
setCacheLastOnly()
and use an ORDER BY clause.public void setUseStringCache(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(String column, boolean b)
public String getCatalogName(int column) throws SQLException
getCatalogName
in interface ResultSetMetaData
SQLException
public String getColumnClassName(int column) throws SQLException
getColumnClassName
in interface ResultSetMetaData
SQLException
public int getColumnCount() throws SQLException
getColumnCount
in interface ResultSetMetaData
SQLException
public int getColumnDisplaySize(int column) throws SQLException
getColumnDisplaySize
in interface ResultSetMetaData
SQLException
public String getColumnLabel(int column) throws SQLException
getColumnLabel
in interface ResultSetMetaData
SQLException
public String getColumnName(int column) throws SQLException
getColumnName
in interface ResultSetMetaData
SQLException
public int getColumnType(int column) throws SQLException
getColumnType
in interface ResultSetMetaData
SQLException
public String getColumnTypeName(int column) throws SQLException
getColumnTypeName
in interface ResultSetMetaData
SQLException
public int getPrecision(int column) throws SQLException
getPrecision
in interface ResultSetMetaData
SQLException
public int getScale(int column) throws SQLException
getScale
in interface ResultSetMetaData
SQLException
public String getSchemaName(int column) throws SQLException
getSchemaName
in interface ResultSetMetaData
SQLException
public String getTableName(int column) throws SQLException
getTableName
in interface ResultSetMetaData
SQLException
public boolean isAutoIncrement(int column) throws SQLException
isAutoIncrement
in interface ResultSetMetaData
SQLException
public boolean isCaseSensitive(int column) throws SQLException
isCaseSensitive
in interface ResultSetMetaData
SQLException
public boolean isCurrency(int column) throws SQLException
isCurrency
in interface ResultSetMetaData
column
- The column index (1-based).SQLException
- If the column index is not valid.public boolean isDefinitelyWritable(int column) throws SQLException
isDefinitelyWritable
in interface ResultSetMetaData
SQLException
public int isNullable(int column) throws SQLException
isNullable
in interface ResultSetMetaData
SQLException
public boolean isReadOnly(int column) throws SQLException
isReadOnly
in interface ResultSetMetaData
SQLException
public boolean isSearchable(int column) throws SQLException
isSearchable
in interface ResultSetMetaData
SQLException
public boolean isSigned(int column) throws SQLException
isSigned
in interface ResultSetMetaData
SQLException
public boolean isWritable(int column) throws SQLException
isWritable
in interface ResultSetMetaData
SQLException