public class IlvSDOUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL_GID_EXTENT
An Oracle constant for a method of estimation of the tiling level
based on the gid extent.
|
static String |
AVERAGE_GID_EXTENT
An Oracle constant for a method of estimation of the tiling level
based on the gid average extent.
|
static String |
LAYER_EXTENT
An Oracle constant for a method of estimation of the tiling level
based on the layer extent.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
CheckLayerExistence(Connection connection,
String ownerName,
String layerName)
Checks whether the given SDO layer exists.
|
static boolean |
CheckSdoExistence(Connection connection)
Checks whether the SDO extension is in the database.
|
static void |
Drop(Connection connection,
String layerName,
String ownerName)
Drops the four SDO tables corresponding to the current
layerName . |
static void |
EnableSQLTraces(boolean enable)
Sets the trace mode for the SQL queries.
|
static int |
EstimateTilingLevel(Connection connection,
String layerName,
String typeOfEstimate,
int maxTiles)
Performs a query to the Oracle database that estimates the tiling level
for the specified layer.
|
static String[] |
GetAllLayers(Connection connection,
String ownerName)
Returns a
String array made up of all the available SDO layers
for the given owner name. |
static int |
GetGeometriesCount(Connection connection,
String layerName)
Returns the number of geometries contained in the [layerName]_SDOGEOM table.
|
static boolean |
SQLTracesEnabled()
Returns
true if the SQL trace mode is enabled. |
public static final String LAYER_EXTENT
public static final String ALL_GID_EXTENT
public static final String AVERAGE_GID_EXTENT
public static final boolean CheckSdoExistence(Connection connection) throws SQLException
connection
- The connection.SQLException
public static final boolean CheckLayerExistence(Connection connection, String ownerName, String layerName) throws SQLException
userName
.connection
- The connection.ownerName
- The Oracle owner of the layer table in the database.layerName
- The name of the SDO layer.SQLException
public static final String[] GetAllLayers(Connection connection, String ownerName) throws SQLException
String
array made up of all the available SDO layers
for the given owner name.connection
- The connection.ownerName
- The Oracle owner of the layer table in the database.SQLException
public static final void Drop(Connection connection, String layerName, String ownerName) throws SQLException
layerName
.
Calling this method may throw the following SQLException: "Table or View
does not exist".connection
- The connection.layerName
- The SDO layer name.ownerName
- The Oracle owner of the layer table in the database.SQLException
public static final int GetGeometriesCount(Connection connection, String layerName) throws SQLException
connection
- The connection.layerName
- The SDO layer name.SQLException
public static final int EstimateTilingLevel(Connection connection, String layerName, String typeOfEstimate, int maxTiles) throws SQLException
connection
- The connection.layerName
- The SDO layer name.typeOfEstimate
- The tiling level estimation method.maxTiles
- The maximum number of tiles required.SQLException
LAYER_EXTENT
,
ALL_GID_EXTENT
,
AVERAGE_GID_EXTENT
public static void EnableSQLTraces(boolean enable)
public static final boolean SQLTracesEnabled()
true
if the SQL trace mode is enabled.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.