Class SDOGeometryValueExtractor<X>
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.BasicExtractor<X>
-
- org.hibernate.spatial.dialect.oracle.SDOGeometryValueExtractor<X>
-
- All Implemented Interfaces:
Serializable
,ValueExtractor<X>
public class SDOGeometryValueExtractor<X> extends BasicExtractor<X>
ValueExtractor for SDO_GEOMETRY- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDOGeometryValueExtractor(JavaType<X> javaType, JdbcType jdbcType)
Creates instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.geolatte.geom.Geometry
convert(Object struct)
Converts an oracle to a JTS Geometryprotected X
doExtract(CallableStatement statement, int index, WrapperOptions options)
Perform the extraction.protected X
doExtract(CallableStatement statement, String name, WrapperOptions options)
Perform the extraction.protected X
doExtract(ResultSet rs, int paramIndex, WrapperOptions options)
Perform the extraction.-
Methods inherited from class org.hibernate.type.descriptor.jdbc.BasicExtractor
extract, extract, extract, getJavaType, getJdbcType
-
-
-
-
Method Detail
-
doExtract
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<X>
- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem access the result set
-
doExtract
protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<X>
- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem accessing the parameter value
-
doExtract
protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<X>
- Parameters:
statement
- The callable statement containing the output parametername
- The output parameter nameoptions
- The binding options- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem accessing the parameter value
-
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
-
-