code: public static List<String> getGeometryFields(Connection connection,String catalog, String schema, String table)
              throws SQLException {
          List<String> fieldsName = new LinkedList<>();
          ResultSet geomResultSet = getGeometryColumnsView(connection,catalog,schema,table);
          while (geomResultSet.next()) {
              fieldsName.add(geomResultSet.getString("f_geometry_column"));
          }
          geomResultSet.close();
          return fieldsName;
      }
docs: Find geometry fields name of a table.
  
  @param connection Active connection
  @param catalog Catalog that contain schema (empty for default catalog)
  @param schema Schema that contain table (empty for default schema)
  @param table Table name (case insensitive)
  
  @return A list of Geometry fields name
  
  @throws SQLException