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
Geometrys.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface JavaType
JavaType.CoercionContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeolatteGeometryJavaTypean instance of this descriptorstatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaTypestatic final GeolatteGeometryJavaType -
Constructor Summary
ConstructorsConstructorDescriptionGeolatteGeometryJavaType(Class<? extends org.geolatte.geom.Geometry> type) Initialize a type descriptor for the geolatte-geomGeometrytype.GeolatteGeometryJavaType(Class<? extends org.geolatte.geom.Geometry> type, org.geolatte.geom.codec.Wkt.Dialect wktDialect) -
Method Summary
Modifier and TypeMethodDescriptionorg.geolatte.geom.GeometryfromString(CharSequence string) getRecommendedJdbcType(JdbcTypeIndicators indicators) Obtain the "recommended" SQL type descriptor for this Java type.toString(org.geolatte.geom.Geometry value) <X> Xunwrap(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.Geometrywrap(X value, WrapperOptions options) Wrap a value as our handled Java type.Methods inherited from class AbstractJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getMutabilityPlan, unknownUnwrap, unknownWrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JavaType
appendEncodedString, cast, coerce, createJavaType, fromEncodedString, 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-geomGeometrytype. -
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:BasicJavaTypeObtain 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:JavaTypeUnwrap 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 valueas aLong, we would return something likeLong.valueOf( value.longValue() ).Intended use is during
PreparedStatementbinding.- 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
-