|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.platform.database.oracle.converters.JGeometryConverter
public class JGeometryConverter
A StructConverter that can be used to convert the oracle.spatial.geometry.JGeometry as it is read and written from the database. To use this StructConverter, it must be added to the DatabasePlatform either with the addStructConverter(StructConverter) method or specified in sessions.xml. It requires that the oracle.spatial.geometry.JGeometry type is available on the Classpath
Field Summary | |
---|---|
static java.lang.Class |
JGEOMETRY_CLASS
|
static java.lang.String |
JGEOMETRY_DB_TYPE
|
Constructor Summary | |
---|---|
JGeometryConverter()
|
Method Summary | |
---|---|
java.lang.Object |
convertToObject(java.sql.Struct struct)
This method will be invoked internally when reading a Struct from the database Implementers should put any custom conversion logic in this method |
java.sql.Struct |
convertToStruct(java.lang.Object geometry,
java.sql.Connection connection)
This method will be invoked internally when writing an Object to the database Implementers should put any custom conversion logic in this method |
java.lang.Class |
getJavaType()
|
java.lang.String |
getStructName()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JGEOMETRY_DB_TYPE
public static final java.lang.Class JGEOMETRY_CLASS
Constructor Detail |
---|
public JGeometryConverter()
Method Detail |
---|
public java.lang.String getStructName()
getStructName
in interface StructConverter
public java.lang.Class getJavaType()
getJavaType
in interface StructConverter
public java.lang.Object convertToObject(java.sql.Struct struct) throws java.sql.SQLException
convertToObject
in interface StructConverter
struct
- the Struct that will be read
java.sql.SQLException
public java.sql.Struct convertToStruct(java.lang.Object geometry, java.sql.Connection connection) throws java.sql.SQLException
convertToStruct
in interface StructConverter
geometry
- The Object to convertconnection
- The JDBC connection
java.sql.SQLException
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |