public class Index extends AbstractDatabaseObject
LiquibaseSerializable.SerializationType
Modifier and Type | Field and 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]
|
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
Constructor and Description |
---|
Index() |
Index(String indexName) |
Index(String indexName,
String catalogName,
String schemaName,
String tableName,
Column... columns) |
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefault
public static final String MARK_PRIMARY_KEY
public static final String MARK_FOREIGN_KEY
public static final String MARK_UNIQUE_CONSTRAINT
public Index()
public Index(String indexName)
public DatabaseObject[] getContainingObjects()
public String getName()
public Index setName(String name)
DatabaseObject
name
- the new name for the database objectpublic Schema getSchema()
@Deprecated public Table getTable()
getRelation()
@Deprecated public Index setTable(Table table)
setRelation(Relation)
public Relation getRelation()
public String getTablespace()
public String getColumnNames()
public Boolean isUnique()
public String getAssociatedWithAsString()
public void addAssociatedWith(String item)
public boolean isAssociatedWith(String keyword)
public Object getSerializableFieldValue(String field)
getSerializableFieldValue
in interface LiquibaseSerializable
getSerializableFieldValue
in class AbstractDatabaseObject
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException
load
in interface LiquibaseSerializable
load
in class AbstractDatabaseObject
ParsedNodeException
public Boolean getClustered()
public int compareTo(Object other)
compareTo
in interface Comparable
compareTo
in class AbstractDatabaseObject
public String toString()
toString
in class AbstractDatabaseObject
Copyright © 2023 Liquibase.org. All rights reserved.