Class SDOGeometryValueExtractor<X>
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.BasicExtractor<X>
-
- org.hibernate.spatial.dialect.oracle.SDOGeometryValueExtractor<X>
-
- All Implemented Interfaces:
org.hibernate.type.descriptor.ValueExtractor<X>
public class SDOGeometryValueExtractor<X> extends org.hibernate.type.descriptor.sql.BasicExtractor<X>ValueExtractor for SDO_GEOMETRY
-
-
Constructor Summary
Constructors Constructor Description SDOGeometryValueExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaDescriptor, org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)Creates instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.geolatte.geom.Geometryconvert(Object struct)Converts an oracle to a JTS Geometryprotected XdoExtract(CallableStatement statement, int index, org.hibernate.type.descriptor.WrapperOptions options)protected XdoExtract(CallableStatement statement, String name, org.hibernate.type.descriptor.WrapperOptions options)protected XdoExtract(ResultSet rs, String name, org.hibernate.type.descriptor.WrapperOptions options)
-
-
-
Constructor Detail
-
SDOGeometryValueExtractor
public SDOGeometryValueExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaDescriptor, org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)
Creates instance- Parameters:
javaDescriptor- theJavaTypeDescriptorto usesqlTypeDescriptor- theSqlTypeDescriptorto use
-
-
Method Detail
-
doExtract
protected X doExtract(ResultSet rs, String name, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException
- Specified by:
doExtractin classorg.hibernate.type.descriptor.sql.BasicExtractor<X>- Throws:
SQLException
-
doExtract
protected X doExtract(CallableStatement statement, int index, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException
- Specified by:
doExtractin classorg.hibernate.type.descriptor.sql.BasicExtractor<X>- Throws:
SQLException
-
doExtract
protected X doExtract(CallableStatement statement, String name, org.hibernate.type.descriptor.WrapperOptions options) throws SQLException
- Specified by:
doExtractin classorg.hibernate.type.descriptor.sql.BasicExtractor<X>- Throws:
SQLException
-
convert
public org.geolatte.geom.Geometry convert(Object struct)
Converts an oracle to a JTS Geometry- Parameters:
struct- The Oracle STRUCT representation of an SDO_GEOMETRY- Returns:
- The JTS Geometry value
-
-