Class TriggerOldTransitionRows

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper

    public class TriggerOldTransitionRows
    extends UpdatableVTITemplate
    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 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.
        Throws:
        java.sql.SQLException - thrown if no trigger active
    • Method Detail

      • initializeResultSet

        private java.sql.ResultSet initializeResultSet()
                                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • executeQuery

        public java.sql.ResultSet executeQuery()
                                        throws java.sql.SQLException
        Specified by:
        executeQuery in interface java.sql.PreparedStatement
        Overrides:
        executeQuery in class UpdatableVTITemplate
        Throws:
        java.sql.SQLException - on unexpected JDBC error
        See Also:
        PreparedStatement
      • getResultSetConcurrency

        public int getResultSetConcurrency()
        Specified by:
        getResultSetConcurrency in interface java.sql.Statement
        Overrides:
        getResultSetConcurrency in class UpdatableVTITemplate
        See Also:
        Statement
      • close

        public void close()
                   throws java.sql.SQLException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.sql.Statement
        Overrides:
        close in class UpdatableVTITemplate
        Throws:
        java.sql.SQLException - on unexpected JDBC error
        See Also:
        Statement