|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sdoapi.OraSpatialManager
OraSpatialManager is a catch-all class in this Oracle Spatial Java library that manages:
1. geometry creation via the GeometryFactory
interface
2. various adapters that implement the GeometryAdapter
interface
3. spatial reference systems that implement the SRManager
interface
GeometryFactory
,
GeometryAdapter
,
SRManager
Constructor Summary | |
protected |
OraSpatialManager()
|
Method Summary | |
static boolean |
deregisterGeometryAdapter(GeometryAdapter geomAdapter)
De-registers a geometry adapter from the adapter list. |
static GeometryAdapter |
getGeometryAdapter(java.lang.String formatName,
java.lang.String formatVersion,
java.lang.Class inputType,
java.lang.Class outputType,
java.lang.Class passthroughOutputType)
Gets a geometry adapter to handle geometry conversions to/from desired geometry format. |
static GeometryAdapter |
getGeometryAdapter(java.lang.String formatName,
java.lang.String formatVersion,
java.lang.Class inputType,
java.lang.Class outputType,
java.lang.Class passthroughOutputType,
java.sql.Connection connection)
Deprecated. |
static GeometryAdapter |
getGeometryAdapter(java.lang.String formatName,
java.lang.String formatVersion,
java.lang.Class inputType,
java.lang.Class outputType,
java.lang.Class passthroughOutputType,
oracle.jdbc.OracleConnection connection)
Gets a geometry adapter to handle geometry conversions to/from desired geometry format. |
static GeometryFactory |
getGeometryFactory()
Gets a geometry factory for creating various geometry objects. |
static GeometryFactory |
getGeometryFactory(SpatialReference spatialRef)
Gets a geometry factory for creating various geometry objects. |
static GeometryMetaData |
getGeometryMetaData(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String columnName)
Deprecated. |
static GeometryMetaData |
getGeometryMetaData(java.sql.Connection conn,
java.lang.String userName,
java.lang.String tableName,
java.lang.String columnName)
Deprecated. |
static GeometryMetaData |
getGeometryMetaData(oracle.jdbc.OracleConnection conn,
java.lang.String tableName,
java.lang.String columnName)
Gets the geometry metadata for geometries in the specified geometry table and column. |
static GeometryMetaData |
getGeometryMetaData(oracle.jdbc.OracleConnection conn,
java.lang.String userName,
java.lang.String tableName,
java.lang.String columnName)
Gets the geometry metadata for geometries in the specified geometry table and column. |
static SRManager |
getSpatialReferenceManager()
Gets a spatial reference system manager for creating, loading, and storing various coordinate systems and transforming geometry objects into desired coordinate systems. |
static SRManager |
getSpatialReferenceManager(java.sql.Connection conn)
Deprecated. |
static SRManager |
getSpatialReferenceManager(oracle.jdbc.OracleConnection conn)
Gets a spatial reference system manager for creating, loading, and storing various coordinate systems and transforming geometry objects into desired coordinate systems. |
static java.lang.String |
getVersion()
Gets the version number as a string |
static boolean |
registerGeometryAdapter(GeometryAdapter geomAdapter)
Registers a geometry adapter to handle geometry conversions (export/import). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected OraSpatialManager()
Method Detail |
public static GeometryMetaData getGeometryMetaData(java.sql.Connection conn, java.lang.String tableName, java.lang.String columnName)
conn
- the JDBC connectiontableName
- the geometry table namecolumnName
- the geometry column namepublic static GeometryMetaData getGeometryMetaData(oracle.jdbc.OracleConnection conn, java.lang.String tableName, java.lang.String columnName)
conn
- the Oracle JDBC connectiontableName
- the geometry table namecolumnName
- the geometry column namepublic static GeometryMetaData getGeometryMetaData(oracle.jdbc.OracleConnection conn, java.lang.String userName, java.lang.String tableName, java.lang.String columnName)
conn
- the Oracle JDBC connectionuserName
- the name of user who owns the following geometry tabletableName
- the geometry table namecolumnName
- the geometry column namepublic static GeometryMetaData getGeometryMetaData(java.sql.Connection conn, java.lang.String userName, java.lang.String tableName, java.lang.String columnName)
conn
- the JDBC connectionuserName
- the name of user who owns the following geometry tabletableName
- the geometry table namecolumnName
- the geometry column namepublic static GeometryFactory getGeometryFactory()
public static GeometryFactory getGeometryFactory(SpatialReference spatialRef)
spatialRef
- user-specified spatial reference system in which geometry
objects will be createdpublic static boolean registerGeometryAdapter(GeometryAdapter geomAdapter)
geomAdapter
- a geometry adapter instance that can handle geometry
conversion to/from some geometry formattrue
if the registration was successful;
false
otherwisepublic static boolean deregisterGeometryAdapter(GeometryAdapter geomAdapter)
geomAdapter
- the geometry adapter instance to remove from the listtrue
if the de-registration was successful;
false
otherwisepublic static GeometryAdapter getGeometryAdapter(java.lang.String formatName, java.lang.String formatVersion, java.lang.Class inputType, java.lang.Class outputType, java.lang.Class passthroughOutputType)
formatName
- geometry format name, such as "WKT"formatVersion
- geometry format version, such as "1.0"inputType
- desired input data type of geometry objects
(such as byte[]), or null
if the user
does not want input support for this geometry formatoutputType
- desired output data type of geometry objects
(such as String), or null
if the user
does not want output support for this geometry formatpassthroughOutputType
- desired "pass-through" output data type of
geometry objects (such as OutputStream), or
null
if you do not want
"pass-through" output support for this
geometry format.null
if no adapter
is found to satisfy the specificationpublic static GeometryAdapter getGeometryAdapter(java.lang.String formatName, java.lang.String formatVersion, java.lang.Class inputType, java.lang.Class outputType, java.lang.Class passthroughOutputType, java.sql.Connection connection)
formatName
- geometry format name, such as "WKT"formatVersion
- geometry format version, such as "1.0"inputType
- desired input data type of geometry objects
(such as byte[]), or null
if you do
not want input support for this geometry formatoutputType
- desired output data type of geometry objects
(such as String), or null
if the user
does not want output support for this geometry formatpassthroughOutputType
- desired "pass-through" output data type of
geometry objects (such as OutputStream), or
null
if you do not want
"pass-through" output support for this
geometry format.connection
- database connection for an adapter that converts
between Geometry and some database formatnull
if no adapter
is found to satisfy the specificationpublic static GeometryAdapter getGeometryAdapter(java.lang.String formatName, java.lang.String formatVersion, java.lang.Class inputType, java.lang.Class outputType, java.lang.Class passthroughOutputType, oracle.jdbc.OracleConnection connection)
formatName
- geometry format name, such as "WKT"formatVersion
- geometry format version, such as "1.0"inputType
- desired input data type of geometry objects
(such as byte[]), or null
if the user
does not want input support for this geometry formatoutputType
- desired output data type of geometry objects
(such as String), or null
if the user
does not want output support for this geometry formatpassthroughOutputType
- desired "pass-through" output data type of
geometry objects (such as OutputStream), or
null
if you do not want
"pass-through" output support for this
geometry format.connection
- Oracle database connection for an adapter that converts
between Geometry and some database formatnull
if no adapter
is found to satisfy the specificationpublic static SRManager getSpatialReferenceManager()
public static SRManager getSpatialReferenceManager(java.sql.Connection conn)
conn
- JDBC connection to Oracle Spatial databasepublic static SRManager getSpatialReferenceManager(oracle.jdbc.OracleConnection conn)
conn
- OracleConnection to Oracle Spatial databasepublic static final java.lang.String getVersion()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |