Package org.hibernate.spatial.predicate
Class JTSSpatialPredicates
java.lang.Object
org.hibernate.spatial.predicate.JTSSpatialPredicates
Deprecated.
A factory for spatial JPA Criteria API
Predicate
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate
contains
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially contains" constraint.static Predicate
contains
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially contains" constraint.static Predicate
crosses
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially crosses" constraint.static Predicate
crosses
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially crosses" constraint.static Predicate
disjoint
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially disjoint" constraint.static Predicate
disjoint
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially disjoint" constraint.static Predicate
distanceWithin
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, double distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.static Predicate
distanceWithin
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, Expression<Double> distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.static Predicate
distanceWithin
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, double distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.static Predicate
distanceWithin
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, Expression<Double> distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.static Predicate
eq
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially equal" constraint.static Predicate
eq
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially equal" constraint.static Predicate
havingSRID
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, int srid) Deprecated.Create a predicate for testing the arguments for "having srid" constraint.static Predicate
havingSRID
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, Expression<Integer> srid) Deprecated.Create a predicate for testing the arguments for "having srid" constraint.static Predicate
intersects
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially intersects" constraint.static Predicate
intersects
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially intersects" constraint.static Predicate
isEmpty
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry) Deprecated.Create a predicate for testing the arguments for "is empty" constraint.static Predicate
isNotEmpty
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry) Deprecated.Create a predicate for testing the arguments for "is not empty" constraint.static Predicate
overlaps
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially overlaps" constraint.static Predicate
overlaps
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially overlaps" constraint.static Predicate
touches
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially touches" constraint.static Predicate
touches
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially touches" constraint.static Predicate
within
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially within" constraint.static Predicate
within
(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially within" constraint.
-
Constructor Details
-
JTSSpatialPredicates
protected JTSSpatialPredicates()Deprecated.
-
-
Method Details
-
eq
public static Predicate eq(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially equal" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially equal" predicate
-
eq
public static Predicate eq(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially equal" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially equal" predicate
- See Also:
-
within
public static Predicate within(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially within" predicate
-
within
public static Predicate within(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially within" predicate
- See Also:
-
contains
public static Predicate contains(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially contains" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially contains" predicate
-
contains
public static Predicate contains(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially contains" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially contains" predicate
- See Also:
-
crosses
public static Predicate crosses(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially crosses" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially crosses" predicate
-
crosses
public static Predicate crosses(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially crosses" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially crosses" predicate
- See Also:
-
disjoint
public static Predicate disjoint(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially disjoint" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially disjoint" predicate
-
disjoint
public static Predicate disjoint(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially disjoint" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially disjoint" predicate
- See Also:
-
intersects
public static Predicate intersects(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially intersects" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially intersects" predicate
-
intersects
public static Predicate intersects(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially intersects" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially intersects" predicate
- See Also:
-
overlaps
public static Predicate overlaps(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially overlaps" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially overlaps" predicate
-
overlaps
public static Predicate overlaps(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially overlaps" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially overlaps" predicate
- See Also:
-
touches
public static Predicate touches(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2) Deprecated.Create a predicate for testing the arguments for "spatially touches" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression- Returns:
- "spatially touches" predicate
-
touches
public static Predicate touches(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2) Deprecated.Create a predicate for testing the arguments for "spatially touches" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value- Returns:
- "spatially touches" predicate
-
distanceWithin
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, Expression<Double> distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressiondistance
- distance expression- Returns:
- "distance within" predicate
-
distanceWithin
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, Expression<Double> distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuedistance
- distance expression- Returns:
- "distance within" predicate
- See Also:
-
distanceWithin
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, double distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuedistance
- distance value- Returns:
- "distance within" predicate
- See Also:
-
distanceWithin
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, double distance) Deprecated.Create a predicate for testing the arguments for "distance within" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressiondistance
- distance value- Returns:
- "distance within" predicate
- See Also:
-
havingSRID
public static Predicate havingSRID(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, Expression<Integer> srid) Deprecated.Create a predicate for testing the arguments for "having srid" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionsrid
- SRID expression- Returns:
- "having srid" predicate
-
havingSRID
public static Predicate havingSRID(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, int srid) Deprecated.Create a predicate for testing the arguments for "having srid" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionsrid
- SRID expression- Returns:
- "having srid" predicate
- See Also:
-
isEmpty
public static Predicate isEmpty(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry) Deprecated.Create a predicate for testing the arguments for "is empty" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry
- geometry expression- Returns:
- "is empty" predicate
-
isNotEmpty
public static Predicate isNotEmpty(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry) Deprecated.Create a predicate for testing the arguments for "is not empty" constraint.- Parameters:
criteriaBuilder
- CriteriaBuildergeometry
- geometry expression- Returns:
- "is not empty" predicate
-
JTSSpatialCriteriaBuilder
instead