Class DatabaseConnection.OldAndNewInternalTableInfo

  • All Implemented Interfaces:
    InternalTableInfo
    Enclosing class:
    DatabaseConnection

    private class DatabaseConnection.OldAndNewInternalTableInfo
    extends java.lang.Object
    implements InternalTableInfo
    An internal table info object that handles OLD and NEW tables for triggered actions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsTableName​(TableName name)
      Returns true if this container contains a table with the given name.
      MutableTableDataSource createInternalTable​(int index)
      This is the factory method for generating the internal table for the given table in this container.
      int findTableName​(TableName name)
      Finds the index in this container of the given table name, otherwise returns -1.
      DataTableDef getDataTableDef​(int i)
      Returns the DataTableDef object that describes the table at the given index in this container.
      int getTableCount()
      Returns the number of internal table sources that this object is maintaining.
      TableName getTableName​(int i)
      Returns the name of the table at the given index in this container.
      java.lang.String getTableType​(int i)
      Returns a String that describes the type of the table at the given index.
      private boolean hasNEWTable()  
      private boolean hasOLDTable()  
      • Methods inherited from class java.lang.Object

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

      • OldAndNewInternalTableInfo

        private OldAndNewInternalTableInfo()
    • Method Detail

      • hasOLDTable

        private boolean hasOLDTable()
      • hasNEWTable

        private boolean hasNEWTable()
      • getTableCount

        public int getTableCount()
        Description copied from interface: InternalTableInfo
        Returns the number of internal table sources that this object is maintaining.
        Specified by:
        getTableCount in interface InternalTableInfo
      • getTableType

        public java.lang.String getTableType​(int i)
        Description copied from interface: InternalTableInfo
        Returns a String that describes the type of the table at the given index.
        Specified by:
        getTableType in interface InternalTableInfo
      • createInternalTable

        public MutableTableDataSource createInternalTable​(int index)
        Description copied from interface: InternalTableInfo
        This is the factory method for generating the internal table for the given table in this container. This should return an implementation of MutableTableDataSource that is used to represent the internal data being modelled.

        This method is allowed to throw an exception for table objects that aren't backed by a MutableTableDataSource, such as a view.

        Specified by:
        createInternalTable in interface InternalTableInfo