Package liquibase.structure.core
Class Index
java.lang.Object
liquibase.structure.AbstractDatabaseObject
liquibase.structure.core.Index
- All Implemented Interfaces:
Comparable
,LiquibaseSerializable
,DatabaseObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
LiquibaseSerializable.SerializationType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Marks Index as associated with Foreign Key [FK]static final String
Marks Index as associated with Primary Key [PK]static final String
Marks Index as associated with Unique Constraint [UC]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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssociatedWith
(String item) int
boolean
getName()
getSerializableFieldValue
(String field) getTable()
Deprecated.int
hashCode()
boolean
isAssociatedWith
(String keyword) isUnique()
void
load
(ParsedNode parsedNode, ResourceAccessor resourceAccessor) setClustered
(Boolean clustered) setColumns
(List<Column> columns) Sets the name for the database object.setRelation
(Relation relation) Deprecated.setTablespace
(String tablespace) toString()
(Try to) provide a human-readable name for the index.Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
-
Field Details
-
MARK_PRIMARY_KEY
Marks Index as associated with Primary Key [PK]- See Also:
-
MARK_FOREIGN_KEY
Marks Index as associated with Foreign Key [FK]- See Also:
-
MARK_UNIQUE_CONSTRAINT
Marks Index as associated with Unique Constraint [UC]- See Also:
-
-
Constructor Details
-
Index
public Index() -
Index
-
Index
-
-
Method Details
-
getContainingObjects
-
getName
-
setName
Description copied from interface:DatabaseObject
Sets 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).
-
getSchema
-
getTable
Deprecated.UsegetRelation()
-
setTable
Deprecated. -
getRelation
-
setRelation
-
getTablespace
-
setTablespace
-
getColumns
-
getIncludedColumns
-
addColumn
-
setColumns
-
getColumnNames
-
setUnique
-
isUnique
-
getAssociatedWith
-
getAssociatedWithAsString
-
addAssociatedWith
-
isAssociatedWith
-
getSerializableFieldValue
- Specified by:
getSerializableFieldValue
in interfaceLiquibaseSerializable
- Overrides:
getSerializableFieldValue
in classAbstractDatabaseObject
-
load
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException - Specified by:
load
in interfaceLiquibaseSerializable
- Overrides:
load
in classAbstractDatabaseObject
- Throws:
ParsedNodeException
-
getClustered
-
setClustered
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classAbstractDatabaseObject
-
hashCode
public int hashCode() -
equals
-
toString
(Try to) provide a human-readable name for the index.- Overrides:
toString
in classAbstractDatabaseObject
- Returns:
- A (hopefully) human-readable name
-
getRelation()