1 | |
package liquibase.statement.core; |
2 | |
|
3 | |
import liquibase.statement.AbstractSqlStatement; |
4 | |
|
5 | |
public class RenameColumnStatement extends AbstractSqlStatement { |
6 | |
|
7 | |
private String schemaName; |
8 | |
private String tableName; |
9 | |
private String oldColumnName; |
10 | |
private String newColumnName; |
11 | |
private String columnDataType; |
12 | |
|
13 | |
public RenameColumnStatement(String schemaName, String tableName, String oldColumnName, String newColumnName, |
14 | 46 | String columnDataType) { |
15 | 46 | this.schemaName = schemaName; |
16 | 46 | this.tableName = tableName; |
17 | 46 | this.oldColumnName = oldColumnName; |
18 | 46 | this.newColumnName = newColumnName; |
19 | 46 | this.columnDataType = columnDataType; |
20 | 46 | } |
21 | |
|
22 | |
public String getSchemaName() { |
23 | 1 | return schemaName; |
24 | |
} |
25 | |
|
26 | |
public void setSchemaName(String schemaName) { |
27 | 0 | this.schemaName = schemaName; |
28 | 0 | } |
29 | |
|
30 | |
public String getTableName() { |
31 | 14 | return tableName; |
32 | |
} |
33 | |
|
34 | |
public void setTableName(String tableName) { |
35 | 0 | this.tableName = tableName; |
36 | 0 | } |
37 | |
|
38 | |
public String getOldColumnName() { |
39 | 14 | return oldColumnName; |
40 | |
} |
41 | |
|
42 | |
public void setOldColumnName(String oldColumnName) { |
43 | 0 | this.oldColumnName = oldColumnName; |
44 | 0 | } |
45 | |
|
46 | |
public String getNewColumnName() { |
47 | 14 | return newColumnName; |
48 | |
} |
49 | |
|
50 | |
public void setNewColumnName(String newColumnName) { |
51 | 0 | this.newColumnName = newColumnName; |
52 | 0 | } |
53 | |
|
54 | |
public String getColumnDataType() { |
55 | 1 | return columnDataType; |
56 | |
} |
57 | |
|
58 | |
public void setColumnDataType(String columnDataType) { |
59 | 0 | this.columnDataType = columnDataType; |
60 | 0 | } |
61 | |
} |