Class UtilAdapter
- java.lang.Object
-
- org.citydb.database.adapter.AbstractUtilAdapter
-
- org.citydb.database.adapter.oracle.UtilAdapter
-
public class UtilAdapter extends AbstractUtilAdapter
-
-
Field Summary
-
Fields inherited from class org.citydb.database.adapter.AbstractUtilAdapter
databaseAdapter, interruptableCallableStatement, interruptablePreparedStatement, isInterrupted, srsInfoMap
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UtilAdapter(AbstractDatabaseAdapter databaseAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BoundingBox
calcBoundingBox(java.lang.String schema, java.util.List<java.lang.Integer> objectClassIds, java.sql.Connection connection)
void
changeSrs(DatabaseSrs srs, boolean doTransform, java.lang.String schema, java.sql.Connection connection)
protected int
cleanupGlobalAppearances(java.lang.String schema, java.sql.Connection connection)
protected boolean
containsGlobalAppearances(java.sql.Connection connection)
protected BoundingBox
createBoundingBoxes(java.util.List<java.lang.Integer> objectClassIds, boolean onlyIfNull, java.sql.Connection connection)
protected java.lang.String[]
createDatabaseReport(java.lang.String schema, java.sql.Connection connection)
protected int
get2DSrid(DatabaseSrs srs, java.sql.Connection connection)
protected void
getCityDBVersion(DatabaseMetaData metaData, java.lang.String schema, java.sql.Connection connection)
protected void
getDatabaseMetaData(DatabaseMetaData metaData, java.lang.String schema, java.sql.Connection connection)
protected void
getSrsInfo(DatabaseSrs srs, java.sql.Connection connection)
DatabaseSrs
getWGS843D()
protected IndexStatusInfo
manageIndexes(java.lang.String operation, IndexStatusInfo.IndexType type, java.lang.String schema, java.sql.Connection connection)
protected GeometryObject
transform(GeometryObject geometry, DatabaseSrs targetSrs, java.sql.Connection connection)
protected boolean
updateTableStats(IndexStatusInfo.IndexType type, java.lang.String schema, java.sql.Connection connection)
-
Methods inherited from class org.citydb.database.adapter.AbstractUtilAdapter
calcBoundingBox, calcBoundingBox, changeSrs, cleanupGlobalAppearances, containsGlobalAppearances, createBoundingBoxes, createDatabaseReport, createNormalIndexes, createSpatialIndexes, decodeDatabaseSrs, dropNormalIndexes, dropSpatialIndexes, get2DSrid, getADEInfo, getADESchemaMapping, getAppearanceThemeList, getDatabaseInfo, getIndexStatus, getSrsInfo, getStatusNormalIndexes, getStatusSpatialIndexes, interruptDatabaseOperation, isIndexEnabled, transform, transform, transform, transform2D, updateTableStatsNormalColumns, updateTableStatsSpatialColumns
-
-
-
-
Constructor Detail
-
UtilAdapter
protected UtilAdapter(AbstractDatabaseAdapter databaseAdapter)
-
-
Method Detail
-
getCityDBVersion
protected void getCityDBVersion(DatabaseMetaData metaData, java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
getCityDBVersion
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
getDatabaseMetaData
protected void getDatabaseMetaData(DatabaseMetaData metaData, java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
getDatabaseMetaData
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
getSrsInfo
protected void getSrsInfo(DatabaseSrs srs, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
getSrsInfo
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
changeSrs
public void changeSrs(DatabaseSrs srs, boolean doTransform, java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
changeSrs
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
createDatabaseReport
protected java.lang.String[] createDatabaseReport(java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
createDatabaseReport
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
calcBoundingBox
protected BoundingBox calcBoundingBox(java.lang.String schema, java.util.List<java.lang.Integer> objectClassIds, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
calcBoundingBox
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
createBoundingBoxes
protected BoundingBox createBoundingBoxes(java.util.List<java.lang.Integer> objectClassIds, boolean onlyIfNull, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
createBoundingBoxes
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
manageIndexes
protected IndexStatusInfo manageIndexes(java.lang.String operation, IndexStatusInfo.IndexType type, java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
manageIndexes
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
updateTableStats
protected boolean updateTableStats(IndexStatusInfo.IndexType type, java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
updateTableStats
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
transform
protected GeometryObject transform(GeometryObject geometry, DatabaseSrs targetSrs, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
transform
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
get2DSrid
protected int get2DSrid(DatabaseSrs srs, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
get2DSrid
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
getWGS843D
public DatabaseSrs getWGS843D()
- Specified by:
getWGS843D
in classAbstractUtilAdapter
-
containsGlobalAppearances
protected boolean containsGlobalAppearances(java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
containsGlobalAppearances
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
cleanupGlobalAppearances
protected int cleanupGlobalAppearances(java.lang.String schema, java.sql.Connection connection) throws java.sql.SQLException
- Specified by:
cleanupGlobalAppearances
in classAbstractUtilAdapter
- Throws:
java.sql.SQLException
-
-