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,org.hibernate.type.descriptor.java.BasicJavaType<org.geolatte.geom.Geometry>,org.hibernate.type.descriptor.java.JavaType<org.geolatte.geom.Geometry>
public class GeolatteGeometryJavaType extends org.hibernate.type.descriptor.java.AbstractJavaType<org.geolatte.geom.Geometry>Descriptor for geolatte-geomGeometrys.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static GeolatteGeometryJavaTypeGEOMETRY_INSTANCEan instance of this descriptorstatic GeolatteGeometryJavaTypeGEOMETRYCOLL_INSTANCEstatic GeolatteGeometryJavaTypeLINESTRING_INSTANCEstatic GeolatteGeometryJavaTypeMULTILINESTRING_INSTANCEstatic GeolatteGeometryJavaTypeMULTIPOINT_INSTANCEstatic GeolatteGeometryJavaTypeMULTIPOLYGON_INSTANCEstatic GeolatteGeometryJavaTypePOINT_INSTANCEstatic GeolatteGeometryJavaTypePOLYGON_INSTANCE
-
Constructor Summary
Constructors Constructor Description GeolatteGeometryJavaType(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.geolatte.geom.GeometryfromString(CharSequence string)org.hibernate.type.descriptor.jdbc.JdbcTypegetRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators)StringtoString(org.geolatte.geom.Geometry value)<X> Xunwrap(org.geolatte.geom.Geometry value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)<X> org.geolatte.geom.Geometrywrap(X value, org.hibernate.type.descriptor.WrapperOptions options)-
Methods inherited from class org.hibernate.type.descriptor.java.AbstractJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getMutabilityPlan, unknownUnwrap, unknownWrap
-
-
-
-
Field Detail
-
GEOMETRY_INSTANCE
public static final GeolatteGeometryJavaType GEOMETRY_INSTANCE
an instance of this descriptor
-
POINT_INSTANCE
public static final GeolatteGeometryJavaType POINT_INSTANCE
-
LINESTRING_INSTANCE
public static final GeolatteGeometryJavaType LINESTRING_INSTANCE
-
POLYGON_INSTANCE
public static final GeolatteGeometryJavaType POLYGON_INSTANCE
-
GEOMETRYCOLL_INSTANCE
public static final GeolatteGeometryJavaType GEOMETRYCOLL_INSTANCE
-
MULTIPOINT_INSTANCE
public static final GeolatteGeometryJavaType MULTIPOINT_INSTANCE
-
MULTILINESTRING_INSTANCE
public static final GeolatteGeometryJavaType MULTILINESTRING_INSTANCE
-
MULTIPOLYGON_INSTANCE
public static final GeolatteGeometryJavaType MULTIPOLYGON_INSTANCE
-
-
Constructor Detail
-
GeolatteGeometryJavaType
public GeolatteGeometryJavaType(Class<? extends org.geolatte.geom.Geometry> type)
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 Detail
-
toString
public String toString(org.geolatte.geom.Geometry value)
-
fromString
public org.geolatte.geom.Geometry fromString(CharSequence string)
-
getRecommendedJdbcType
public org.hibernate.type.descriptor.jdbc.JdbcType getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators indicators)
-
unwrap
public <X> X unwrap(org.geolatte.geom.Geometry value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
-
wrap
public <X> org.geolatte.geom.Geometry wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
-
-