org.postgresql.pljava.jdbc

Class SyntheticResultSetMetaData

Implemented Interfaces:
ResultSetMetaData

public class SyntheticResultSetMetaData
extends AbstractResultSetMetaData

Implementation of ResultSetMetaData for SyntheticResultSet

Constructor Summary

SyntheticResultSetMetaData(ResultSetField[] fields)
Constructor.

Method Summary

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.

Methods inherited from class org.postgresql.pljava.jdbc.AbstractResultSetMetaData

checkColumnIndex, getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getFieldLength, getOid, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable

Constructor Details

SyntheticResultSetMetaData

public SyntheticResultSetMetaData(ResultSetField[] fields)
Constructor.
Parameters:
fields - Array of ResultSetField

Method Details

checkColumnIndex

protected final void checkColumnIndex(int column)
            throws SQLException
Checks if the column index is valid.
Overrides:
checkColumnIndex in interface AbstractResultSetMetaData
Parameters:
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.
Overrides:
getColumnClassName in interface AbstractResultSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
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.
Since:
1.2

getColumnCount

public final int getColumnCount()
            throws SQLException
Returns the number of columns in this ResultSet object.
Overrides:
getColumnCount in interface AbstractResultSetMetaData
Returns:
the number of columns

getColumnLabel

public final String getColumnLabel(int column)
            throws SQLException
Gets the designated column's suggested title for use in printouts and displays.
Overrides:
getColumnLabel in interface AbstractResultSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
the suggested column title

getFieldLength

protected final int getFieldLength(int column)
            throws SQLException
Gets column length
Overrides:
getFieldLength in interface AbstractResultSetMetaData
Parameters:
column - Column index
Returns:
column length

getOid

protected final Oid getOid(int column)
            throws SQLException
Gets column OID
Overrides:
getOid in interface AbstractResultSetMetaData
Parameters:
column - Column index
Returns:
column OID

isAutoIncrement

public final boolean isAutoIncrement(int column)
            throws SQLException
Indicates whether the designated column is automatically numbered, thus read-only.
Overrides:
isAutoIncrement in interface AbstractResultSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so; false otherwise

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT