public class GeolatteGeometryJavaTypeDescriptor extends AbstractTypeDescriptor<org.geolatte.geom.Geometry>
Geometry
s.Modifier and Type | Field and Description |
---|---|
static GeolatteGeometryJavaTypeDescriptor |
INSTANCE
an instance of this descriptor
|
Constructor and Description |
---|
GeolatteGeometryJavaTypeDescriptor()
Initialize a type descriptor for the geolatte-geom
Geometry type. |
Modifier and Type | Method and Description |
---|---|
org.geolatte.geom.Geometry |
fromString(String string) |
SqlTypeDescriptor |
getJdbcRecommendedSqlType(JdbcRecommendedSqlTypeMappingContext context)
Obtain the "recommended" SQL type descriptor for this Java type.
|
String |
toString(org.geolatte.geom.Geometry value) |
<X> X |
unwrap(org.geolatte.geom.Geometry value,
Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> org.geolatte.geom.Geometry |
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type.
|
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
public static final GeolatteGeometryJavaTypeDescriptor INSTANCE
public GeolatteGeometryJavaTypeDescriptor()
Geometry
type.public SqlTypeDescriptor getJdbcRecommendedSqlType(JdbcRecommendedSqlTypeMappingContext context)
BasicJavaDescriptor
context
- Contextual informationpublic String toString(org.geolatte.geom.Geometry value)
public org.geolatte.geom.Geometry fromString(String string)
public <X> X unwrap(org.geolatte.geom.Geometry value, Class<X> type, WrapperOptions options)
JavaTypeDescriptor
JavaTypeDescriptor<Integer>
and we are asked to unwrap
the Integer value
as a Long
we would return something like
Long.valueOf( value.longValue() )
.
Intended use is during PreparedStatement
binding.X
- The conversion type.value
- The value to unwraptype
- The type as which to unwrapoptions
- The optionspublic <X> org.geolatte.geom.Geometry wrap(X value, WrapperOptions options)
JavaTypeDescriptor
ResultSet
extraction.X
- The conversion type.value
- The value to wrap.options
- The optionsCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.