Class DB2GeometryType

  • All Implemented Interfaces:
    Serializable, JdbcType

    public class DB2GeometryType
    extends Object
    implements JdbcType
    Type Descriptor for the DB2 Geometry type (as Clob)

    Created by Karel Maesen, Geovise BVBA, and David Adler, Adtech Geospatial

    See Also:
    Serialized Form
    • Constructor Detail

      • DB2GeometryType

        public DB2GeometryType​(Integer srid)
    • Method Detail

      • getDefaultSqlTypeCode

        public int getDefaultSqlTypeCode()
        Description copied from interface: JdbcType
        A JDBC type code that identifies the SQL column type.

        This value might be different from #getDdlTypeCode() if the actual type e.g. JSON is emulated through a type like CLOB.

        Specified by:
        getDefaultSqlTypeCode in interface JdbcType
        Returns:
        a JDBC type code
      • getBinder

        public <X> ValueBinder<X> getBinder​(JavaType<X> javaType)
        Description copied from interface: JdbcType
        Obtain a binder object capable of binding values of the given Java type to parameters of a JDBC PreparedStatement.
        Specified by:
        getBinder in interface JdbcType
        Parameters:
        javaType - The descriptor describing the types of Java values to be bound
        Returns:
        The appropriate binder.
      • getExtractor

        public <X> ValueExtractor<X> getExtractor​(JavaType<X> javaType)
        Description copied from interface: JdbcType
        Obtain an extractor object capable of extracting values of the given Java type from a JDBC ResultSet.
        Specified by:
        getExtractor in interface JdbcType
        Parameters:
        javaType - The descriptor describing the types of Java values to be extracted
        Returns:
        The appropriate extractor
      • toGeometry

        public org.geolatte.geom.Geometry<?> toGeometry​(Object object)