| 1 | |
package liquibase.statement.core; |
| 2 | |
|
| 3 | |
import liquibase.statement.AbstractSqlStatement; |
| 4 | |
|
| 5 | |
public class AddUniqueConstraintStatement extends AbstractSqlStatement { |
| 6 | |
|
| 7 | |
private String schemaName; |
| 8 | |
private String tableName; |
| 9 | |
private String columnNames; |
| 10 | |
private String constraintName; |
| 11 | |
private String tablespace; |
| 12 | |
|
| 13 | |
private boolean deferrable; |
| 14 | |
private boolean initiallyDeferred; |
| 15 | |
private boolean disabled; |
| 16 | |
|
| 17 | 106 | public AddUniqueConstraintStatement(String schemaName, String tableName, String columnNames, String constraintName) { |
| 18 | 106 | this.schemaName = schemaName; |
| 19 | 106 | this.tableName = tableName; |
| 20 | 106 | this.columnNames = columnNames; |
| 21 | 106 | this.constraintName = constraintName; |
| 22 | 106 | } |
| 23 | |
|
| 24 | |
public String getSchemaName() { |
| 25 | 0 | return schemaName; |
| 26 | |
} |
| 27 | |
|
| 28 | |
public String getTableName() { |
| 29 | 30 | return tableName; |
| 30 | |
} |
| 31 | |
|
| 32 | |
public String getColumnNames() { |
| 33 | 30 | return columnNames; |
| 34 | |
} |
| 35 | |
|
| 36 | |
public String getConstraintName() { |
| 37 | 0 | return constraintName; |
| 38 | |
} |
| 39 | |
|
| 40 | |
public String getTablespace() { |
| 41 | 0 | return tablespace; |
| 42 | |
} |
| 43 | |
|
| 44 | |
public AddUniqueConstraintStatement setTablespace(String tablespace) { |
| 45 | 45 | this.tablespace = tablespace; |
| 46 | 45 | return this; |
| 47 | |
} |
| 48 | |
|
| 49 | |
public boolean isDeferrable() { |
| 50 | 0 | return deferrable; |
| 51 | |
} |
| 52 | |
|
| 53 | |
public AddUniqueConstraintStatement setDeferrable(boolean deferrable) { |
| 54 | 45 | this.deferrable = deferrable; |
| 55 | 45 | return this; |
| 56 | |
} |
| 57 | |
|
| 58 | |
public boolean isInitiallyDeferred() { |
| 59 | 0 | return initiallyDeferred; |
| 60 | |
} |
| 61 | |
|
| 62 | |
public AddUniqueConstraintStatement setInitiallyDeferred(boolean initiallyDeferred) { |
| 63 | 45 | this.initiallyDeferred = initiallyDeferred; |
| 64 | 45 | return this; |
| 65 | |
} |
| 66 | |
|
| 67 | |
public AddUniqueConstraintStatement setDisabled(boolean disabled) { |
| 68 | 45 | this.disabled = disabled; |
| 69 | 45 | return this; |
| 70 | |
} |
| 71 | |
|
| 72 | |
public boolean isDisabled() { |
| 73 | 0 | return disabled; |
| 74 | |
} |
| 75 | |
|
| 76 | |
} |