Class SDOGeometryValueExtractor<X>

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

    public class SDOGeometryValueExtractor<X>
    extends org.hibernate.type.descriptor.sql.BasicExtractor<X>
    ValueExtractor for SDO_GEOMETRY
    • Constructor Summary

      Constructors 
      Constructor Description
      SDOGeometryValueExtractor​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaDescriptor, org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)
      Creates instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.geolatte.geom.Geometry convert​(java.lang.Object struct)
      Converts an oracle to a JTS Geometry
      protected X doExtract​(java.sql.CallableStatement statement, int index, org.hibernate.type.descriptor.WrapperOptions options)  
      protected X doExtract​(java.sql.CallableStatement statement, java.lang.String name, org.hibernate.type.descriptor.WrapperOptions options)  
      protected X doExtract​(java.sql.ResultSet rs, java.lang.String name, org.hibernate.type.descriptor.WrapperOptions options)  
      • Methods inherited from class org.hibernate.type.descriptor.sql.BasicExtractor

        extract, extract, extract, getJavaDescriptor, getSqlDescriptor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SDOGeometryValueExtractor

        public SDOGeometryValueExtractor​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaDescriptor,
                                         org.hibernate.type.descriptor.sql.SqlTypeDescriptor sqlTypeDescriptor)
        Creates instance
        Parameters:
        javaDescriptor - the JavaTypeDescriptor to use
        sqlTypeDescriptor - the SqlTypeDescriptor to use
    • Method Detail

      • doExtract

        protected X doExtract​(java.sql.ResultSet rs,
                              java.lang.String name,
                              org.hibernate.type.descriptor.WrapperOptions options)
                       throws java.sql.SQLException
        Specified by:
        doExtract in class org.hibernate.type.descriptor.sql.BasicExtractor<X>
        Throws:
        java.sql.SQLException
      • doExtract

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

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

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