Class ChangeTable


  • public class ChangeTable
    extends Object
    A logical representation of a change table containing changes for a given source table. There is usually one change table for each source table. When the schema of the source table is changed, then two change tables could be present.
    Author:
    Jiri Pechanec, Chris Cranford
    • Field Detail

      • captureInstance

        private final String captureInstance
      • sourceTableId

        private final TableId sourceTableId
      • changeTableId

        private final TableId changeTableId
      • changeTableObjectId

        private final int changeTableObjectId
      • sourceTable

        private Table sourceTable
        The table from which the changes are captured
    • Constructor Detail

      • ChangeTable

        public ChangeTable​(String captureInstance,
                           TableId sourceTableId,
                           TableId changeTableId,
                           int changeTableObjectId)
        Creates an object that represents a source table's change table.
        Parameters:
        captureInstance - the logical name of the change capture process
        sourceTableId - the table from which the changes are captured
        changeTableId - the table that contains the changes for the source table
        changeTableObjectId - the numeric identifier for the change table in the source database
    • Method Detail

      • getCaptureInstance

        public String getCaptureInstance()
      • getSourceTableId

        public TableId getSourceTableId()
      • getChangeTableId

        public TableId getChangeTableId()
      • getChangeTableObjectId

        public int getChangeTableObjectId()
      • getSourceTable

        public Table getSourceTable()
      • setSourceTable

        public void setSourceTable​(Table sourceTable)