1 | |
package liquibase.sql.visitor; |
2 | |
|
3 | |
import liquibase.change.CheckSum; |
4 | |
import liquibase.database.Database; |
5 | |
import liquibase.serializer.core.string.StringChangeLogSerializer; |
6 | |
|
7 | |
import java.util.Collection; |
8 | |
import java.util.Set; |
9 | |
|
10 | 0 | public abstract class AbstractSqlVisitor implements SqlVisitor { |
11 | |
private Set<String> applicableDbms; |
12 | |
private boolean applyToRollback; |
13 | |
private Set<String> contexts; |
14 | |
|
15 | |
public Set<String> getApplicableDbms() { |
16 | 0 | return applicableDbms; |
17 | |
} |
18 | |
|
19 | |
public void setApplicableDbms(Set<String> applicableDbms) { |
20 | 0 | this.applicableDbms = applicableDbms; |
21 | 0 | } |
22 | |
|
23 | |
public boolean isApplyToRollback() { |
24 | 0 | return applyToRollback; |
25 | |
} |
26 | |
|
27 | |
public void setApplyToRollback(boolean applyToRollback) { |
28 | 0 | this.applyToRollback = applyToRollback; |
29 | 0 | } |
30 | |
|
31 | |
public Set<String> getContexts() { |
32 | 0 | return contexts; |
33 | |
} |
34 | |
|
35 | |
public void setContexts(Set<String> contexts) { |
36 | 0 | this.contexts = contexts; |
37 | 0 | } |
38 | |
|
39 | |
public CheckSum generateCheckSum() { |
40 | 0 | return CheckSum.compute(new StringChangeLogSerializer().serialize(this)); |
41 | |
} |
42 | |
|
43 | |
} |