Class SDOGeometryValueExtractor<X>

  • All Implemented Interfaces:
    Serializable, org.hibernate.type.descriptor.ValueExtractor<X>

    public class SDOGeometryValueExtractor<X>
    extends org.hibernate.type.descriptor.jdbc.BasicExtractor<X>
    ValueExtractor for SDO_GEOMETRY
    See Also:
    Serialized Form
    • Constructor Detail

      • SDOGeometryValueExtractor

        public SDOGeometryValueExtractor​(org.hibernate.type.descriptor.java.JavaType<X> javaType,
                                         org.hibernate.type.descriptor.jdbc.JdbcType jdbcType)
        Creates instance
        Parameters:
        javaType - the JavaType to use
        jdbcType - the JdbcType to use
    • Method Detail

      • doExtract

        protected X doExtract​(ResultSet rs,
                              int paramIndex,
                              org.hibernate.type.descriptor.WrapperOptions options)
                       throws SQLException
        Specified by:
        doExtract in class org.hibernate.type.descriptor.jdbc.BasicExtractor<X>
        Throws:
        SQLException
      • doExtract

        protected X doExtract​(CallableStatement statement,
                              int index,
                              org.hibernate.type.descriptor.WrapperOptions options)
                       throws SQLException
        Specified by:
        doExtract in class org.hibernate.type.descriptor.jdbc.BasicExtractor<X>
        Throws:
        SQLException
      • doExtract

        protected X doExtract​(CallableStatement statement,
                              String name,
                              org.hibernate.type.descriptor.WrapperOptions options)
                       throws SQLException
        Specified by:
        doExtract in class org.hibernate.type.descriptor.jdbc.BasicExtractor<X>
        Throws:
        SQLException
      • convert

        public org.geolatte.geom.Geometry convert​(Object struct)
        Converts an oracle to a JTS Geometry
        Parameters:
        struct - The Oracle STRUCT representation of an SDO_GEOMETRY
        Returns:
        The JTS Geometry value