01: package liquibase.change;
02:
03: /**
04: * This class is resposible for holding the information about all the
05: * constraints imposed on the column.
06: */
07: public class ConstraintsConfig {
08:
09: private Boolean nullable;
10: private Boolean primaryKey;
11: private String references;
12: private Boolean unique;
13: private String uniqueConstraintName;
14: private String check;
15: private Boolean deleteCascade;
16: private String foreignKeyName;
17: private Boolean initiallyDeferred;
18: private Boolean deferrable;
19:
20: public Boolean isNullable() {
21: return nullable;
22: }
23:
24: public void setNullable(Boolean nullable) {
25: this .nullable = nullable;
26: }
27:
28: public Boolean isPrimaryKey() {
29: return primaryKey;
30: }
31:
32: public void setPrimaryKey(Boolean primaryKey) {
33: this .primaryKey = primaryKey;
34: }
35:
36: public String getReferences() {
37: return references;
38: }
39:
40: public void setReferences(String references) {
41: this .references = references;
42: }
43:
44: public Boolean isUnique() {
45: return unique;
46: }
47:
48: public void setUnique(Boolean unique) {
49: this .unique = unique;
50: }
51:
52: public String getUniqueConstraintName() {
53: return uniqueConstraintName;
54: }
55:
56: public void setUniqueConstraintName(String uniqueConstraintName) {
57: this .uniqueConstraintName = uniqueConstraintName;
58: }
59:
60: public String getCheck() {
61: return check;
62: }
63:
64: public void setCheck(String check) {
65: this .check = check;
66: }
67:
68: public Boolean isDeleteCascade() {
69: return deleteCascade;
70: }
71:
72: public void setDeleteCascade(Boolean deleteCascade) {
73: this .deleteCascade = deleteCascade;
74: }
75:
76: public String getForeignKeyName() {
77: return foreignKeyName;
78: }
79:
80: public void setForeignKeyName(String foreignKeyName) {
81: this .foreignKeyName = foreignKeyName;
82: }
83:
84: public Boolean isInitiallyDeferred() {
85: return initiallyDeferred;
86: }
87:
88: public void setInitiallyDeferred(Boolean initiallyDeferred) {
89: this .initiallyDeferred = initiallyDeferred;
90: }
91:
92: public Boolean isDeferrable() {
93: return deferrable;
94: }
95:
96: public void setDeferrable(Boolean deferrable) {
97: this.deferrable = deferrable;
98: }
99: }
|