public class JTSGeometryJavaTypeDescriptor extends AbstractTypeDescriptor<org.locationtech.jts.geom.Geometry>
Geometry
s.Modifier and Type | Field and Description |
---|---|
static JavaTypeDescriptor<org.locationtech.jts.geom.Geometry> |
INSTANCE
An instance of this descriptor
|
Constructor and Description |
---|
JTSGeometryJavaTypeDescriptor()
Initialize a type descriptor for the geolatte-geom
Geometry type. |
Modifier and Type | Method and Description |
---|---|
boolean |
areEqual(org.locationtech.jts.geom.Geometry one,
org.locationtech.jts.geom.Geometry another)
Determine if two instances are equal
|
org.locationtech.jts.geom.Geometry |
fromString(String string) |
String |
toString(org.locationtech.jts.geom.Geometry value) |
<X> X |
unwrap(org.locationtech.jts.geom.Geometry value,
Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> org.locationtech.jts.geom.Geometry |
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type.
|
extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJdbcRecommendedSqlType
public static final JavaTypeDescriptor<org.locationtech.jts.geom.Geometry> INSTANCE
public JTSGeometryJavaTypeDescriptor()
Geometry
type.public String toString(org.locationtech.jts.geom.Geometry value)
public org.locationtech.jts.geom.Geometry fromString(String string)
public boolean areEqual(org.locationtech.jts.geom.Geometry one, org.locationtech.jts.geom.Geometry another)
JavaTypeDescriptor
areEqual
in interface JavaTypeDescriptor<org.locationtech.jts.geom.Geometry>
areEqual
in class AbstractTypeDescriptor<org.locationtech.jts.geom.Geometry>
one
- One instanceanother
- The other instancepublic <X> X unwrap(org.locationtech.jts.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.locationtech.jts.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.