Class PrimaryKeyValidator
java.lang.Object
net.sf.jailer.database.PrimaryKeyValidator
Validates all primary keys of a set of tables.
- Author:
- Ralf Wisser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AtomicIntegerprotected AtomicIntegerprotected AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidUpdates the progress bar to reflect the current validation progress.voidvalidatePrimaryKey(Session session, Set<Table> tables, JobManager jobManager) Validates all primary keys of a set of tables.
-
Field Details
-
numErrors
-
numDone
-
numTotal
-
-
Constructor Details
-
PrimaryKeyValidator
Constructor.- Parameters:
cancellationContext- the context used to check for cancellation
-
-
Method Details
-
validatePrimaryKey
public void validatePrimaryKey(Session session, Set<Table> tables, JobManager jobManager) throws SQLException Validates all primary keys of a set of tables.- Parameters:
session- the sessiontables- the tables whose primary keys are to be validatedjobManager- the job manager used to run validation jobs in parallel- Throws:
SQLException- if a primary key is invalid
-
updateProgressBar
protected abstract void updateProgressBar()Updates the progress bar to reflect the current validation progress.
-