Class DatabaseConnection.OldNewTableState

  • Enclosing class:
    DatabaseConnection

    static class DatabaseConnection.OldNewTableState
    extends java.lang.Object
    An object that stores state about the trigger table OLD and NEW when the connection is set up to execute a stored procedure.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean mutable_NEW
      If true then the 'new_data' information is mutable which would be true for a BEFORE trigger.
      (package private) DataTable NEW_data_table
      The DataTable object that represents the NEW table, if set.
      (package private) RowData NEW_row_data
      The RowData of the new data that is being inserted/updated in the trigger source table.
      (package private) DataTable OLD_data_table
      The DataTable object that represents the OLD table, if set.
      (package private) int OLD_row_index
      The row index of the OLD data that is being updated or deleted in the trigger source table.
      (package private) TableName trigger_source
      The name of the table that is the trigger source.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • trigger_source

        TableName trigger_source
        The name of the table that is the trigger source.
      • OLD_row_index

        int OLD_row_index
        The row index of the OLD data that is being updated or deleted in the trigger source table.
      • NEW_row_data

        RowData NEW_row_data
        The RowData of the new data that is being inserted/updated in the trigger source table.
      • mutable_NEW

        boolean mutable_NEW
        If true then the 'new_data' information is mutable which would be true for a BEFORE trigger. For example, we would want to change the data in the row that caused the trigger to fire.
      • OLD_data_table

        DataTable OLD_data_table
        The DataTable object that represents the OLD table, if set.
      • NEW_data_table

        DataTable NEW_data_table
        The DataTable object that represents the NEW table, if set.
    • Constructor Detail

      • OldNewTableState

        OldNewTableState​(TableName table_source,
                         int old_d,
                         RowData new_d,
                         boolean is_mutable)
        Constructor.
      • OldNewTableState

        OldNewTableState()
        Default constructor.