|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.postgresql.pljava.jdbc.AbstractResultSet
org.postgresql.pljava.jdbc.ObjectResultSet
org.postgresql.pljava.jdbc.SingleRowResultSet
org.postgresql.pljava.jdbc.TriggerResultSet
public class TriggerResultSet
A single row, updateable ResultSet specially made for triggers. The changes made to this ResultSet are remembered and converted to a SPI_modify_tuple call prior to function return.
| 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 | |
|---|---|
TriggerResultSet(TupleDesc tupleDesc,
Tuple tuple,
boolean readOnly)
|
|
| Method Summary | |
|---|---|
void |
cancelRowUpdates()
Cancel all changes made to the Tuple. |
java.lang.Object[] |
getChangeIndexesAndValues()
Return a 2 element array describing the changes that has been made to the contained Tuple. |
int |
getConcurrency()
Returns the concurrency for this ResultSet. |
java.sql.ResultSetMetaData |
getMetaData()
ResultSetMetaData is not yet supported. |
protected java.lang.Object |
getObjectValue(int columnIndex)
|
protected TupleDesc |
getTupleDesc()
|
boolean |
rowUpdated()
Returns true if this row has been updated. |
void |
updateObject(int columnIndex,
java.lang.Object x)
Store this change for later use |
| Methods inherited from class org.postgresql.pljava.jdbc.SingleRowResultSet |
|---|
absolute, afterLast, beforeFirst, close, deleteRow, findColumn, first, getFetchDirection, getFetchSize, 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 |
| Constructor Detail |
|---|
public TriggerResultSet(TupleDesc tupleDesc,
Tuple tuple,
boolean readOnly)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public void cancelRowUpdates()
throws java.sql.SQLException
java.sql.SQLException
public int getConcurrency()
throws java.sql.SQLException
getConcurrency in interface java.sql.ResultSetgetConcurrency in class SingleRowResultSetjava.sql.SQLExceptionResultSet.getConcurrency()
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
ObjectResultSet
getMetaData in interface java.sql.ResultSetgetMetaData in class ObjectResultSetjava.sql.SQLException - indicating that this feature is not supported.
public boolean rowUpdated()
throws java.sql.SQLException
true if this row has been updated.
java.sql.SQLException
public void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object[] getChangeIndexesAndValues()
int[] containing
the index of each changed value. The second element is an Object[]
with containing the corresponding values.
null if no change has been made.
protected java.lang.Object getObjectValue(int columnIndex)
throws java.sql.SQLException
getObjectValue in class ObjectResultSetjava.sql.SQLExceptionprotected final TupleDesc getTupleDesc()
getTupleDesc in class SingleRowResultSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||