public abstract class WKBasis extends java.lang.Object implements WKAdapter
Constructor and Description |
---|
WKBasis() |
WKBasis(ByteOrder defaultByteOrder) |
Modifier and Type | Method and Description |
---|---|
byte[] |
fromJGeometry(JGeometry geom)
This transforms a JGeometry to a WKB/WKT geometry.
|
byte[] |
fromStruct(java.sql.Struct geom)
Creates a WKB/WKT geometry from a Struct object.
|
byte[] |
fromSTRUCT(STRUCT geom)
Creates a WKB/WKT geometry from a STRUCT object.
|
JGeometry |
toJGeometry(byte[] wkb)
This transforms a WKB/WKT geometry to a JGeometry.
|
java.sql.Struct |
toStruct(byte[] wkContent, java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC Struct object.
|
STRUCT |
toSTRUCT(byte[] wkContent, java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC STRUCT object.
|
public WKBasis(ByteOrder defaultByteOrder)
public WKBasis()
public byte[] fromJGeometry(JGeometry geom) throws GeometryExceptionWithContext
WKAdapter
fromJGeometry
in interface WKAdapter
geom
- a JGeometry representing the Oracle Spatial geometryGeometryExceptionWithContext
public final STRUCT toSTRUCT(byte[] wkContent, java.sql.Connection conn) throws java.sql.SQLException, GeometryExceptionWithContext
toSTRUCT
in interface WKAdapter
wkContent
- the WKB/WKT geometry (byte array) to be convertedconn
- the connection to be usedjava.sql.SQLException
GeometryExceptionWithContext
public final byte[] fromSTRUCT(STRUCT geom) throws java.sql.SQLException, GeometryExceptionWithContext
fromSTRUCT
in interface WKAdapter
geom
- the STRUCT object from an oracle result setjava.sql.SQLException
GeometryExceptionWithContext
public final java.sql.Struct toStruct(byte[] wkContent, java.sql.Connection conn) throws java.sql.SQLException, GeometryExceptionWithContext
wkContent
- the WKB/WKT geometry (byte array) to be convertedconn
- the connection to be usedjava.sql.SQLException
GeometryExceptionWithContext
public final byte[] fromStruct(java.sql.Struct geom) throws java.sql.SQLException, GeometryExceptionWithContext
geom
- the Struct object from an oracle result setjava.sql.SQLException
GeometryExceptionWithContext
public JGeometry toJGeometry(byte[] wkb) throws GeometryExceptionWithContext
WKAdapter
toJGeometry
in interface WKAdapter
wkb
- a byte[] representing the WKB/WKT geometryGeometryExceptionWithContext