public class Column extends AbstractDatabaseObject
Modifier and Type | Class and Description |
---|---|
static class |
Column.AutoIncrementInformation |
LiquibaseSerializable.SerializationType
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
Constructor and Description |
---|
Column() |
Column(Class<? extends Relation> relationType,
String catalogName,
String schemaName,
String tableName,
String columnName) |
Column(ColumnConfig columnConfig) |
Column(String columnName) |
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
public Column()
public Column(String columnName)
public Column(Class<? extends Relation> relationType, String catalogName, String schemaName, String tableName, String columnName)
public Column(ColumnConfig columnConfig)
public boolean isForIndex()
public void setForIndex(boolean forIndex)
public Relation getRelation()
public DatabaseObject[] getContainingObjects()
public Schema getSchema()
public String getName()
public Column setName(String name)
DatabaseObject
name
- the new name for the database objectpublic Boolean getComputed()
public Boolean isNullable()
public DataType getType()
public Object getDefaultValue()
public String getDefaultValueConstraintName()
public Column setDefaultValueConstraintName(String defaultValueConstraintName)
public boolean isAutoIncrement()
public Column.AutoIncrementInformation getAutoIncrementInformation()
public void setAutoIncrementInformation(Column.AutoIncrementInformation autoIncrementInformation)
public Boolean getDescending()
public boolean getValidate()
public Column setValidateNullable(Boolean validateNullable)
validateNullable
- - if validateNullable is set to FALSE then the constraint will be created
with the 'ENABLE NOVALIDATE' mode. This means the constraint would be created, but that no
check will be done to ensure old data has valid not null constraint - only new data would be checked
to see if it complies with the constraint logic. The default state for not null constraint is to
have 'ENABLE VALIDATE' set.public boolean getValidateNullable()
public String toString(boolean includeRelation)
public String toString()
toString
in class AbstractDatabaseObject
public int compareTo(Object other)
compareTo
in interface Comparable
compareTo
in class AbstractDatabaseObject
public boolean isDataTypeDifferent(Column otherColumn)
public boolean isNullabilityDifferent(Column otherColumn)
public boolean isDifferent(Column otherColumn)
public boolean isCertainDataType()
public Column setCertainDataType(boolean certainDataType)
public String getRemarks()
public Integer getOrder()
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException
load
in interface LiquibaseSerializable
load
in class AbstractDatabaseObject
ParsedNodeException
public Set<String> getSerializableFields()
getSerializableFields
in interface LiquibaseSerializable
getSerializableFields
in class AbstractDatabaseObject
Copyright © 2023 Liquibase.org. All rights reserved.