|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.oracle.IlvSDOUtil
public class IlvSDOUtil
Utility class for basic SDO requests.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LAYER_EXTENT
EstimateTilingLevel(java.sql.Connection, java.lang.String, java.lang.String, int),
Constant Field Valuespublic static final String ALL_GID_EXTENT
EstimateTilingLevel(java.sql.Connection, java.lang.String, java.lang.String, int),
Constant Field Valuespublic static final String AVERAGE_GID_EXTENT
EstimateTilingLevel(java.sql.Connection, java.lang.String, java.lang.String, int),
Constant Field Values| Method Detail |
|---|
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.
SQLExceptionLAYER_EXTENT,
ALL_GID_EXTENT,
AVERAGE_GID_EXTENTpublic static void EnableSQLTraces(boolean enable)
public static final boolean SQLTracesEnabled()
true if the SQL trace mode is enabled.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||