Package liquibase.structure.core
Class Table
- java.lang.Object
-
- liquibase.structure.AbstractDatabaseObject
-
- liquibase.structure.core.Relation
-
- liquibase.structure.core.Table
-
- All Implemented Interfaces:
Comparable
,LiquibaseSerializable
,DatabaseObject
public class Table extends Relation
-
-
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_PATTERN
-
Fields inherited from interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 tablePrimaryKey
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()
-
Methods inherited from class liquibase.structure.core.Relation
addColumn, compareTo, getColumn, getColumns, getContainingObjects, getName, getRemarks, getSchema, setRemarks, setSchema, setSchema
-
Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
-
-
-
-
Method Detail
-
getPrimaryKey
public PrimaryKey getPrimaryKey()
-
setPrimaryKey
public void setPrimaryKey(PrimaryKey primaryKey)
-
getOutgoingForeignKeys
public List<ForeignKey> getOutgoingForeignKeys()
Returns the list of all outgoing FOREIGN KEYS from this table
-
getIndexes
public List<Index> getIndexes()
- Overrides:
getIndexes
in classRelation
-
getUniqueConstraints
public List<UniqueConstraint> getUniqueConstraints()
- Overrides:
getUniqueConstraints
in classRelation
-
getNotNullConstraints
public List<NotNullConstraint> getNotNullConstraints()
-
toString
public String toString()
- Overrides:
toString
in classAbstractDatabaseObject
-
setName
public Table setName(String name)
Description copied from interface:DatabaseObject
Sets the name for the database object.- Specified by:
setName
in interfaceDatabaseObject
- Overrides:
setName
in classRelation
- 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).
-
getTablespace
public String getTablespace()
-
getDefaultTablespace
public Boolean getDefaultTablespace()
-
isDefaultTablespace
public boolean isDefaultTablespace()
-
-