use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class InsertSetGenerator method validate.
@Override
public ValidationErrors validate(InsertSetStatement insertStatementSet, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("tableName", insertStatementSet.peek().getTableName());
validationErrors.checkRequiredField("columns", insertStatementSet.peek().getColumnValues());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class ModifyDataTypeGenerator method validate.
@Override
public ValidationErrors validate(ModifyDataTypeStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("tableName", statement.getTableName());
validationErrors.checkRequiredField("columnName", statement.getColumnName());
validationErrors.checkRequiredField("newDataType", statement.getNewDataType());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class DropUniqueConstraintGenerator method validate.
@Override
public ValidationErrors validate(DropUniqueConstraintStatement dropUniqueConstraintStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("tableName", dropUniqueConstraintStatement.getTableName());
validationErrors.checkRequiredField("constraintName", dropUniqueConstraintStatement.getConstraintName());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class FindForeignKeyConstraintsGeneratorFirebird method validate.
@Override
public ValidationErrors validate(FindForeignKeyConstraintsStatement findForeignKeyConstraintsStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("baseTableName", findForeignKeyConstraintsStatement.getBaseTableName());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class DropProcedureGenerator method validate.
@Override
public ValidationErrors validate(DropProcedureStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("procedureName", statement.getProcedureName());
return validationErrors;
}
Aggregations