Package org.postgresql.pljava.jdbc
Class SyntheticResultSetMetaData
java.lang.Object
org.postgresql.pljava.jdbc.AbstractResultSetMetaData
org.postgresql.pljava.jdbc.SyntheticResultSetMetaData
- All Implemented Interfaces:
ResultSetMetaData,Wrapper
Implementation of ResultSetMetaData for SyntheticResultSet
- Author:
- Filip Hrbek
-
Field Summary
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcheckColumnIndex(int column) Checks if the column index is valid.final StringgetColumnClassName(int column) Returns the fully-qualified name of the Java class whose instances are manufactured if the methodResultSet.getObjectis called to retrieve a value from the column.final intReturns the number of columns in thisResultSetobject.final StringgetColumnLabel(int column) Gets the designated column's suggested title for use in printouts and displays.protected final intgetFieldLength(int column) Gets column lengthprotected final OidgetOid(int column) Gets column OIDfinal booleanisAutoIncrement(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, isWrapperFor, isWritable, unwrap
-
Constructor Details
-
SyntheticResultSetMetaData
Constructor.- Parameters:
fields- Array of ResultSetField
-
-
Method Details
-
getColumnCount
Returns the number of columns in thisResultSetobject.- Specified by:
getColumnCountin interfaceResultSetMetaData- Specified by:
getColumnCountin classAbstractResultSetMetaData- Returns:
- the number of columns
- Throws:
SQLException- if a database access error occurs
-
isAutoIncrement
Indicates whether the designated column is automatically numbered, thus read-only.- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Specified by:
isAutoIncrementin classAbstractResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
trueif so;falseotherwise- Throws:
SQLException- if a database access error occurs
-
getColumnLabel
Gets the designated column's suggested title for use in printouts and displays.- Specified by:
getColumnLabelin interfaceResultSetMetaData- Specified by:
getColumnLabelin classAbstractResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- the suggested column title
- Throws:
SQLException- if a database access error occurs
-
getColumnClassName
Returns the fully-qualified name of the Java class whose instances are manufactured if the method
ResultSet.getObjectis called to retrieve a value from the column.ResultSet.getObjectmay return a subclass of the class returned by this method.- Specified by:
getColumnClassNamein interfaceResultSetMetaData- Specified by:
getColumnClassNamein classAbstractResultSetMetaData- 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.getObjectto retrieve the value in the specified column. This is the class name used for custom mapping. - Throws:
SQLException- if a database access error occurs- Since:
- 1.2
-
checkColumnIndex
Checks if the column index is valid.- Specified by:
checkColumnIndexin classAbstractResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Throws:
SQLException- if the column is out of index bounds
-
getOid
Gets column OID- Specified by:
getOidin classAbstractResultSetMetaData- Parameters:
column- Column index- Returns:
- column OID
- Throws:
SQLException- if an error occurs
-
getFieldLength
Gets column length- Specified by:
getFieldLengthin classAbstractResultSetMetaData- Parameters:
column- Column index- Returns:
- column length
- Throws:
SQLException- if an error occurs
-