public class OracleJDBCTypeFactory extends Object
This factory creates the Oracle extension types using reflection in order to avoid creating compile-time dependencies on the proprietary Oracle driver.
| Constructor and Description |
|---|
OracleJDBCTypeFactory(ConnectionFinder connectionFinder)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Array |
createElemInfoArray(org.geolatte.geom.codec.db.oracle.ElemInfo elemInfo,
Connection conn) |
Array |
createOrdinatesArray(org.geolatte.geom.codec.db.oracle.Ordinates ordinates,
Connection conn) |
Struct |
createStruct(SDOGeometry geom,
Connection conn)
Creates a
Struct representing the specified geometry, using the specified Connection. |
public OracleJDBCTypeFactory(ConnectionFinder connectionFinder)
connectionFinder - the ConnectionFinder the use for retrieving the OracleConnection instance.public Struct createStruct(SDOGeometry geom, Connection conn) throws SQLException
Struct representing the specified geometry, using the specified Connection.geom - The SDOGeometry objectconn - The Oracle Connection used to create the StructStruct representation of the specified SDO GeometrySQLException - If a Struct object cannot be created.public Array createElemInfoArray(org.geolatte.geom.codec.db.oracle.ElemInfo elemInfo, Connection conn)
public Array createOrdinatesArray(org.geolatte.geom.codec.db.oracle.Ordinates ordinates, Connection conn) throws SQLException
SQLExceptionCopyright © 2021 geolatte.org. All rights reserved.