|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.jdbc.AbstractResultSetMetaData
org.postgresql.pljava.jdbc.SyntheticResultSetMetaData
public class SyntheticResultSetMetaData
Implementation of ResultSetMetaData for SyntheticResultSet
Field Summary |
---|
Fields inherited from interface java.sql.ResultSetMetaData |
---|
columnNoNulls, columnNullable, columnNullableUnknown |
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 |
---|
getCatalogName, getColumnDisplaySize, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyntheticResultSetMetaData(ResultSetField[] fields)
fields
- Array of ResultSetFieldMethod Detail |
---|
public final int getColumnCount() throws SQLException
ResultSet
object.
getColumnCount
in interface ResultSetMetaData
getColumnCount
in class AbstractResultSetMetaData
SQLException
- if a database access error occurspublic final boolean isAutoIncrement(int column) throws SQLException
isAutoIncrement
in interface ResultSetMetaData
isAutoIncrement
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
true
if so; false
otherwise
SQLException
- if a database access error occurspublic final String getColumnLabel(int column) throws SQLException
getColumnLabel
in interface ResultSetMetaData
getColumnLabel
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
SQLException
- if a database access error occurspublic 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 ResultSetMetaData
getColumnClassName
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
ResultSet.getObject
to retrieve the value in the specified
column. This is the class name used for custom mapping.
SQLException
- if a database access error occursprotected final void checkColumnIndex(int column) throws SQLException
checkColumnIndex
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
SQLException
- if the column is out of index boundsprotected final Oid getOid(int column) throws SQLException
getOid
in class AbstractResultSetMetaData
column
- Column index
SQLException
- if an error occursprotected final int getFieldLength(int column) throws SQLException
getFieldLength
in class AbstractResultSetMetaData
column
- Column index
SQLException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |