Class TableInformation

java.lang.Object
generalDatabase.external.TableInformation

public class TableInformation extends Object
  • Field Details

    • SOURCE_EMPTY

      public static final int SOURCE_EMPTY
      Source table is empty, so nothing to do.
      See Also:
    • DEST_EMPTY

      public static final int DEST_EMPTY
      copy to a table which is either empty or doesn't exist
      See Also:
    • COPY_ADDDATAOVERLAP

      public static final int COPY_ADDDATAOVERLAP
      add data to an existing table that appears to have some data
      See Also:
    • COPY_NO_SRC_ID

      public static final int COPY_NO_SRC_ID
      source table has no Id or UTC column, so probably not PAM data.
      See Also:
    • TABLES_MATCH

      public static final int TABLES_MATCH
      Tables seem to have the same data - same n records, same id's etc.
      See Also:
    • COPY_CONFUSED

      public static final int COPY_CONFUSED
      can't work out what's going on
      See Also:
  • Constructor Details

  • Method Details

    • getCurrentAction

      public String getCurrentAction()
      Returns:
      the currentAction
    • setCurrentAction

      public void setCurrentAction(String currentAction)
      Parameters:
      currentAction - the currentAction to set
    • getSourceRecords

      public Integer getSourceRecords()
      Returns:
      the sourceRecords
    • setSourceRecords

      public void setSourceRecords(Integer sourceRecords)
      Parameters:
      sourceRecords - the sourceRecords to set
    • getDestRecords

      public Integer getDestRecords()
      Returns:
      the destRecords
    • setDestRecords

      public void setDestRecords(Integer destRecords)
      Parameters:
      destRecords - the destRecords to set
    • getDestTableOk

      public Boolean getDestTableOk()
    • setDestTableOk

      public void setDestTableOk(Boolean destTableOk)
    • getDestTableExists

      public boolean getDestTableExists()
    • setDestTableExists

      public void setDestTableExists(Boolean destTableExists)
    • getSourceTableDef

      public CopyTableDefinition getSourceTableDef()
      Returns:
      the tableDef
    • getTableIndex

      public int getTableIndex()
      Returns:
      the tableIndex
    • getWarningLevel

      public int getWarningLevel()
    • getWarnings

      public String getWarnings()
    • getDestTableDef

      public DestinationTableDefinition getDestTableDef()
      Returns:
      the destTableDef
    • setDestTableDef

      public void setDestTableDef(DestinationTableDefinition destTableDef)
      Parameters:
      destTableDef - the destTableDef to set
    • getTableName

      public String getTableName()
      Returns:
      The table name
    • getCopyChoice

      public ImportOption getCopyChoice()
      Returns:
      the copyChoice
    • setCopyChoice

      public void setCopyChoice(ImportOption copyChoice)
      Parameters:
      copyChoice - the copyChoice to set
    • getCopyStatus

      public CopyStatus getCopyStatus()
      Returns:
      the copyStatus
    • setCopyStatus

      public void setCopyStatus(CopyStatus copyStatus)
      Parameters:
      copyStatus - the copyStatus to set
    • setRowsCopied

      public void setRowsCopied(int nRowsCopied)
      Parameters:
      nRowsCopied - the number of rows copied.
    • getRowsCopied

      public int getRowsCopied()
      Returns:
      the rowsCopied
    • setCopyRate

      public void setCopyRate(double rate)
      Set the copy rate (copies per second)
      Parameters:
      rate -
    • getCopyRate

      public double getCopyRate()
      Returns:
      get the copy rate (copies per second)
    • setCopyScenario

      public void setCopyScenario(int copyScenario)
      Possible copy scenarios (add to, etc)
      Parameters:
      copyScenario -
    • getCopyScenario

      public int getCopyScenario()
      Possible copy scenarios (add to, etc)
      Returns:
      the copyScenario
    • setNewRecords

      public void setNewRecords(Integer newRecords)
      Set number of new records - that's records in the source data with a later date than is in the existing dest database.
      Parameters:
      newRecords -
    • getNewRecords

      public int getNewRecords()
      Get number of new records - that's records in the source data with a later date than is in the existing dest database.
      Returns:
      the newRecords