Package liquibase.structure.core
Class Relation
java.lang.Object
liquibase.structure.AbstractDatabaseObject
liquibase.structure.core.Relation
- All Implemented Interfaces:
Comparable,LiquibaseSerializable,DatabaseObject
A container of columns. Usually a table or view.
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
LiquibaseSerializable.SerializationType -
Field Summary
Fields inherited from class liquibase.structure.AbstractDatabaseObject
CURLY_BRACKET_PATTERNFields inherited from interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the column object for the given columnName.getName()Sets the name for the database object.setRemarks(String remarks) Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault, toString
-
Constructor Details
-
Relation
protected Relation()
-
-
Method Details
-
getName
-
setName
Description copied from interface:DatabaseObjectSets the name for the database object.- Parameters:
name- the new name for the database object- Returns:
- a reference to the same object (implementing classes are expected to return a reference to the same object).
-
getIndexes
-
getUniqueConstraints
-
getContainingObjects
-
getRemarks
-
setRemarks
-
getColumns
-
addColumn
-
getColumn
Returns the column object for the given columnName. If the column does not exist in this table, return null. -
getSchema
- Returns:
- Returns the schema.
-
setSchema
- Parameters:
schema- The schema to set.
-
setSchema
-
compareTo
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classAbstractDatabaseObject
-