|
||||||||||
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.SPIResultSetMetaData
Implementation of ResultSetMetaData for SPIResultSet
Field Summary |
Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
Constructor Summary | |
SPIResultSetMetaData(TupleDesc tupleDesc)
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 SPIResultSetMetaData(TupleDesc tupleDesc)
Method Detail |
public final int getColumnCount() throws java.sql.SQLException
ResultSet
object.
getColumnCount
in interface java.sql.ResultSetMetaData
getColumnCount
in class AbstractResultSetMetaData
java.sql.SQLException
- if a database access error occurspublic final boolean isAutoIncrement(int column) throws java.sql.SQLException
isAutoIncrement
in interface java.sql.ResultSetMetaData
isAutoIncrement
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
true
if so; false
otherwise
java.sql.SQLException
- if a database access error occurspublic final java.lang.String getColumnLabel(int column) throws java.sql.SQLException
getColumnLabel
in interface java.sql.ResultSetMetaData
getColumnLabel
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
java.sql.SQLException
- if a database access error occurspublic 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.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.
java.sql.SQLException
- if a database access error occursprotected final void checkColumnIndex(int column) throws java.sql.SQLException
checkColumnIndex
in class AbstractResultSetMetaData
column
- the first column is 1, the second is 2, ...
java.sql.SQLException
- if the column is out of index boundsprotected final int getOid(int column) throws java.sql.SQLException
getOid
in class AbstractResultSetMetaData
column
- Column index
java.sql.SQLException
- if an error occursprotected final int getFieldLength(int column) throws java.sql.SQLException
getFieldLength
in class AbstractResultSetMetaData
column
- 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 |