|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter
public class JGeometryConverter
PUBLIC: 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)
PUBLIC: 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)
PUBLIC: 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()
PUBLIC: |
java.lang.String |
getStructName()
PUBLIC: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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()
StructConverter
getStructName
in interface StructConverter
public java.lang.Class getJavaType()
StructConverter
getJavaType
in interface StructConverter
public java.lang.Object convertToObject(java.sql.Struct struct) throws java.sql.SQLException
StructConverter
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
StructConverter
convertToStruct
in interface StructConverter
geometry
- The Object to convertconnection
- The JDBC connection
java.sql.SQLException
|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |