Package liquibase.structure.core
Class Index
- java.lang.Object
-
- liquibase.structure.AbstractDatabaseObject
-
- liquibase.structure.core.Index
-
- All Implemented Interfaces:
Comparable
,LiquibaseSerializable
,DatabaseObject
public class Index extends AbstractDatabaseObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
LiquibaseSerializable.SerializationType
-
-
Field Summary
Fields Modifier and Type Field Description static String
MARK_FOREIGN_KEY
Marks Index as associated with Foreign Key [FK]static String
MARK_PRIMARY_KEY
Marks Index as associated with Primary Key [PK]static String
MARK_UNIQUE_CONSTRAINT
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
-
-
Method Summary
-
Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
-
-
-
-
Field Detail
-
MARK_PRIMARY_KEY
public static final String MARK_PRIMARY_KEY
Marks Index as associated with Primary Key [PK]- See Also:
- Constant Field Values
-
MARK_FOREIGN_KEY
public static final String MARK_FOREIGN_KEY
Marks Index as associated with Foreign Key [FK]- See Also:
- Constant Field Values
-
MARK_UNIQUE_CONSTRAINT
public static final String MARK_UNIQUE_CONSTRAINT
Marks Index as associated with Unique Constraint [UC]- See Also:
- Constant Field Values
-
-
Method Detail
-
getContainingObjects
public DatabaseObject[] getContainingObjects()
-
getName
public String getName()
-
setName
public Index setName(String name)
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
public Schema getSchema()
-
getTable
@Deprecated public Table getTable()
Deprecated.UsegetRelation()
-
setTable
@Deprecated public Index setTable(Relation table)
Deprecated.
-
getRelation
public Relation getRelation()
-
getTablespace
public String getTablespace()
-
getColumnNames
public String getColumnNames()
-
isUnique
public Boolean isUnique()
-
getAssociatedWithAsString
public String getAssociatedWithAsString()
-
addAssociatedWith
public void addAssociatedWith(String item)
-
isAssociatedWith
public boolean isAssociatedWith(String keyword)
-
getSerializableFieldValue
public Object getSerializableFieldValue(String field)
- 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
public Boolean getClustered()
-
compareTo
public int compareTo(Object other)
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classAbstractDatabaseObject
-
toString
public String toString()
(Try to) provide a human-readable name for the index.- Overrides:
toString
in classAbstractDatabaseObject
- Returns:
- A (hopefully) human-readable name
-
-