use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class SetColumnRemarksChange method validate.
@Override
public ValidationErrors validate(Database database) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.addAll(super.validate(database));
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class InsertOrUpdateGenerator method validate.
@Override
public ValidationErrors validate(InsertOrUpdateStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("tableName", statement.getTableName());
validationErrors.checkRequiredField("columns", statement.getColumnValues());
validationErrors.checkRequiredField("primaryKey", statement.getPrimaryKey());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class MarkChangeSetRanGenerator method validate.
@Override
public ValidationErrors validate(MarkChangeSetRanStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("changeSet", statement.getChangeSet());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class RawSqlGenerator method validate.
@Override
public ValidationErrors validate(RawSqlStatement rawSqlStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("sql", rawSqlStatement.getSql());
return validationErrors;
}
use of liquibase.exception.ValidationErrors in project liquibase by liquibase.
the class SetTableRemarksGenerator method validate.
@Override
public ValidationErrors validate(SetTableRemarksStatement setTableRemarksStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("tableName", setTableRemarksStatement.getTableName());
return validationErrors;
}
Aggregations