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.GeometryConverts an oracle to a JTS Geometryprotected XdoExtract(CallableStatement statement, int index, WrapperOptions options) Perform the extraction.protected XdoExtract(CallableStatement statement, String name, WrapperOptions options) Perform the extraction.protected XdoExtract(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- theJavaTypeto usejdbcType- theJdbcTypeto use
-
-
Method Details
-
doExtract
Description copied from class:BasicExtractorPerform 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:
doExtractin 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:BasicExtractorPerform 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:
doExtractin 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:BasicExtractorPerform 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:
doExtractin 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
-