public class DropGeometryColumnGeneratorGeoDB
extends DropColumnGenerator
DropGeometryColumnGeneratorGeoDB
is a DropColumnGenerator
that specializes
in GeoDB. If there exists an index on the column, DropSpatialIndex
is invoked first.
If the column to be dropped is the geometry column, the DropGeometryColumn
procedure
is invoked instead of performing the typical ALTER TABLE
statement. Otherwise, the
next SQL generator in the chain is invoked to handle the request.Constructor and Description |
---|
DropGeometryColumnGeneratorGeoDB() |
Modifier and Type | Method and Description |
---|---|
protected void |
dropSpatialIndexIfExists(String catalogName,
String schemaName,
String tableName,
Database database,
List<Sql> list)
Adds the SQL statement to drop the spatial index if it is present.
|
Sql[] |
generateSql(DropColumnStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain) |
int |
getPriority() |
boolean |
supports(DropColumnStatement statement,
Database database) |
ValidationErrors |
validate(DropColumnStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain) |
public boolean supports(DropColumnStatement statement, Database database)
liquibase.sqlgenerator.core.AbstractSqlGenerator#supports(liquibase.statement.SqlStatement,
liquibase.database.Database)
public int getPriority()
liquibase.sqlgenerator.core.AbstractSqlGenerator#getPriority()
public ValidationErrors validate(DropColumnStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
public Sql[] generateSql(DropColumnStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
protected void dropSpatialIndexIfExists(String catalogName, String schemaName, String tableName, Database database, List<Sql> list)
catalogName
- the catalog name.schemaName
- the schema name.tableName
- the table name.database
- the database.list
- the list of SQL statements to execute.Copyright © 2014–2015. All rights reserved.