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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociatedWith(String item) |
Index |
addColumn(Column column) |
int |
compareTo(Object other) |
boolean |
equals(Object obj) |
Set<String> |
getAssociatedWith() |
String |
getAssociatedWithAsString() |
Boolean |
getClustered() |
String |
getColumnNames() |
List<Column> |
getColumns() |
DatabaseObject[] |
getContainingObjects() |
String |
getName() |
Relation |
getRelation() |
Schema |
getSchema() |
Table |
getTable()
Deprecated.
Use
getRelation() |
String |
getTablespace() |
int |
hashCode() |
boolean |
isAssociatedWith(String keyword) |
Boolean |
isUnique() |
Index |
setClustered(Boolean clustered) |
Index |
setColumns(List<Column> columns) |
Index |
setName(String name)
Sets the name for the database object.
|
Index |
setRelation(Relation relation) |
Index |
setTable(Table table)
Deprecated.
|
Index |
setTablespace(String tablespace) |
Index |
setUnique(Boolean value) |
String |
toString()
(Try to) provide a human-readable name for the index.
|
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, shouldIncludeCatalogInSpecification, snapshotByDefaultpublic 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)
DatabaseObjectname - 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 Boolean getClustered()
public int compareTo(Object other)
compareTo in interface ComparablecompareTo in class AbstractDatabaseObjectpublic String toString()
toString in class AbstractDatabaseObjectCopyright © 2019 Liquibase.org. All rights reserved.