Package generalDatabase.external
Class TableInformation
java.lang.Object
generalDatabase.external.TableInformation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
add data to an existing table that appears to have some datastatic final int
can't work out what's going onstatic final int
source table has no Id or UTC column, so probably not PAM data.static final int
copy to a table which is either empty or doesn't existstatic final int
Source table is empty, so nothing to do.static final int
Tables seem to have the same data - same n records, same id's etc. -
Constructor Summary
ConstructorDescriptionTableInformation
(int tableIndex, CopyTableDefinition sourceTableDef, DestinationTableDefinition destTableDef) -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
Possible copy scenarios (add to, etc)boolean
int
Get number of new records - that's records in the source data with a later date than is in the existing dest database.int
int
int
void
setCopyChoice
(ImportOption copyChoice) void
setCopyRate
(double rate) Set the copy rate (copies per second)void
setCopyScenario
(int copyScenario) Possible copy scenarios (add to, etc)void
setCopyStatus
(CopyStatus copyStatus) void
setCurrentAction
(String currentAction) void
setDestRecords
(Integer destRecords) void
setDestTableDef
(DestinationTableDefinition destTableDef) void
setDestTableExists
(Boolean destTableExists) void
setDestTableOk
(Boolean destTableOk) 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.void
setRowsCopied
(int nRowsCopied) void
setSourceRecords
(Integer sourceRecords)
-
Field Details
-
SOURCE_EMPTY
public static final int SOURCE_EMPTYSource table is empty, so nothing to do.- See Also:
-
DEST_EMPTY
public static final int DEST_EMPTYcopy to a table which is either empty or doesn't exist- See Also:
-
COPY_ADDDATAOVERLAP
public static final int COPY_ADDDATAOVERLAPadd data to an existing table that appears to have some data- See Also:
-
COPY_NO_SRC_ID
public static final int COPY_NO_SRC_IDsource table has no Id or UTC column, so probably not PAM data.- See Also:
-
TABLES_MATCH
public static final int TABLES_MATCHTables seem to have the same data - same n records, same id's etc.- See Also:
-
COPY_CONFUSED
public static final int COPY_CONFUSEDcan't work out what's going on- See Also:
-
-
Constructor Details
-
TableInformation
public TableInformation(int tableIndex, CopyTableDefinition sourceTableDef, DestinationTableDefinition destTableDef)
-
-
Method Details
-
getCurrentAction
- Returns:
- the currentAction
-
setCurrentAction
- Parameters:
currentAction
- the currentAction to set
-
getSourceRecords
- Returns:
- the sourceRecords
-
setSourceRecords
- Parameters:
sourceRecords
- the sourceRecords to set
-
getDestRecords
- Returns:
- the destRecords
-
setDestRecords
- Parameters:
destRecords
- the destRecords to set
-
getDestTableOk
-
setDestTableOk
-
getDestTableExists
public boolean getDestTableExists() -
setDestTableExists
-
getSourceTableDef
- Returns:
- the tableDef
-
getTableIndex
public int getTableIndex()- Returns:
- the tableIndex
-
getWarningLevel
public int getWarningLevel() -
getWarnings
-
getDestTableDef
- Returns:
- the destTableDef
-
setDestTableDef
- Parameters:
destTableDef
- the destTableDef to set
-
getTableName
- Returns:
- The table name
-
getCopyChoice
- Returns:
- the copyChoice
-
setCopyChoice
- Parameters:
copyChoice
- the copyChoice to set
-
getCopyStatus
- Returns:
- the copyStatus
-
setCopyStatus
- 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
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
-