java.lang.Object
org.postgresql.pljava.jdbc.AbstractResultSet
org.postgresql.pljava.jdbc.ObjectResultSet
org.postgresql.pljava.jdbc.SingleRowResultSet
org.postgresql.pljava.jdbc.SingleRowReader
org.postgresql.pljava.jdbc.SQLInputFromTuple
- All Implemented Interfaces:
AutoCloseable,ResultSet,SQLInput,Wrapper
Implements the
SQLInput interface for a user-defined type (UDT)
implemented in Java, for the case where a composite type in PostgreSQL is
used as the UDT's representation, so it can be accessed as a PG tuple.- 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
ConstructorsConstructorDescriptionSQLInputFromTuple(DualState.Key cookie, long resourceOwner, long heapTupleHeaderPointer, TupleDesc tupleDesc) Construct an instance, given the (native) pointer to a PGHeapTupleHeader, as well as the TupleDesc (Java object this time) describing its structure. -
Method Summary
Modifier and TypeMethodDescriptionprotected intImplemented overreadValue(java.lang.Class<T>).Implemented overreadClob().Implemented overreadValue(java.lang.Class<T>).Implemented overreadBlob().readBlob()Implemented overreadBytes().booleanImplemented overreadValue(java.lang.Class<T>).bytereadByte()Implemented overreadNumber(java.lang.Class).byte[]Implemented overreadValue(java.lang.Class<T>).Implemented overreadClob().readClob()Implemented overreadString().readDate()Implemented overreadValue(java.lang.Class<T>).doubleImplemented overreadNumber(java.lang.Class).floatImplemented overreadNumber(java.lang.Class).intreadInt()Implemented overreadNumber(java.lang.Class).longreadLong()Implemented overreadNumber(java.lang.Class).Not yet implemented.Not yet implemented.<T> TreadObject(Class<T> type) readRef()Implemented overreadValue(java.lang.Class<T>).Not yet implemented.shortImplemented overreadNumber(java.lang.Class).Implemented overreadValue(java.lang.Class<T>).readTime()Implemented overreadValue(java.lang.Class<T>).Implemented overreadValue(java.lang.Class<T>).readURL()Implemented overreadValue(java.lang.Class<T>).Methods inherited from class org.postgresql.pljava.jdbc.SingleRowReader
cancelRowUpdates, close, deleteRow, getConcurrency, getObjectValue, getTupleDesc, insertRow, isClosed, moveToInsertRow, rowUpdated, updateObject, updateObject, updateRowMethods 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
-
SQLInputFromTuple
public SQLInputFromTuple(DualState.Key cookie, long resourceOwner, long heapTupleHeaderPointer, TupleDesc tupleDesc) throws SQLException Construct an instance, given the (native) pointer to a PGHeapTupleHeader, as well as the TupleDesc (Java object this time) describing its structure.- Throws:
SQLException
-
-
Method Details
-
nextIndex
- Throws:
SQLException
-
readArray
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readArrayin interfaceSQLInput- Throws:
SQLException
-
readAsciiStream
Implemented overreadClob().- Specified by:
readAsciiStreamin interfaceSQLInput- Throws:
SQLException
-
readBigDecimal
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readBigDecimalin interfaceSQLInput- Throws:
SQLException
-
readBinaryStream
Implemented overreadBlob().- Specified by:
readBinaryStreamin interfaceSQLInput- Throws:
SQLException
-
readBlob
Implemented overreadBytes().- Specified by:
readBlobin interfaceSQLInput- Throws:
SQLException
-
readBoolean
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readBooleanin interfaceSQLInput- Throws:
SQLException
-
readByte
Implemented overreadNumber(java.lang.Class).- Specified by:
readBytein interfaceSQLInput- Throws:
SQLException
-
readBytes
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readBytesin interfaceSQLInput- Throws:
SQLException
-
readCharacterStream
Implemented overreadClob().- Specified by:
readCharacterStreamin interfaceSQLInput- Throws:
SQLException
-
readClob
Implemented overreadString().- Specified by:
readClobin interfaceSQLInput- Throws:
SQLException
-
readDate
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readDatein interfaceSQLInput- Throws:
SQLException
-
readDouble
Implemented overreadNumber(java.lang.Class).- Specified by:
readDoublein interfaceSQLInput- Throws:
SQLException
-
readFloat
Implemented overreadNumber(java.lang.Class).- Specified by:
readFloatin interfaceSQLInput- Throws:
SQLException
-
readInt
Implemented overreadNumber(java.lang.Class).- Specified by:
readIntin interfaceSQLInput- Throws:
SQLException
-
readLong
Implemented overreadNumber(java.lang.Class).- Specified by:
readLongin interfaceSQLInput- Throws:
SQLException
-
readObject
- Specified by:
readObjectin interfaceSQLInput- Throws:
SQLException
-
readRef
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readRefin interfaceSQLInput- Throws:
SQLException
-
readShort
Implemented overreadNumber(java.lang.Class).- Specified by:
readShortin interfaceSQLInput- Throws:
SQLException
-
readString
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readStringin interfaceSQLInput- Throws:
SQLException
-
readTime
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readTimein interfaceSQLInput- Throws:
SQLException
-
readTimestamp
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readTimestampin interfaceSQLInput- Throws:
SQLException
-
readURL
Implemented overreadValue(java.lang.Class<T>).- Specified by:
readURLin interfaceSQLInput- Throws:
SQLException
-
readSQLXML
- Specified by:
readSQLXMLin interfaceSQLInput- Throws:
SQLException
-
readRowId
Not yet implemented.- Specified by:
readRowIdin interfaceSQLInput- Throws:
SQLException
-
readNString
Not yet implemented.- Specified by:
readNStringin interfaceSQLInput- Throws:
SQLException
-
readNClob
Not yet implemented.- Specified by:
readNClobin interfaceSQLInput- Throws:
SQLException
-
readObject
- Specified by:
readObjectin interfaceSQLInput- Throws:
SQLException
-