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>
ValueExtractor for SDO_GEOMETRY
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSDOGeometryValueExtractor
(JavaType<X> javaType, JdbcType jdbcType) Creates instance -
Method Summary
Modifier and TypeMethodDescriptionorg.geolatte.geom.Geometry
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
-
Constructor Details
-
SDOGeometryValueExtractor
Creates instance- Parameters:
javaType
- theJavaType
to usejdbcType
- theJdbcType
to use
-
-
Method Details
-
doExtract
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
Converts an oracle to a JTS Geometry- Parameters:
struct
- The Oracle STRUCT representation of an SDO_GEOMETRY- Returns:
- The JTS Geometry value
-