Class PrimaryKeyValidator

java.lang.Object
net.sf.jailer.database.PrimaryKeyValidator

public abstract class PrimaryKeyValidator extends Object
Validates all primary keys of a set of tables.
Author:
Ralf Wisser
  • Field Details

  • Constructor Details

    • PrimaryKeyValidator

      public PrimaryKeyValidator(Object cancellationContext)
      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 session
      tables - the tables whose primary keys are to be validated
      jobManager - 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.