public class SDOGeometryValueExtractor<X> extends BasicExtractor<X>
Constructor and Description |
---|
SDOGeometryValueExtractor(JavaTypeDescriptor<X> javaDescriptor,
SqlTypeDescriptor sqlTypeDescriptor)
Creates instance
|
Modifier and Type | Method and Description |
---|---|
org.geolatte.geom.Geometry |
convert(Object struct)
Converts an oracle to a JTS Geometry
|
protected 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,
String name,
WrapperOptions options)
Perform the extraction.
|
extract, extract, extract, getJavaDescriptor, getSqlDescriptor
public SDOGeometryValueExtractor(JavaTypeDescriptor<X> javaDescriptor, SqlTypeDescriptor sqlTypeDescriptor)
javaDescriptor
- the JavaTypeDescriptor
to usesqlTypeDescriptor
- the SqlTypeDescriptor
to useprotected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException
BasicExtractor
BasicExtractor.extract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consulting ResultSet.wasNull()
) is
done there.doExtract
in class BasicExtractor<X>
rs
- The result setname
- The value name in the result setoptions
- The binding optionsSQLException
- Indicates a problem access the result setprotected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException
BasicExtractor
BasicExtractor.extract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consulting ResultSet.wasNull()
) is
done there.doExtract
in class BasicExtractor<X>
statement
- The callable statement containing the output parameterindex
- The index (position) of the output parameteroptions
- The binding optionsSQLException
- Indicates a problem accessing the parameter valueprotected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException
BasicExtractor
BasicExtractor.extract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consulting ResultSet.wasNull()
) is
done there.doExtract
in class BasicExtractor<X>
statement
- The callable statement containing the output parametername
- The output parameter nameoptions
- The binding optionsSQLException
- Indicates a problem accessing the parameter valuepublic org.geolatte.geom.Geometry convert(Object struct)
struct
- The Oracle STRUCT representation of an SDO_GEOMETRYCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.