Class TriggerNewTransitionRows

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

    public final class TriggerNewTransitionRows
    extends UpdatableVTITemplate
    Provides information about about a a set of new rows created by a trigger action.

    You can only use this class if no JDBC 2.0 or later calls are made against it.

    • Field Detail

      • resultSet

        private java.sql.ResultSet resultSet
    • Constructor Detail

      • TriggerNewTransitionRows

        public TriggerNewTransitionRows()
                                 throws java.sql.SQLException
        Construct a VTI on the trigger's new row set. The new row set is the after image of the rows that are changed by the trigger. For a trigger on a delete, this throws an exception. For a trigger on an update, this is the rows after they are updated. For an insert, this is the rows that are inserted.
        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
      • getMetaData

        public java.sql.ResultSetMetaData getMetaData()
                                               throws java.sql.SQLException
        Specified by:
        getMetaData in interface java.sql.PreparedStatement
        Overrides:
        getMetaData in class UpdatableVTITemplate
        Throws:
        java.sql.SQLException - on unexpected JDBC error
        See Also:
        PreparedStatement
      • 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