public class CreateSpatialIndexGeneratorOracle extends AbstractCreateSpatialIndexGenerator
CreateSpatialIndexGeneratorOracle
generates the SQL for creating a spatial index in
Oracle.Constructor and Description |
---|
CreateSpatialIndexGeneratorOracle() |
Modifier and Type | Method and Description |
---|---|
protected String |
generateCreateIndexSql(CreateSpatialIndexStatement statement,
Database database)
Generates the SQL for creating the spatial index.
|
protected String |
generateDeleteMetadataSql(CreateSpatialIndexStatement statement,
Database database)
Generates the SQL for deleting any existing record from the
USER_SDO_GEOM_METADATA table. |
protected String |
generateInsertMetadataSql(CreateSpatialIndexStatement statement,
Database database)
Generates the SQL for inserting the necessary record into the
USER_SDO_GEOM_METADATA table. |
Sql[] |
generateSql(CreateSpatialIndexStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain) |
protected String |
getGtype(String ogcGeometryType)
Converts the OGC geometry type to Oracle's
SDO_GTYPE . |
protected Collection<String> |
getParameters(CreateSpatialIndexStatement statement)
Creates the parameters to the spatial index creation statement.
|
boolean |
supports(CreateSpatialIndexStatement statement,
Database database) |
getAffectedIndex, validate
public boolean supports(CreateSpatialIndexStatement statement, Database database)
public Sql[] generateSql(CreateSpatialIndexStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
protected String generateDeleteMetadataSql(CreateSpatialIndexStatement statement, Database database)
USER_SDO_GEOM_METADATA
table. Typically this record shouldn't be present but we
must ensure that it does not already exist.statement
- the create spatial index statement.database
- the database instance.protected String generateInsertMetadataSql(CreateSpatialIndexStatement statement, Database database)
USER_SDO_GEOM_METADATA
table. This record must be present prior to creating the
spatial index.statement
- the create spatial index statement.database
- the database instance.protected String generateCreateIndexSql(CreateSpatialIndexStatement statement, Database database)
statement
- the create spatial index statement.database
- the database instance.protected Collection<String> getParameters(CreateSpatialIndexStatement statement)
statement
- the statement.CREATE INDEX
statement.Copyright © 2014–2015. All rights reserved.