| 1 | |
package liquibase.statement.core; |
| 2 | |
|
| 3 | |
import liquibase.statement.AbstractSqlStatement; |
| 4 | |
|
| 5 | |
public class DropUniqueConstraintStatement extends AbstractSqlStatement { |
| 6 | |
|
| 7 | |
private String schemaName; |
| 8 | |
private String tableName; |
| 9 | |
private String constraintName; |
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
private String uniqueColumns; |
| 14 | |
|
| 15 | 47 | public DropUniqueConstraintStatement(String schemaName, String tableName, String constraintName) { |
| 16 | 47 | this.schemaName = schemaName; |
| 17 | 47 | this.tableName = tableName; |
| 18 | 47 | this.constraintName = constraintName; |
| 19 | 47 | } |
| 20 | |
|
| 21 | |
public DropUniqueConstraintStatement(String schemaName, String tableName, String constraintName, |
| 22 | 0 | String uniqueColumns) { |
| 23 | 0 | this.schemaName = schemaName; |
| 24 | 0 | this.tableName = tableName; |
| 25 | 0 | this.constraintName = constraintName; |
| 26 | 0 | this.uniqueColumns = uniqueColumns; |
| 27 | 0 | } |
| 28 | |
|
| 29 | |
public String getSchemaName() { |
| 30 | 1 | return schemaName; |
| 31 | |
} |
| 32 | |
|
| 33 | |
public String getTableName() { |
| 34 | 16 | return tableName; |
| 35 | |
} |
| 36 | |
|
| 37 | |
public String getConstraintName() { |
| 38 | 1 | return constraintName; |
| 39 | |
} |
| 40 | |
|
| 41 | |
public String getUniqueColumns() { |
| 42 | 0 | return uniqueColumns; |
| 43 | |
} |
| 44 | |
|
| 45 | |
public void setUniqueColumns(String uniqueColumns) { |
| 46 | 3 | this.uniqueColumns = uniqueColumns; |
| 47 | 3 | } |
| 48 | |
|
| 49 | |
} |