Class JGeometryConverter
java.lang.Object
org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter
- All Implemented Interfaces:
StructConverter
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToObject
(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 methodconvertToStruct
(Object geometry, 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 methodPUBLIC:PUBLIC:
-
Constructor Details
-
JGeometryConverter
public JGeometryConverter()
-
-
Method Details
-
getStructName
Description copied from interface:StructConverter
PUBLIC:- Specified by:
getStructName
in interfaceStructConverter
- Returns:
- The value return by getSQLTypeName() called when called on the appropriate Struct
-
getJavaType
Description copied from interface:StructConverter
PUBLIC:- Specified by:
getJavaType
in interfaceStructConverter
- Returns:
- The Java Class to perform conversions on
-
convertToObject
Description copied from interface:StructConverter
PUBLIC: This method will be invoked internally when reading a Struct from the database Implementers should put any custom conversion logic in this method- Specified by:
convertToObject
in interfaceStructConverter
- Parameters:
struct
- the Struct that will be read- Returns:
- The Object converted back from the Struct
- Throws:
SQLException
-
convertToStruct
Description copied from interface:StructConverter
PUBLIC: This method will be invoked internally when writing an Object to the database Implementers should put any custom conversion logic in this method- Specified by:
convertToStruct
in interfaceStructConverter
- Parameters:
geometry
- The Object to convertconnection
- The JDBC connection- Returns:
- The Object as a Struct
- Throws:
SQLException
-