Package highfive.commands
Class DataSourceCommand
- java.lang.Object
-
- highfive.commands.Command
-
- highfive.commands.DataSourceCommand
-
- Direct Known Subclasses:
DualDataSourceCommand,GenericHashCommand,ListColumnsAndCheckCommand,ListTablesAndCheckCommand
public abstract class DataSourceCommand extends Command
-
-
Field Summary
Fields Modifier and Type Field Description protected static DecimalFormatDFprotected DataSourceds
-
Constructor Summary
Constructors Constructor Description DataSourceCommand(String commandName, String datasourceName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckIfHashingAndCopyingIsSupported(List<Table> tables)protected voiddisplayRowCount(List<Table> tables)abstract voidexecute()voidrun()-
Methods inherited from class highfive.commands.Command
error, error, getCommandName, info
-
-
-
-
Field Detail
-
ds
protected DataSource ds
-
DF
protected static final DecimalFormat DF
-
-
Constructor Detail
-
DataSourceCommand
public DataSourceCommand(String commandName, String datasourceName) throws InvalidConfigurationException, SQLException, UnsupportedDatabaseTypeException
-
-
Method Detail
-
run
public void run() throws SQLException, UnsupportedDatabaseTypeException, InvalidSchemaException, NoSuchAlgorithmException, CouldNotHashException, IOException, InvalidHashFileException, CouldNotCopyDataException, InvalidConfigurationException
-
execute
public abstract void execute() throws SQLException, UnsupportedDatabaseTypeException, InvalidSchemaException, NoSuchAlgorithmException, CouldNotHashException, IOException, InvalidHashFileException, CouldNotCopyDataException, InvalidConfigurationException
-
displayRowCount
protected void displayRowCount(List<Table> tables) throws SQLException
- Throws:
SQLException
-
checkIfHashingAndCopyingIsSupported
protected void checkIfHashingAndCopyingIsSupported(List<Table> tables) throws SQLException, UnsupportedDatabaseTypeException, InvalidConfigurationException
-
-