Package org.h2gis.geotools
Class H2GISFilterToSQLHelper
- Object
-
- H2GISFilterToSQLHelper
-
public class H2GISFilterToSQLHelper extends Object
jdbc-h2gis is an extension to connect H2GIS a spatial library that brings spatial support to the H2 Java database.H2GIS filter wrapper for H2GIS database.
- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description H2GISFilterToSQLHelper(FilterToSQL filterToSQL)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cast(String property, Class<?> target)
static FilterCapabilities
createFilterCapabilities(boolean encodeFunctions, FilterCapabilities superCaps)
static String
getFunctionName(Function function)
Maps a function to its native db equivalentprotected Object
visitBinarySpatialOperator(BinarySpatialOperator filter, Expression e1, Expression e2, Object extraData)
protected Object
visitBinarySpatialOperator(BinarySpatialOperator filter, PropertyName property, Literal geometry, boolean swapped, Object extraData)
boolean
visitFunction(Function function, Object extraData)
Performs custom visits for functions that cannot be encoded asfunctionName(p1, p2, ... pN).
-
-
-
Constructor Detail
-
H2GISFilterToSQLHelper
public H2GISFilterToSQLHelper(FilterToSQL filterToSQL)
- Parameters:
filterToSQL
-
-
-
Method Detail
-
createFilterCapabilities
public static FilterCapabilities createFilterCapabilities(boolean encodeFunctions, FilterCapabilities superCaps)
- Parameters:
encodeFunctions
-- Returns:
-
visitBinarySpatialOperator
protected Object visitBinarySpatialOperator(BinarySpatialOperator filter, PropertyName property, Literal geometry, boolean swapped, Object extraData)
- Parameters:
filter
-property
-geometry
-swapped
-extraData
-- Returns:
-
visitBinarySpatialOperator
protected Object visitBinarySpatialOperator(BinarySpatialOperator filter, Expression e1, Expression e2, Object extraData)
- Parameters:
filter
-e1
-e2
-extraData
-- Returns:
-
getFunctionName
public static String getFunctionName(Function function)
Maps a function to its native db equivalent- Parameters:
function
-- Returns:
-
visitFunction
public boolean visitFunction(Function function, Object extraData) throws IOException
Performs custom visits for functions that cannot be encoded asfunctionName(p1, p2, ... pN).
- Parameters:
function
-extraData
-- Returns:
- Throws:
IOException
-
-