Package org.hibernate.spatial
Class JTSGeometryJavaTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.locationtech.jts.geom.Geometry>
-
- org.hibernate.spatial.JTSGeometryJavaTypeDescriptor
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.type.descriptor.java.BasicJavaDescriptor<org.locationtech.jts.geom.Geometry>,org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.locationtech.jts.geom.Geometry>
public class JTSGeometryJavaTypeDescriptor extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.locationtech.jts.geom.Geometry>Descriptor for JTSGeometrys.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.hibernate.type.descriptor.java.JavaTypeDescriptor<org.locationtech.jts.geom.Geometry>INSTANCEAn instance of this descriptor
-
Constructor Summary
Constructors Constructor Description JTSGeometryJavaTypeDescriptor()Initialize a type descriptor for the geolatte-geomGeometrytype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEqual(org.locationtech.jts.geom.Geometry one, org.locationtech.jts.geom.Geometry another)org.locationtech.jts.geom.GeometryfromString(java.lang.String string)java.lang.StringtoString(org.locationtech.jts.geom.Geometry value)<X> Xunwrap(org.locationtech.jts.geom.Geometry value, java.lang.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.AbstractTypeDescriptor
extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
-
-
-
-
Method Detail
-
toString
public java.lang.String toString(org.locationtech.jts.geom.Geometry value)
-
fromString
public org.locationtech.jts.geom.Geometry fromString(java.lang.String string)
-
areEqual
public boolean areEqual(org.locationtech.jts.geom.Geometry one, org.locationtech.jts.geom.Geometry another)- Specified by:
areEqualin interfaceorg.hibernate.type.descriptor.java.JavaTypeDescriptor<org.locationtech.jts.geom.Geometry>- Overrides:
areEqualin classorg.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.locationtech.jts.geom.Geometry>
-
unwrap
public <X> X unwrap(org.locationtech.jts.geom.Geometry value, java.lang.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)
-
-