liquibase.statement.core.AddDefaultValueStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.statement.core;
import liquibase.statement.AbstractSqlStatement;
public class AddDefaultValueStatement extends AbstractSqlStatement {
private final String catalogName;
private final String schemaName;
private final String tableName;
private final String columnName;
private final String columnDataType;
private final Object defaultValue;
private String defaultValueConstraintName;
public AddDefaultValueStatement(String catalogName, String schemaName, String tableName, String columnName, String columnDataType) {
this(catalogName, schemaName, tableName, columnName, columnDataType, null);
}
public AddDefaultValueStatement(String catalogName, String schemaName, String tableName, String columnName, String columnDataType, Object defaultValue) {
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this.columnName = columnName;
this.columnDataType = columnDataType;
this.defaultValue = defaultValue;
}
public String getColumnName() {
return columnName;
}
public String getColumnDataType() {
return columnDataType;
}
public String getCatalogName() {
return catalogName;
}
public String getSchemaName() {
return schemaName;
}
public String getTableName() {
return tableName;
}
public Object getDefaultValue() {
return defaultValue;
}
public String getDefaultValueConstraintName() {
return defaultValueConstraintName;
}
public void setDefaultValueConstraintName(String defaultValueConstraintName) {
this.defaultValueConstraintName = defaultValueConstraintName;
}
}