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
FieldsModifier and TypeFieldDescriptionstatic final StringMarks Index as associated with Foreign Key [FK]static final StringMarks Index as associated with Primary Key [PK]static final StringMarks Index as associated with Unique Constraint [UC]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 TypeMethodDescriptionvoidaddAssociatedWith(String item) intbooleangetName()getSerializableFieldValue(String field) getTable()Deprecated.getUsing()inthashCode()booleanisAssociatedWith(String keyword) isUnique()voidload(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: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).
-
getSchema
-
getTable
Deprecated.UsegetRelation() -
setTable
Deprecated. -
getRelation
-
setRelation
-
getTablespace
-
setTablespace
-
getColumns
-
getIncludedColumns
-
addColumn
-
setColumns
-
getColumnNames
-
setUnique
-
isUnique
-
getAssociatedWith
-
getAssociatedWithAsString
-
addAssociatedWith
-
isAssociatedWith
-
getSerializableFieldValue
- Specified by:
getSerializableFieldValuein interfaceLiquibaseSerializable- Overrides:
getSerializableFieldValuein classAbstractDatabaseObject
-
load
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException - Specified by:
loadin interfaceLiquibaseSerializable- Overrides:
loadin classAbstractDatabaseObject- Throws:
ParsedNodeException
-
getClustered
-
setClustered
-
getUsing
-
setUsing
-
compareTo
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classAbstractDatabaseObject
-
hashCode
public int hashCode() -
equals
-
toString
(Try to) provide a human-readable name for the index.- Overrides:
toStringin classAbstractDatabaseObject- Returns:
- A (hopefully) human-readable name
-
getRelation()