Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.catalog
Class TriggerOldTransitionRows  view TriggerOldTransitionRows download TriggerOldTransitionRows.java

java.lang.Object
  extended byorg.apache.derby.vti.VTITemplate
      extended byorg.apache.derby.catalog.TriggerOldTransitionRows
All Implemented Interfaces:
java.sql.ResultSet

public class TriggerOldTransitionRows
extends org.apache.derby.vti.VTITemplate

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
private  java.sql.ResultSet resultSet
           
 
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
TriggerOldTransitionRows()
          Construct a VTI on the trigger's old row set.
 
Method Summary
 void clearWarnings()
          This method clears all warnings associated with this result set.
 void close()
          This method closes the result set and frees any associated resources.
 int findColumn(java.lang.String columnName)
          This method returns the column index of the specified named column.
 java.io.InputStream getAsciiStream(int columnIndex)
          This method returns the value of the specified column as an ASCII stream.
 java.io.InputStream getAsciiStream(java.lang.String columnName)
          This method returns the value of the specified column as an ASCII stream.
 java.math.BigDecimal getBigDecimal(int columnIndex, int scale)
          This method returns the value of the specified column as a Java BigDecimal.
 java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale)
          This method returns the value of the specified column as a Java BigDecimal.
 java.io.InputStream getBinaryStream(int columnIndex)
          This method returns the value of the specified column as a raw byte stream.
 java.io.InputStream getBinaryStream(java.lang.String columnName)
          This method returns the value of the specified column as a raw byte stream.
 boolean getBoolean(int columnIndex)
          This method returns the value of the specified column as a Java boolean.
 boolean getBoolean(java.lang.String columnName)
          This method returns the value of the specified column as a Java boolean.
 byte getByte(int columnIndex)
          This method returns the value of the specified column as a Java byte.
 byte getByte(java.lang.String columnName)
          This method returns the value of the specified column as a Java byte.
 byte[] getBytes(int columnIndex)
          This method returns the value of the specified column as a Java byte array.
 byte[] getBytes(java.lang.String columnName)
          This method returns the value of the specified column as a Java byte array.
 java.lang.String getCursorName()
          This method returns the name of the database cursor used by this result set.
 java.sql.Date getDate(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Date.
 java.sql.Date getDate(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Date.
 double getDouble(int columnIndex)
          This method returns the value of the specified column as a Java double.
 double getDouble(java.lang.String columnName)
          This method returns the value of the specified column as a Java double.
 float getFloat(int columnIndex)
          This method returns the value of the specified column as a Java float.
 float getFloat(java.lang.String columnName)
          This method returns the value of the specified column as a Java float.
 int getInt(int columnIndex)
          This method returns the value of the specified column as a Java int.
 int getInt(java.lang.String columnName)
          This method returns the value of the specified column as a Java int.
 long getLong(int columnIndex)
          This method returns the value of the specified column as a Java long.
 long getLong(java.lang.String columnName)
          This method returns the value of the specified column as a Java long.
 java.sql.ResultSetMetaData getMetaData()
          This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.
 java.lang.Object getObject(int columnIndex)
          This method returns the value of the specified column as a Java Object.
 java.lang.Object getObject(java.lang.String columnName)
          This method returns the value of the specified column as a Java Object.
static java.sql.ResultSetMetaData getResultSetMetaData()
          Provide the metadata for VTI interface.
 short getShort(int columnIndex)
          This method returns the value of the specified column as a Java short.
 short getShort(java.lang.String columnName)
          This method returns the value of the specified column as a Java short.
 java.lang.String getString(int columnIndex)
          This method returns the value of the specified column as a Java String.
 java.lang.String getString(java.lang.String columnName)
          This method returns the value of the specified column as a Java String.
 java.sql.Time getTime(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Time.
 java.sql.Time getTime(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Time.
 java.sql.Timestamp getTimestamp(int columnIndex)
          This method returns the value of the specified column as a Java java.sql.Timestamp.
 java.sql.Timestamp getTimestamp(java.lang.String columnName)
          This method returns the value of the specified column as a Java java.sql.Timestamp.
 java.io.InputStream getUnicodeStream(int columnIndex)
          This method returns the value of the specified column as a Unicode UTF-8 stream.
 java.io.InputStream getUnicodeStream(java.lang.String columnName)
          This method returns the value of the specified column as a Unicode UTF-8 stream.
 java.sql.SQLWarning getWarnings()
          This method returns the first SQL warning associated with this result set.
 boolean next()
          This method advances to the next row in the result set.
 boolean wasNull()
          This method tests whether the value of the last column that was fetched was actually a SQL NULL value.
 
Methods inherited from class org.apache.derby.vti.VTITemplate
absolute, afterLast, beforeFirst, cancelRowUpdates, deleteRow, first, getArray, getArray, getBigDecimal, getBigDecimal, getBlob, getBlob, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getDate, getDate, getFetchDirection, getFetchSize, getObject, getObject, getRef, getRef, getRow, getStatement, getTime, getTime, getTimestamp, getTimestamp, getType, getURL, getURL, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultSet

private java.sql.ResultSet resultSet
Constructor Detail

TriggerOldTransitionRows

public TriggerOldTransitionRows()
                         throws java.sql.SQLException
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.

Method Detail

getResultSetMetaData

public static java.sql.ResultSetMetaData getResultSetMetaData()
                                                       throws java.sql.SQLException
Provide the metadata for VTI interface.


next

public boolean next()
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method advances to the next row in the result set. Any streams open on the current row are closed automatically.


close

public void close()
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method closes the result set and frees any associated resources.


wasNull

public boolean wasNull()
                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method tests whether the value of the last column that was fetched was actually a SQL NULL value.


getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java String.


getBoolean

public boolean getBoolean(int columnIndex)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java boolean.


getByte

public byte getByte(int columnIndex)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte.


getShort

public short getShort(int columnIndex)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java short.


getInt

public int getInt(int columnIndex)
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java int.


getLong

public long getLong(int columnIndex)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java long.


getFloat

public float getFloat(int columnIndex)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java float.


getDouble

public double getDouble(int columnIndex)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java double.


getBigDecimal

public java.math.BigDecimal getBigDecimal(int columnIndex,
                                          int scale)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.


getBytes

public byte[] getBytes(int columnIndex)
                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte array.


getDate

public java.sql.Date getDate(int columnIndex)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Date.


getTime

public java.sql.Time getTime(int columnIndex)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Time.


getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Timestamp.


getAsciiStream

public java.io.InputStream getAsciiStream(int columnIndex)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getUnicodeStream

public java.io.InputStream getUnicodeStream(int columnIndex)
                                     throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getBinaryStream

public java.io.InputStream getBinaryStream(int columnIndex)
                                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getString

public java.lang.String getString(java.lang.String columnName)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java String.


getBoolean

public boolean getBoolean(java.lang.String columnName)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java boolean.


getByte

public byte getByte(java.lang.String columnName)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte.


getShort

public short getShort(java.lang.String columnName)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java short.


getInt

public int getInt(java.lang.String columnName)
           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java int.


getLong

public long getLong(java.lang.String columnName)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java long.


getFloat

public float getFloat(java.lang.String columnName)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java float.


getDouble

public double getDouble(java.lang.String columnName)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java double.


getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
                                          int scale)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java BigDecimal.


getBytes

public byte[] getBytes(java.lang.String columnName)
                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java byte array.


getDate

public java.sql.Date getDate(java.lang.String columnName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Date.


getTime

public java.sql.Time getTime(java.lang.String columnName)
                      throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Time.


getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java java.sql.Timestamp.


getAsciiStream

public java.io.InputStream getAsciiStream(java.lang.String columnName)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getUnicodeStream

public java.io.InputStream getUnicodeStream(java.lang.String columnName)
                                     throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String columnName)
                                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.


getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the first SQL warning associated with this result set. Any additional warnings will be chained to this one.


clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method clears all warnings associated with this result set.


getCursorName

public java.lang.String getCursorName()
                               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the name of the database cursor used by this result set.


getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.


getObject

public java.lang.Object getObject(int columnIndex)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java Object.


getObject

public java.lang.Object getObject(java.lang.String columnName)
                           throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the value of the specified column as a Java Object.


findColumn

public int findColumn(java.lang.String columnName)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSet
This method returns the column index of the specified named column.