Class TriggerOldTransitionRows
java.lang.Object
org.apache.derby.vti.UpdatableVTITemplate
org.apache.derby.catalog.TriggerOldTransitionRows
- All Implemented Interfaces:
AutoCloseable, PreparedStatement, Statement, Wrapper
Provides information about a set of rows before a trigger action
changed them.
This class implements only JDBC 1.2, not JDBC 2.0. You cannot compile this class with JDK1.2, since it implements only the JDBC 1.2 ResultSet interface and not the JDBC 2.0 ResultSet interface. You can only use this class in a JDK 1.2 runtime environment if no JDBC 2.0 calls are made against it.
-
Field Summary
FieldsFields inherited from interface Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class UpdatableVTITemplate
addBatch, addBatch, cancel, clearBatch, clearParameters, clearWarnings, closeOnCompletion, execute, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setPoolable, setQueryTimeout, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, unwrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreparedStatement
executeLargeUpdate, setObject, setObjectMethods inherited from interface Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
Field Details
-
resultSet
-
-
Constructor Details
-
TriggerOldTransitionRows
Construct a VTI on the trigger's old row set. The old row set is the before image of the rows that are changed by the trigger. For a trigger on a delete, this is all the rows that are deleted. For a trigger on an update, this is the rows before they are updated. For an insert, this throws an exception.- Throws:
SQLException- thrown if no trigger active
-
-
Method Details
-
initializeResultSet
- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfacePreparedStatement- Overrides:
executeQueryin classUpdatableVTITemplate- Throws:
SQLException- on unexpected JDBC error- See Also:
-
getResultSetConcurrency
public int getResultSetConcurrency()- Specified by:
getResultSetConcurrencyin interfaceStatement- Overrides:
getResultSetConcurrencyin classUpdatableVTITemplate- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Overrides:
closein classUpdatableVTITemplate- Throws:
SQLException- on unexpected JDBC error- See Also:
-