1 | |
package liquibase.statement.core; |
2 | |
|
3 | |
import liquibase.statement.AbstractSqlStatement; |
4 | |
|
5 | |
public class AddDefaultValueStatement extends AbstractSqlStatement { |
6 | |
private String schemaName; |
7 | |
private String tableName; |
8 | |
private String columnName; |
9 | |
private String columnDataType; |
10 | |
private Object defaultValue; |
11 | |
|
12 | |
public AddDefaultValueStatement(String schemaName, String tableName, String columnName, String columnDataType) { |
13 | 0 | this(schemaName, tableName, columnName, columnDataType, null); |
14 | 0 | } |
15 | |
|
16 | |
public AddDefaultValueStatement(String schemaName, String tableName, String columnName, String columnDataType, |
17 | 57 | Object defaultValue) { |
18 | 57 | this.schemaName = schemaName; |
19 | 57 | this.tableName = tableName; |
20 | 57 | this.columnName = columnName; |
21 | 57 | this.columnDataType = columnDataType; |
22 | 57 | this.defaultValue = defaultValue; |
23 | 57 | } |
24 | |
|
25 | |
public String getColumnName() { |
26 | 23 | return columnName; |
27 | |
} |
28 | |
|
29 | |
public String getColumnDataType() { |
30 | 3 | return columnDataType; |
31 | |
} |
32 | |
|
33 | |
public String getSchemaName() { |
34 | 0 | return schemaName; |
35 | |
} |
36 | |
|
37 | |
public String getTableName() { |
38 | 23 | return tableName; |
39 | |
} |
40 | |
|
41 | |
public Object getDefaultValue() { |
42 | 29 | return defaultValue; |
43 | |
} |
44 | |
} |