highfive.commands.Command Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of highfive Show documentation
Show all versions of highfive Show documentation
HighFive reads the data in the tables of a database schema and hashes it all with the aim of comparing it to a destination
database, where this data has been migrated. It only succeeds if all data fields of all data rows
of all (or selected) tables in both schemas produce the exact same SHA-1 hash value. It currently
supports the Oracle, DB2 LUW, PostgreSQL, SQL Server, MySQL and MariaDB databases.
The newest version!
package highfive.commands;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;
import highfive.exceptions.CouldNotHashException;
import highfive.exceptions.InvalidConfigurationException;
import highfive.exceptions.InvalidHashFileException;
import highfive.exceptions.InvalidSchemaException;
import highfive.exceptions.UnsupportedDatabaseTypeException;
public abstract class Command {
private String commandName;
public Command(String commandName) {
this.commandName = commandName;
}
protected String getCommandName() {
return this.commandName;
}
public abstract void run() throws InvalidConfigurationException, SQLException, UnsupportedDatabaseTypeException,
InvalidSchemaException, NoSuchAlgorithmException, CouldNotHashException, IOException, InvalidHashFileException;
}