java.lang.Object
org.postgresql.pljava.jdbc.AbstractResultSet
org.postgresql.pljava.jdbc.ObjectResultSet
org.postgresql.pljava.jdbc.SingleRowResultSet
org.postgresql.pljava.jdbc.SingleRowReader
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
- Direct Known Subclasses:
SQLInputFromTuple
A single row, read-only ResultSet, specially made for functions and
procedures that takes complex types as arguments (PostgreSQL 7.5
and later).
- Author:
- Thomas Hallgren
-
Field Summary
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Constructor Summary
ConstructorsConstructorDescriptionSingleRowReader(DualState.Key cookie, long resourceOwner, long hth, TupleDesc tupleDesc) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis feature is not supported on aReadOnlyResultSet.voidclose()voidThis feature is not supported on aReadOnlyResultSet.intReturnsResultSet.CONCUR_READ_ONLY.protected ObjectgetObjectValue(int columnIndex, Class<?> type) Primary method for subclass to override to retrieve a value.protected final TupleDescvoidThis feature is not supported on aReadOnlyResultSet.booleanisClosed()voidThis feature is not supported on aReadOnlyResultSet.booleanAlways returns false.voidupdateObject(int columnIndex, Object x) This feature is not supported on aReadOnlyResultSet.voidupdateObject(int columnIndex, Object x, int scale) This feature is not supported on aReadOnlyResultSet.voidThis feature is not supported on aReadOnlyResultSet.Methods inherited from class org.postgresql.pljava.jdbc.SingleRowResultSet
absolute, afterLast, beforeFirst, findColumn, first, getFetchDirection, getFetchSize, getHoldability, getMetaData, getRow, getType, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, next, previous, relative, rowDeleted, rowInserted, setFetchDirection, setFetchSizeMethods inherited from class org.postgresql.pljava.jdbc.ObjectResultSet
clearWarnings, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getNumber, getObject, getObject, getObject, getObjectValue, getObjectValue, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, getValue, getValue, getWarnings, refreshRow, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateRef, updateShort, updateString, updateTime, updateTimestamp, wasNullMethods inherited from class org.postgresql.pljava.jdbc.AbstractResultSet
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getCursorName, getDate, getDate, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, isWrapperFor, unwrap, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateObject, updateObject, updateRef, updateRowId, updateRowId, updateShort, updateSQLXML, updateSQLXML, updateString, updateTime, updateTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Constructor Details
-
SingleRowReader
public SingleRowReader(DualState.Key cookie, long resourceOwner, long hth, TupleDesc tupleDesc) throws SQLException - Parameters:
cookie- Capability obtained from native code to construct aSingleRowReaderinstance.resourceOwner- Value identifying a scope in PostgreSQL during which the native state encapsulated here will be valid.hth- Native pointer to a PGHeapTupleHeadertupleDesc- ATupleDesc; the Java class this time.- Throws:
SQLException
-
-
Method Details
-
close
public void close() -
getObjectValue
Description copied from class:ObjectResultSetPrimary method for subclass to override to retrieve a value.The signature does not constrain this to return an object of the requested class, so it can still be used as before by methods that may do additional coercions. When called by
ObjectResultSet.getObject(int,Class), that caller enforces the class of the result.- Specified by:
getObjectValuein classObjectResultSet- Throws:
SQLException
-
getConcurrency
ReturnsResultSet.CONCUR_READ_ONLY.- Specified by:
getConcurrencyin interfaceResultSet- Overrides:
getConcurrencyin classSingleRowResultSet- Throws:
SQLException
-
cancelRowUpdates
This feature is not supported on aReadOnlyResultSet.- Throws:
SQLException- indicating that this feature is not supported.
-
deleteRow
This feature is not supported on aReadOnlyResultSet.- Specified by:
deleteRowin interfaceResultSet- Overrides:
deleteRowin classSingleRowResultSet- Throws:
SQLException- indicating that this feature is not supported.
-
insertRow
This feature is not supported on aReadOnlyResultSet.- Specified by:
insertRowin interfaceResultSet- Overrides:
insertRowin classSingleRowResultSet- Throws:
SQLException- indicating that this feature is not supported.
-
moveToInsertRow
This feature is not supported on aReadOnlyResultSet.- Specified by:
moveToInsertRowin interfaceResultSet- Overrides:
moveToInsertRowin classSingleRowResultSet- Throws:
SQLException- indicating that this feature is not supported.
-
updateRow
This feature is not supported on aReadOnlyResultSet.- Specified by:
updateRowin interfaceResultSet- Overrides:
updateRowin classSingleRowResultSet- Throws:
SQLException- indicating that this feature is not supported.
-
rowUpdated
Always returns false.- Throws:
SQLException
-
updateObject
This feature is not supported on aReadOnlyResultSet.- Throws:
SQLException- indicating that this feature is not supported.
-
updateObject
This feature is not supported on aReadOnlyResultSet.- Specified by:
updateObjectin interfaceResultSet- Overrides:
updateObjectin classSingleRowResultSet- Throws:
SQLException- indicating that this feature is not supported.
-
isClosed
- Throws:
SQLException
-
getTupleDesc
- Specified by:
getTupleDescin classSingleRowResultSet
-