public class Table extends Relation
LiquibaseSerializable.SerializationType
CURLY_BRACKET_PATTERN
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
Constructor and Description |
---|
Table() |
Table(String catalogName,
String schemaName,
String tableName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Boolean |
getDefaultTablespace() |
List<Index> |
getIndexes() |
List<NotNullConstraint> |
getNotNullConstraints() |
List<ForeignKey> |
getOutgoingForeignKeys()
Returns the list of all outgoing FOREIGN KEYS from this table
|
PrimaryKey |
getPrimaryKey() |
String |
getTablespace() |
List<UniqueConstraint> |
getUniqueConstraints() |
int |
hashCode() |
boolean |
isDefaultTablespace() |
Table |
setDefaultTablespace(Boolean tablespace) |
Table |
setName(String name)
Sets the name for the database object.
|
void |
setPrimaryKey(PrimaryKey primaryKey) |
Table |
setTablespace(String tablespace) |
String |
toString() |
addColumn, compareTo, getColumn, getColumns, getContainingObjects, getName, getRemarks, getSchema, setRemarks, setSchema, setSchema
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
public PrimaryKey getPrimaryKey()
public void setPrimaryKey(PrimaryKey primaryKey)
public List<ForeignKey> getOutgoingForeignKeys()
public List<Index> getIndexes()
getIndexes
in class Relation
public List<UniqueConstraint> getUniqueConstraints()
getUniqueConstraints
in class Relation
public List<NotNullConstraint> getNotNullConstraints()
public String toString()
toString
in class AbstractDatabaseObject
public Table setName(String name)
DatabaseObject
setName
in interface DatabaseObject
setName
in class Relation
name
- the new name for the database objectpublic String getTablespace()
public Boolean getDefaultTablespace()
public boolean isDefaultTablespace()
Copyright © 2023 Liquibase.org. All rights reserved.