org.postgresql.pljava.jdbc
Class SPIResultSetMetaData
- ResultSetMetaData
public class SPIResultSetMetaData
Implementation of ResultSetMetaData for SPIResultSet
protected void | checkColumnIndex(int column) - Checks if the column index is valid.
|
String | getColumnClassName(int column) - Returns the fully-qualified name of the Java class whose instances
are manufactured if the method
ResultSet.getObject
is called to retrieve a value
from the column.
|
int | getColumnCount() - Returns the number of columns in this
ResultSet object.
|
String | getColumnLabel(int column) - Gets the designated column's suggested title for use in printouts and
displays.
|
protected int | getFieldLength(int column) - Gets column length.
|
protected Oid | getOid(int column) - Gets column OID
|
boolean | isAutoIncrement(int column) - Indicates whether the designated column is automatically numbered, thus read-only.
|
checkColumnIndex , getCatalogName , getColumnClassName , getColumnCount , getColumnDisplaySize , getColumnLabel , getColumnName , getColumnType , getColumnTypeName , getFieldLength , getOid , getPrecision , getScale , getSchemaName , getTableName , isAutoIncrement , isCaseSensitive , isCurrency , isDefinitelyWritable , isNullable , isReadOnly , isSearchable , isSigned , isWritable |
SPIResultSetMetaData
public SPIResultSetMetaData(TupleDesc tupleDesc)
Constructor.
tupleDesc
- The descriptor for the ResultSet tuples
checkColumnIndex
protected final void checkColumnIndex(int column)
throws SQLException
Checks if the column index is valid.
- checkColumnIndex in interface AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
getColumnClassName
public final String getColumnClassName(int column)
throws SQLException
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column. ResultSet.getObject
may return a subclass of the
class returned by this method.
- getColumnClassName in interface AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
- the fully-qualified name of the class in the Java programming
language that would be used by the method
ResultSet.getObject
to retrieve the value in the specified
column. This is the class name used for custom mapping.
getColumnLabel
public final String getColumnLabel(int column)
throws SQLException
Gets the designated column's suggested title for use in printouts and
displays.
- getColumnLabel in interface AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
- the suggested column title
getFieldLength
protected final int getFieldLength(int column)
throws SQLException
Gets column length. This method is called if the AbstractResultSet does not
know how to get column length according to type OID.
We retutn 0 because we don't know the proper length either.
- getFieldLength in interface AbstractResultSetMetaData
isAutoIncrement
public final boolean isAutoIncrement(int column)
throws SQLException
Indicates whether the designated column is automatically numbered, thus read-only.
- isAutoIncrement in interface AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
true
if so; false
otherwise
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT