1 | |
package liquibase.precondition; |
2 | |
|
3 | |
import liquibase.changelog.DatabaseChangeLog; |
4 | |
import liquibase.changelog.ChangeSet; |
5 | |
import liquibase.database.Database; |
6 | |
import liquibase.exception.PreconditionErrorException; |
7 | |
import liquibase.exception.PreconditionFailedException; |
8 | |
import liquibase.exception.ValidationErrors; |
9 | |
import liquibase.exception.Warnings; |
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
public interface Precondition { |
15 | |
public String getName(); |
16 | |
|
17 | |
public Warnings warn(Database database); |
18 | |
|
19 | |
public ValidationErrors validate(Database database); |
20 | |
|
21 | |
public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet) |
22 | |
throws PreconditionFailedException, PreconditionErrorException; |
23 | |
|
24 | |
} |