Class SDOSqlDumper


  • public class SDOSqlDumper
    extends Object
    Converts a JTS geometry into the equivalent MDSYS.SDO_GEOMETRY SQL syntax. Useful for non prepared statement based dialects and for debugging purposes
    • Constructor Summary

      Constructors 
      Constructor Description
      SDOSqlDumper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static String toSDOGeom​(Geometry geometry, int srid)
      Converts JTS Geometry to a String version of a SDO Geometry.
      • Methods inherited from class Object

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

      • SDOSqlDumper

        public SDOSqlDumper()
    • Method Detail

      • toSDOGeom

        public static String toSDOGeom​(Geometry geometry,
                                       int srid)
        Converts JTS Geometry to a String version of a SDO Geometry. This should move to a utility class, as we now have more than one class using this (which is why it changed to public static)

        TODO: Multi eometries

        Parameters:
        geometry - The JTS Geometry to convert.
        Returns:
        A String representation of the SDO Geometry.