Class TestTriggersConstraints.NullTriggerAdapter

    • Constructor Detail

      • NullTriggerAdapter

        public NullTriggerAdapter()
    • Method Detail

      • fire

        public void fire​(java.sql.Connection conn,
                         java.sql.ResultSet oldRow,
                         java.sql.ResultSet newRow)
                  throws java.sql.SQLException
        Description copied from class: TriggerAdapter
        This method is called for each triggered action by the default fire(Connection conn, Object[] oldRow, Object[] newRow) method.

        For "before" triggers, the new values of the new row may be changed using the ResultSet.updateX methods.

        Specified by:
        fire in class TriggerAdapter
        Parameters:
        conn - a connection to the database
        oldRow - the old row, or null if no old row is available (for INSERT)
        newRow - the new row, or null if no new row is available (for DELETE)
        Throws:
        java.sql.SQLException - if the operation must be undone