|
||||||||||
| 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
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. |
java.lang.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. |
java.lang.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 int |
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 ResultSetField| Method Detail |
public final int getColumnCount()
throws java.sql.SQLException
ResultSet object.
getColumnCount in interface java.sql.ResultSetMetaDatagetColumnCount in class AbstractResultSetMetaDatajava.sql.SQLException - if a database access error occurs
public final boolean isAutoIncrement(int column)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDataisAutoIncrement in class AbstractResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
true if so; false otherwise
java.sql.SQLException - if a database access error occurs
public final java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatagetColumnLabel in class AbstractResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public final java.lang.String getColumnClassName(int column)
throws java.sql.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 java.sql.ResultSetMetaDatagetColumnClassName in class AbstractResultSetMetaDatacolumn - 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.
java.sql.SQLException - if a database access error occurs
protected final void checkColumnIndex(int column)
throws java.sql.SQLException
checkColumnIndex in class AbstractResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if the column is out of index bounds
protected final int getOid(int column)
throws java.sql.SQLException
getOid in class AbstractResultSetMetaDatacolumn - Column index
java.sql.SQLException - if an error occurs
protected final int getFieldLength(int column)
throws java.sql.SQLException
getFieldLength in class AbstractResultSetMetaDatacolumn - Column index
java.sql.SQLException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||