liquibase.structure.core
Class Index

java.lang.Object
  extended by liquibase.structure.AbstractDatabaseObject
      extended by 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
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 interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
 
Constructor Summary
Index()
           
Index(String indexName)
           
Index(String indexName, String catalogName, String schemaName, String tableName, String... columns)
           
 
Method Summary
 void addAssociatedWith(String item)
           
 Index addColumn(String column)
           
 int compareTo(Object other)
           
 boolean equals(Object obj)
           
 Set<String> getAssociatedWith()
           
 String getAssociatedWithAsString()
           
 String getColumnNames()
           
 List<String> getColumns()
           
 DatabaseObject[] getContainingObjects()
           
 String getName()
           
 Schema getSchema()
           
 Table getTable()
           
 String getTablespace()
           
 int hashCode()
           
 boolean isAssociatedWith(String keyword)
           
 Boolean isUnique()
           
 Index setColumns(String columns)
           
 Index setName(String name)
           
 Index setTable(Table table)
           
 Index setTablespace(String tablespace)
           
 Index setUnique(Boolean value)
           
 String toString()
           
 
Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, snapshotByDefault
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

Index

public Index()

Index

public Index(String indexName)

Index

public Index(String indexName,
             String catalogName,
             String schemaName,
             String tableName,
             String... columns)
Method Detail

getContainingObjects

public DatabaseObject[] getContainingObjects()

getName

public String getName()

setName

public Index setName(String name)

getSchema

public Schema getSchema()

getTable

public Table getTable()

setTable

public Index setTable(Table table)

getTablespace

public String getTablespace()

setTablespace

public Index setTablespace(String tablespace)

getColumns

public List<String> getColumns()

addColumn

public Index addColumn(String column)

setColumns

public Index setColumns(String columns)

getColumnNames

public String getColumnNames()

setUnique

public Index setUnique(Boolean value)

isUnique

public Boolean isUnique()

getAssociatedWith

public Set<String> getAssociatedWith()

getAssociatedWithAsString

public String getAssociatedWithAsString()

addAssociatedWith

public void addAssociatedWith(String item)

isAssociatedWith

public boolean isAssociatedWith(String keyword)

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class AbstractDatabaseObject

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class AbstractDatabaseObject


Copyright © 2014 Liquibase.org. All Rights Reserved.