org.postgresql.pljava.jdbc
Class SingleRowWriter
java.lang.Object
org.postgresql.pljava.jdbc.AbstractResultSet
org.postgresql.pljava.jdbc.ObjectResultSet
org.postgresql.pljava.jdbc.SingleRowResultSet
org.postgresql.pljava.jdbc.SingleRowWriter
- All Implemented Interfaces:
- ResultSet
public class SingleRowWriter
- extends SingleRowResultSet
A single row, updateable ResultSet, specially made for functions and
procedures that returns complex types or sets.
- Author:
- Thomas Hallgren
Methods inherited from class org.postgresql.pljava.jdbc.SingleRowResultSet |
absolute, afterLast, beforeFirst, deleteRow, findColumn, first, getConcurrency, getFetchDirection, getFetchSize, getMetaData, getRow, getType, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, relative, rowDeleted, rowInserted, setFetchDirection, setFetchSize, updateObject, updateRow |
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, 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, getObject, getObject, getRef, getShort, getStatement, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateObject, updateObject, updateRef, updateShort, updateString, updateTime, updateTimestamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleRowWriter
public SingleRowWriter(TupleDesc tupleDesc)
throws SQLException
- Throws:
SQLException
getObjectValue
protected Object getObjectValue(int columnIndex)
throws SQLException
- Specified by:
getObjectValue
in class ObjectResultSet
- Throws:
SQLException
rowUpdated
public boolean rowUpdated()
throws SQLException
- Returns
true
if the row contains any non null
values since all values of the row are null
initially.
- Throws:
SQLException
updateObject
public void updateObject(int columnIndex,
Object x)
throws SQLException
- Throws:
SQLException
cancelRowUpdates
public void cancelRowUpdates()
throws SQLException
- Throws:
SQLException
close
public void close()
throws SQLException
- Cancels all changes but doesn't really close the set.
- Throws:
SQLException
copyRowFrom
public void copyRowFrom(ResultSet rs)
throws SQLException
- Throws:
SQLException
getTupleAndClear
public Tuple getTupleAndClear()
throws SQLException
- Creates a tuple from the current row values and then cancel all row
updates to prepare for a new row.
- Returns:
- The Tuple reflecting the current row values.
- Throws:
SQLException
getTupleDesc
protected final TupleDesc getTupleDesc()
- Specified by:
getTupleDesc
in class SingleRowResultSet