Class GeometryJdbcConverter

    • Field Detail

      • gf

        protected org.locationtech.jts.geom.GeometryFactory gf
      • wkt

        protected final org.locationtech.jts.io.WKTReader wkt
    • Constructor Detail

      • GeometryJdbcConverter

        public GeometryJdbcConverter()
    • Method Detail

      • convertToNativeGeometryObject

        public abstract Object convertToNativeGeometryObject​(org.locationtech.jts.geom.Geometry param)
                                                      throws SQLException,
                                                             org.locationtech.jts.io.ParseException
        Throws:
        SQLException
        org.locationtech.jts.io.ParseException
      • convertToNativeGeometryObject

        public abstract Object convertToNativeGeometryObject​(org.locationtech.jts.geom.Geometry param,
                                                             int srid)
                                                      throws SQLException,
                                                             org.locationtech.jts.io.ParseException
        Throws:
        SQLException
        org.locationtech.jts.io.ParseException
      • convertToJTSGeometryObject

        public abstract org.locationtech.jts.geom.Geometry convertToJTSGeometryObject​(Object nativeObj)
      • getSchema

        public abstract String getSchema()
      • getGeomTypeName

        public abstract String getGeomTypeName()
      • isDuplicateKeyViolationMessage

        public abstract boolean isDuplicateKeyViolationMessage​(String message)
      • isFKConstraintViolationMessage

        public abstract boolean isFKConstraintViolationMessage​(String message)
        bepaal of een melding een constraint violation betreft.
        Parameters:
        message - de melding uit de database
        Returns:
        true als de melding een contraint violation betreft
      • buildPaginationSql

        public abstract String buildPaginationSql​(String sql,
                                                  int offset,
                                                  int limit)
      • useSavepoints

        public abstract boolean useSavepoints()
      • isPmdKnownBroken

        public abstract boolean isPmdKnownBroken()
      • getMViewsSQL

        public abstract String getMViewsSQL()
      • getMViewRefreshSQL

        public abstract String getMViewRefreshSQL​(String mview)
      • getUpdateSequenceSQL

        public String getUpdateSequenceSQL​(String seqName,
                                           long nextVal)
        Gets a statement to use in a PreparedStatement to restart a sequence.
        Parameters:
        seqName - name of sequence
        nextVal - the value to restart the sequence, some systems require this to be larger than the next value of the sequence.
        Returns:
        SQL statement specific for the flavour of database
      • getSelectNextValueFromSequenceSQL

        public abstract String getSelectNextValueFromSequenceSQL​(String seqName)
        get the database flavour specific SQL statement to get the next value from a sequence.
        Parameters:
        seqName - name of sequence
        Returns:
        SQL statement specific for the flavour of database
      • getGeotoolsDBTypeName

        public abstract String getGeotoolsDBTypeName()
      • convertToNativeGeometryObject

        public Object convertToNativeGeometryObject​(String param)
                                             throws org.locationtech.jts.io.ParseException,
                                                    SQLException
        Throws:
        org.locationtech.jts.io.ParseException
        SQLException
      • createNativePoint

        public Object createNativePoint​(double lat,
                                        double lon,
                                        int srid)
                                 throws SQLException,
                                        org.locationtech.jts.io.ParseException
        Throws:
        SQLException
        org.locationtech.jts.io.ParseException