Package org.hibernate.spatial
Class JTSGeometryJavaType
java.lang.Object
org.hibernate.type.descriptor.java.AbstractJavaType<org.locationtech.jts.geom.Geometry>
org.hibernate.spatial.JTSGeometryJavaType
- All Implemented Interfaces:
Serializable,org.hibernate.type.descriptor.java.BasicJavaType<org.locationtech.jts.geom.Geometry>,org.hibernate.type.descriptor.java.JavaType<org.locationtech.jts.geom.Geometry>
public class JTSGeometryJavaType
extends org.hibernate.type.descriptor.java.AbstractJavaType<org.locationtech.jts.geom.Geometry>
Descriptor for JTS
Geometrys.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
org.hibernate.type.descriptor.java.JavaType.CoercionContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JTSGeometryJavaTypeAn instance of this descriptorstatic final JTSGeometryJavaTypestatic final JTSGeometryJavaTypestatic final JTSGeometryJavaTypestatic final JTSGeometryJavaTypestatic final JTSGeometryJavaTypestatic final JTSGeometryJavaTypestatic final JTSGeometryJavaType -
Constructor Summary
ConstructorsConstructorDescriptionJTSGeometryJavaType(Class<? extends org.locationtech.jts.geom.Geometry> type) Initialize a type descriptor for the geolatte-geomGeometrytype. -
Method Summary
Modifier and TypeMethodDescriptionbooleanareEqual(org.locationtech.jts.geom.Geometry one, org.locationtech.jts.geom.Geometry another) org.locationtech.jts.geom.GeometryfromString(CharSequence string) org.hibernate.type.descriptor.jdbc.JdbcTypegetRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators) toString(org.locationtech.jts.geom.Geometry value) <X> Xunwrap(org.locationtech.jts.geom.Geometry value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options) <X> org.locationtech.jts.geom.Geometrywrap(X value, org.hibernate.type.descriptor.WrapperOptions options) Methods inherited from class org.hibernate.type.descriptor.java.AbstractJavaType
extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getMutabilityPlan, unknownUnwrap, unknownWrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
JTSGeometryJavaType
Initialize a type descriptor for the geolatte-geomGeometrytype.
-
-
Method Details
-
toString
-
fromString
-
getRecommendedJdbcType
public org.hibernate.type.descriptor.jdbc.JdbcType getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators) -
areEqual
public boolean areEqual(org.locationtech.jts.geom.Geometry one, org.locationtech.jts.geom.Geometry another) - Specified by:
areEqualin interfaceorg.hibernate.type.descriptor.java.JavaType<org.locationtech.jts.geom.Geometry>- Overrides:
areEqualin classorg.hibernate.type.descriptor.java.AbstractJavaType<org.locationtech.jts.geom.Geometry>
-
unwrap
public <X> X unwrap(org.locationtech.jts.geom.Geometry value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options) -
wrap
public <X> org.locationtech.jts.geom.Geometry wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
-