Class DB2Util


  • public class DB2Util
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DB2Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void encodeGeometryValue​(Geometry value, int srid, StringBuffer sql)  
      static void executeRegister​(String schemaName, String tableName, String columnName, String srsName, Connection con)  
      static void executeRegisterAndCalculateExtent​(String schemaName, String tableName, String columnName, String srsName, Connection con)  
      static void executeUnRegister​(String schemaName, String tableName, String columnName, Connection con)  
      static String getCastExpression​(Class aClass)  
      static void prepareGeometryValue​(Class<? extends Geometry> gClass, int srid, Class binding, StringBuffer sql)  
      • Methods inherited from class Object

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

      • DB2Util

        public DB2Util()
    • Method Detail

      • executeRegister

        public static void executeRegister​(String schemaName,
                                           String tableName,
                                           String columnName,
                                           String srsName,
                                           Connection con)
                                    throws SQLException
        Throws:
        SQLException
      • executeRegisterAndCalculateExtent

        public static void executeRegisterAndCalculateExtent​(String schemaName,
                                                             String tableName,
                                                             String columnName,
                                                             String srsName,
                                                             Connection con)
                                                      throws SQLException
        Throws:
        SQLException
      • executeUnRegister

        public static void executeUnRegister​(String schemaName,
                                             String tableName,
                                             String columnName,
                                             Connection con)
                                      throws SQLException
        Throws:
        SQLException
      • getCastExpression

        public static String getCastExpression​(Class aClass)
      • prepareGeometryValue

        public static void prepareGeometryValue​(Class<? extends Geometry> gClass,
                                                int srid,
                                                Class binding,
                                                StringBuffer sql)
      • encodeGeometryValue

        public static void encodeGeometryValue​(Geometry value,
                                               int srid,
                                               StringBuffer sql)
                                        throws IOException
        Throws:
        IOException