public class Column extends AbstractDatabaseObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Column.AutoIncrementInformation |
LiquibaseSerializable.SerializationTypeGENERIC_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, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefaultpublic Column()
public Column(String columnName)
public Column(Class<? extends Relation> relationType, String catalogName, String schemaName, String tableName, String columnName)
public Column(ColumnConfig columnConfig)
public Relation getRelation()
public DatabaseObject[] getContainingObjects()
public Schema getSchema()
public String getName()
public Column setName(String name)
DatabaseObjectname - 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 shouldValidate()
public Column setShouldValidateNullable(Boolean shouldValidateNullable)
shouldValidateNullable - - if shouldValidateNullable 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 shouldValidateNullable()
public String toString(boolean includeRelation)
public String toString()
toString in class AbstractDatabaseObjectpublic int compareTo(Object other)
compareTo in interface ComparablecompareTo in class AbstractDatabaseObjectpublic 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 LiquibaseSerializableload in class AbstractDatabaseObjectParsedNodeExceptionCopyright © 2019 Liquibase.org. All rights reserved.