liquibase.statement.core.SetColumnRemarksStatement 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;
import liquibase.util.ColumnParentType;
public class SetColumnRemarksStatement extends AbstractSqlStatement {
private final String catalogName;
private final String schemaName;
private final String tableName;
private final String columnName;
private final String remarks;
private final String columnDataType;
private String columnParentType;
public SetColumnRemarksStatement(String catalogName, String schemaName, String tableName, String columnName, String remarks) {
this(catalogName, schemaName, tableName, columnName, remarks, null);
}
public SetColumnRemarksStatement(String catalogName,
String schemaName,
String tableName,
String columnName,
String remarks,
String columnDataType) {
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this.columnName = columnName;
this.remarks = remarks;
this.columnDataType = columnDataType;
}
public SetColumnRemarksStatement(String catalogName,
String schemaName,
String tableName,
String columnName,
String remarks,
String columnDataType,
String columnParentType) {
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this.columnName = columnName;
this.remarks = remarks;
this.columnDataType = columnDataType;
this.columnParentType = columnParentType;
}
public String getColumnDataType() {
return columnDataType;
}
public String getCatalogName() {
return catalogName;
}
public String getSchemaName() {
return schemaName;
}
public String getTableName() {
return tableName;
}
public String getColumnName() {
return columnName;
}
public String getRemarks() {
return remarks;
}
public ColumnParentType getColumnParentType() {
return columnParentType != null ? ColumnParentType.valueOf(columnParentType) : null;
}
}