Package org.hibernate.spatial
Class GeolatteGeometryJavaType
java.lang.Object
org.hibernate.type.descriptor.java.AbstractJavaType<org.geolatte.geom.Geometry>
org.hibernate.spatial.GeolatteGeometryJavaType
- All Implemented Interfaces:
Serializable
,BasicJavaType<org.geolatte.geom.Geometry>
,JavaType<org.geolatte.geom.Geometry>
Descriptor for geolatte-geom
Geometry
s.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GeolatteGeometryJavaType
an instance of this descriptorstatic final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
static final GeolatteGeometryJavaType
-
Constructor Summary
ConstructorDescriptionGeolatteGeometryJavaType
(Class<? extends org.geolatte.geom.Geometry> type) Initialize a type descriptor for the geolatte-geomGeometry
type.GeolatteGeometryJavaType
(Class<? extends org.geolatte.geom.Geometry> type, org.geolatte.geom.codec.Wkt.Dialect wktDialect) -
Method Summary
Modifier and TypeMethodDescriptionorg.geolatte.geom.Geometry
fromString
(CharSequence string) getRecommendedJdbcType
(JdbcTypeIndicators indicators) Obtain the "recommended"SQL type descriptor
for this Java type.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.Methods inherited from class org.hibernate.type.descriptor.java.AbstractJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getMutabilityPlan, unknownUnwrap, unknownWrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, coerce, createJavaType, createJavaType, fromEncodedString, getCheckCondition, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaTypeClass, getLongSqlLength, getReplacement, getTypeName, isInstance, isTemporalType, isWider, useObjectEqualsHashCode
-
Field Details
-
GEOMETRY_INSTANCE
an instance of this descriptor -
POINT_INSTANCE
-
LINESTRING_INSTANCE
-
POLYGON_INSTANCE
-
GEOMETRYCOLL_INSTANCE
-
MULTIPOINT_INSTANCE
-
MULTILINESTRING_INSTANCE
-
MULTIPOLYGON_INSTANCE
-
-
Constructor Details
-
GeolatteGeometryJavaType
Initialize a type descriptor for the geolatte-geomGeometry
type. -
GeolatteGeometryJavaType
public GeolatteGeometryJavaType(Class<? extends org.geolatte.geom.Geometry> type, org.geolatte.geom.codec.Wkt.Dialect wktDialect)
-
-
Method Details
-
toString
-
fromString
-
getRecommendedJdbcType
Description copied from interface:BasicJavaType
Obtain the "recommended"SQL type descriptor
for this Java type. Often, but not always, the source of this recommendation is the JDBC specification.- Parameters:
indicators
- Contextual information- Returns:
- The recommended SQL type descriptor
-
unwrap
Description copied from interface:JavaType
Unwrap an instance of our handled Java type into the requested type.As an example, if this is a
JavaType<Integer>
and we are asked to unwrap theInteger value
as aLong
, we would return something likeLong.valueOf( value.longValue() )
.Intended use is during
PreparedStatement
binding.- Type Parameters:
X
- The conversion type.- Parameters:
value
- The value to unwraptype
- The type as which to unwrapoptions
- The options- Returns:
- The unwrapped value.
-
wrap
Description copied from interface:JavaType
Wrap a value as our handled Java type.Intended use is during
ResultSet
extraction.- Type Parameters:
X
- The conversion type.- Parameters:
value
- The value to wrap.options
- The options- Returns:
- The wrapped value.
-