public class SpatialIndexExistsPrecondition
extends AbstractPrecondition
SpatialIndexExistsPrecondition
determines if a spatial index exists on a specified
table.Constructor and Description |
---|
SpatialIndexExistsPrecondition() |
Modifier and Type | Method and Description |
---|---|
void |
check(Database database,
DatabaseChangeLog changeLog,
ChangeSet changeSet) |
String |
getCatalogName() |
String |
getColumnNames() |
DatabaseObject |
getExample(Database database,
String tableName)
Creates an example of the database object for which to check.
|
protected String |
getHatboxTableName()
Generates the table name containing the Hatbox index.
|
protected Index |
getIndexExample(Database database,
Schema schema,
String tableName)
Generates the
Index example (taken from IndexExistsPrecondition ). |
String |
getIndexName() |
String |
getName() |
String |
getSchemaName() |
Set<String> |
getSerializableFields() |
SerializationType |
getSerializableFieldType(String field) |
Object |
getSerializableFieldValue(String field) |
String |
getSerializedObjectName() |
String |
getSerializedObjectNamespace() |
String |
getTableName() |
void |
load(ParsedNode parsedNode,
ResourceAccessor resourceAccessor) |
ParsedNode |
serialize() |
void |
setCatalogName(String catalogName) |
void |
setColumnNames(String columnNames) |
void |
setIndexName(String indexName) |
void |
setSchemaName(String schemaName) |
void |
setTableName(String tableName) |
ValidationErrors |
validate(Database database) |
Warnings |
warn(Database database) |
public String getCatalogName()
public void setCatalogName(String catalogName)
public String getSchemaName()
public void setSchemaName(String schemaName)
public String getTableName()
public void setTableName(String tableName)
public String getIndexName()
public void setIndexName(String indexName)
public String getColumnNames()
public void setColumnNames(String columnNames)
public String getName()
public Warnings warn(Database database)
public ValidationErrors validate(Database database)
public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet) throws PreconditionFailedException, PreconditionErrorException
PreconditionFailedException
PreconditionErrorException
protected String getHatboxTableName()
public DatabaseObject getExample(Database database, String tableName)
database
- the database instance.tableName
- the table name of the index.protected Index getIndexExample(Database database, Schema schema, String tableName)
Index
example (taken from IndexExistsPrecondition
).database
- the database instance.schema
- the schema instance.tableName
- the table name of the index.public String getSerializedObjectName()
liquibase.serializer.LiquibaseSerializable#getSerializedObjectName()
public Set<String> getSerializableFields()
liquibase.serializer.LiquibaseSerializable#getSerializableFields()
public Object getSerializableFieldValue(String field)
liquibase.serializer.LiquibaseSerializable#getSerializableFieldValue(java.lang.String)
public SerializationType getSerializableFieldType(String field)
liquibase.serializer.LiquibaseSerializable#getSerializableFieldType(java.lang.String)
public String getSerializedObjectNamespace()
liquibase.serializer.LiquibaseSerializable#getSerializedObjectNamespace()
public ParsedNode serialize() throws ParsedNodeException
ParsedNodeException
liquibase.serializer.LiquibaseSerializable#serialize()
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException
ParsedNodeException
liquibase.precondition.Precondition#load(liquibase.parser.core.ParsedNode,
liquibase.resource.ResourceAccessor)
Copyright © 2014–2015. All rights reserved.