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
ConstructorDescriptionSQLInputFromTuple
(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 int
Implemented overreadValue(java.lang.Class<T>)
.Implemented overreadClob()
.Implemented overreadValue(java.lang.Class<T>)
.Implemented overreadBlob()
.readBlob()
Implemented overreadBytes()
.boolean
Implemented overreadValue(java.lang.Class<T>)
.byte
readByte()
Implemented overreadNumber(java.lang.Class)
.byte[]
Implemented overreadValue(java.lang.Class<T>)
.Implemented overreadClob()
.readClob()
Implemented overreadString()
.readDate()
Implemented overreadValue(java.lang.Class<T>)
.double
Implemented overreadNumber(java.lang.Class)
.float
Implemented overreadNumber(java.lang.Class)
.int
readInt()
Implemented overreadNumber(java.lang.Class)
.long
readLong()
Implemented overreadNumber(java.lang.Class)
.Not yet implemented.Not yet implemented.<T> T
readObject
(Class<T> type) readRef()
Implemented overreadValue(java.lang.Class<T>)
.Not yet implemented.short
Implemented 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, updateRow
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, setFetchSize
Methods 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, wasNull
Methods 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, updateTimestamp
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Constructor Details
-
SQLInputFromTuple
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:
readArray
in interfaceSQLInput
- Throws:
SQLException
-
readAsciiStream
Implemented overreadClob()
.- Specified by:
readAsciiStream
in interfaceSQLInput
- Throws:
SQLException
-
readBigDecimal
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readBigDecimal
in interfaceSQLInput
- Throws:
SQLException
-
readBinaryStream
Implemented overreadBlob()
.- Specified by:
readBinaryStream
in interfaceSQLInput
- Throws:
SQLException
-
readBlob
Implemented overreadBytes()
.- Specified by:
readBlob
in interfaceSQLInput
- Throws:
SQLException
-
readBoolean
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readBoolean
in interfaceSQLInput
- Throws:
SQLException
-
readByte
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readByte
in interfaceSQLInput
- Throws:
SQLException
-
readBytes
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readBytes
in interfaceSQLInput
- Throws:
SQLException
-
readCharacterStream
Implemented overreadClob()
.- Specified by:
readCharacterStream
in interfaceSQLInput
- Throws:
SQLException
-
readClob
Implemented overreadString()
.- Specified by:
readClob
in interfaceSQLInput
- Throws:
SQLException
-
readDate
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readDate
in interfaceSQLInput
- Throws:
SQLException
-
readDouble
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readDouble
in interfaceSQLInput
- Throws:
SQLException
-
readFloat
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readFloat
in interfaceSQLInput
- Throws:
SQLException
-
readInt
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readInt
in interfaceSQLInput
- Throws:
SQLException
-
readLong
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readLong
in interfaceSQLInput
- Throws:
SQLException
-
readObject
- Specified by:
readObject
in interfaceSQLInput
- Throws:
SQLException
-
readRef
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readRef
in interfaceSQLInput
- Throws:
SQLException
-
readShort
Implemented overreadNumber(java.lang.Class)
.- Specified by:
readShort
in interfaceSQLInput
- Throws:
SQLException
-
readString
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readString
in interfaceSQLInput
- Throws:
SQLException
-
readTime
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readTime
in interfaceSQLInput
- Throws:
SQLException
-
readTimestamp
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readTimestamp
in interfaceSQLInput
- Throws:
SQLException
-
readURL
Implemented overreadValue(java.lang.Class<T>)
.- Specified by:
readURL
in interfaceSQLInput
- Throws:
SQLException
-
readSQLXML
- Specified by:
readSQLXML
in interfaceSQLInput
- Throws:
SQLException
-
readRowId
Not yet implemented.- Specified by:
readRowId
in interfaceSQLInput
- Throws:
SQLException
-
readNString
Not yet implemented.- Specified by:
readNString
in interfaceSQLInput
- Throws:
SQLException
-
readNClob
Not yet implemented.- Specified by:
readNClob
in interfaceSQLInput
- Throws:
SQLException
-
readObject
- Specified by:
readObject
in interfaceSQLInput
- Throws:
SQLException
-