Class SpatialCriteriaBuilderImpl<T>
- java.lang.Object
-
- org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate
-
- org.hibernate.spatial.criteria.internal.SpatialCriteriaBuilderImpl<T>
-
- All Implemented Interfaces:
CriteriaBuilder,HibernateCriteriaBuilder,SpatialCriteriaBuilder<T>
- Direct Known Subclasses:
GeolatteSpatialCriteriaBuilderImpl,JTSSpatialCriteriaBuilderImpl
public abstract class SpatialCriteriaBuilderImpl<T> extends HibernateCriteriaBuilderDelegate implements SpatialCriteriaBuilder<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder
CriteriaBuilder.Case<R extends Object>, CriteriaBuilder.Coalesce<T extends Object>, CriteriaBuilder.In<T extends Object>, CriteriaBuilder.SimpleCase<C extends Object,R extends Object>, CriteriaBuilder.Trimspec
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpatialCriteriaBuilderImpl(HibernateCriteriaBuilder criteriaBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicatecontains(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially contains" constraint.Predicatecontains(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially contains" constraint.Predicatecrosses(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially crosses" constraint.Predicatecrosses(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially crosses" constraint.Predicatedisjoint(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially disjoint" constraint.Predicatedisjoint(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially disjoint" constraint.PredicatedistanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, double distance)Create a predicate for testing the arguments for "distance within" constraint.PredicatedistanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, Expression<Double> distance)Create a predicate for testing the arguments for "distance within" constraint.PredicatedistanceWithin(Expression<? extends T> geometry1, T geometry2, double distance)Create a predicate for testing the arguments for "distance within" constraint.PredicatedistanceWithin(Expression<? extends T> geometry1, T geometry2, Expression<Double> distance)Create a predicate for testing the arguments for "distance within" constraint.Predicateeq(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially equal" constraint.Predicateeq(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially equal" constraint.PredicatehavingSRID(Expression<? extends T> geometry, int srid)Create a predicate for testing the arguments for "having srid" constraint.PredicatehavingSRID(Expression<? extends T> geometry, Expression<Integer> srid)Create a predicate for testing the arguments for "having srid" constraint.Predicateintersects(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially intersects" constraint.Predicateintersects(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially intersects" constraint.PredicateisGeometryEmpty(Expression<? extends T> geometry)Create a predicate for testing the arguments for "is empty" constraint.PredicateisGeometryNotEmpty(Expression<? extends T> geometry)Create a predicate for testing the arguments for "is not empty" constraint.Predicateoverlaps(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially overlaps" constraint.Predicateoverlaps(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially overlaps" constraint.Predicatetouches(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially touches" constraint.Predicatetouches(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially touches" constraint.Predicatewithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2)Create a predicate for testing the arguments for "spatially within" constraint.Predicatewithin(Expression<? extends T> geometry1, T geometry2)Create a predicate for testing the arguments for "spatially within" constraint.-
Methods inherited from class org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate
abs, acos, all, and, and, any, array, array, array, array, asc, asc, asc, asc, asin, atan, atan2, atan2, atan2, avg, avg, avg, avg, between, between, cast, ceiling, coalesce, coalesce, coalesce, collate, concat, concat, concat, concat, conjunction, construct, construct, cos, cosh, count, count, count, count, countDistinct, createCriteriaDelete, createCriteriaInsertSelect, createCriteriaUpdate, createQuery, createQuery, createTupleQuery, createWindow, cumeDist, currentDate, currentInstant, currentTime, currentTimestamp, day, degrees, denseRank, desc, desc, desc, desc, diff, diff, diff, disjunction, distinctFrom, distinctFrom, equal, equal, except, except, except, except, exceptAll, exceptAll, exists, exp, firstValue, fk, floor, format, frameBetweenFollowing, frameBetweenFollowing, frameBetweenPreceding, frameBetweenPreceding, frameCurrentRow, frameUnboundedFollowing, frameUnboundedPreceding, function, functionAggregate, functionAggregate, functionAggregate, functionWithinGroup, functionWithinGroup, functionWithinGroup, functionWithinGroup, ge, ge, getCriteriaBuilder, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, hour, ilike, ilike, ilike, ilike, ilike, ilike, in, in, in, in, indexes, intersect, intersect, intersect, intersect, intersectAll, intersectAll, isEmpty, isFalse, isMapEmpty, isMapNotEmpty, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, lastValue, le, le, least, left, left, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, listagg, listagg, listagg, listagg, listagg, listagg, listagg, listagg, literal, literal, literals, literals, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, log, log, log10, lower, lt, lt, mapSize, mapSize, max, min, minute, mod, mod, mod, mode, mode, mode, mode, month, neg, not, notDistinctFrom, notDistinctFrom, notEqual, notEqual, notIlike, notIlike, notIlike, notIlike, notIlike, notIlike, notLike, notLike, notLike, notLike, notLike, notLike, nthValue, nthValue, nullif, nullif, nullLiteral, or, or, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, parameter, parameter, percentileCont, percentileCont, percentileCont, percentileCont, percentileDisc, percentileDisc, percentileDisc, percentileDisc, percentRank, percentRank, percentRank, percentRank, percentRank, pi, power, power, prod, prod, prod, quot, quot, quot, radians, rank, rank, rank, rank, rank, replace, replace, replace, replace, right, right, round, rowNumber, search, search, search, second, selectCase, selectCase, sign, sin, sinh, size, size, some, sort, sort, sort, sql, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sum, sum, sum, sumAsDouble, sumAsLong, tan, tanh, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, truncate, truncate, tuple, tuple, union, union, union, union, unionAll, unionAll, unwrap, upper, value, value, values, values, windowFunction, wrap, wrap, year
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.criteria.HibernateCriteriaBuilder
abs, acos, all, and, and, any, array, array, array, array, asc, asc, asc, asc, asin, atan, atan2, atan2, atan2, avg, avg, avg, avg, between, between, cast, ceiling, coalesce, coalesce, coalesce, collate, concat, concat, concat, concat, conjunction, construct, construct, cos, cosh, count, count, count, count, countDistinct, createCriteriaDelete, createCriteriaInsertSelect, createCriteriaUpdate, createQuery, createQuery, createTupleQuery, createWindow, cumeDist, currentDate, currentInstant, currentTime, currentTimestamp, day, degrees, denseRank, desc, desc, desc, desc, diff, diff, diff, disjunction, distinctFrom, distinctFrom, equal, equal, except, except, except, except, exceptAll, exceptAll, exists, exp, firstValue, fk, floor, format, frameBetweenFollowing, frameBetweenFollowing, frameBetweenPreceding, frameBetweenPreceding, frameCurrentRow, frameUnboundedFollowing, frameUnboundedPreceding, function, functionAggregate, functionAggregate, functionAggregate, functionWithinGroup, functionWithinGroup, functionWithinGroup, functionWithinGroup, ge, ge, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, hour, ilike, ilike, ilike, ilike, ilike, ilike, in, in, in, in, indexes, intersect, intersect, intersect, intersect, intersectAll, intersectAll, isEmpty, isFalse, isMapEmpty, isMapNotEmpty, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, lastValue, le, le, least, left, left, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, listagg, listagg, listagg, listagg, listagg, listagg, listagg, listagg, literal, literal, literals, literals, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, log, log, log10, lower, lt, lt, mapSize, mapSize, max, min, minute, mod, mod, mod, mode, mode, mode, mode, month, neg, not, notDistinctFrom, notDistinctFrom, notEqual, notEqual, notIlike, notIlike, notIlike, notIlike, notIlike, notIlike, notLike, notLike, notLike, notLike, notLike, notLike, nthValue, nthValue, nullif, nullif, nullLiteral, or, or, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, overlay, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, pad, parameter, parameter, percentileCont, percentileCont, percentileCont, percentileCont, percentileDisc, percentileDisc, percentileDisc, percentileDisc, percentRank, percentRank, percentRank, percentRank, percentRank, pi, power, power, prod, prod, prod, quot, quot, quot, radians, rank, rank, rank, rank, rank, replace, replace, replace, replace, right, right, round, rowNumber, search, search, search, second, selectCase, selectCase, sign, sin, sinh, size, size, some, sort, sort, sort, sql, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sum, sum, sum, sumAsDouble, sumAsLong, tan, tanh, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, truncate, truncate, tuple, tuple, union, union, union, union, unionAll, unionAll, unwrap, upper, value, value, values, values, windowFunction, wrap, wrap, year
-
-
-
-
Constructor Detail
-
SpatialCriteriaBuilderImpl
protected SpatialCriteriaBuilderImpl(HibernateCriteriaBuilder criteriaBuilder)
-
-
Method Detail
-
eq
public Predicate eq(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially equal" constraint.- Specified by:
eqin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially equal" predicate
-
eq
public Predicate eq(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially equal" constraint.- Specified by:
eqin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially equal" predicate
- See Also:
SpatialCriteriaBuilder.eq(Expression, Expression)
-
within
public Predicate within(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially within" constraint.- Specified by:
withinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially within" predicate
-
within
public Predicate within(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially within" constraint.- Specified by:
withinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially within" predicate
- See Also:
SpatialCriteriaBuilder.within(Expression, Expression)
-
contains
public Predicate contains(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially contains" constraint.- Specified by:
containsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially contains" predicate
-
contains
public Predicate contains(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially contains" constraint.- Specified by:
containsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially contains" predicate
- See Also:
SpatialCriteriaBuilder.contains(Expression, Expression)
-
crosses
public Predicate crosses(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially crosses" constraint.- Specified by:
crossesin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially crosses" predicate
-
crosses
public Predicate crosses(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially crosses" constraint.- Specified by:
crossesin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially crosses" predicate
- See Also:
SpatialCriteriaBuilder.crosses(Expression, Expression)
-
disjoint
public Predicate disjoint(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially disjoint" constraint.- Specified by:
disjointin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially disjoint" predicate
-
disjoint
public Predicate disjoint(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially disjoint" constraint.- Specified by:
disjointin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially disjoint" predicate
- See Also:
SpatialCriteriaBuilder.disjoint(Expression, Expression)
-
intersects
public Predicate intersects(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially intersects" constraint.- Specified by:
intersectsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially intersects" predicate
-
intersects
public Predicate intersects(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially intersects" constraint.- Specified by:
intersectsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially intersects" predicate
- See Also:
SpatialCriteriaBuilder.intersects(Expression, Expression)
-
overlaps
public Predicate overlaps(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially overlaps" constraint.- Specified by:
overlapsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially overlaps" predicate
-
overlaps
public Predicate overlaps(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially overlaps" constraint.- Specified by:
overlapsin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially overlaps" predicate
- See Also:
SpatialCriteriaBuilder.overlaps(Expression, Expression)
-
touches
public Predicate touches(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially touches" constraint.- Specified by:
touchesin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expression- Returns:
- "spatially touches" predicate
-
touches
public Predicate touches(Expression<? extends T> geometry1, T geometry2)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "spatially touches" constraint.- Specified by:
touchesin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry value- Returns:
- "spatially touches" predicate
- See Also:
SpatialCriteriaBuilder.touches(Expression, Expression)
-
distanceWithin
public Predicate distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, Expression<Double> distance)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "distance within" constraint.- Specified by:
distanceWithinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expressiondistance- distance expression- Returns:
- "distance within" predicate
-
distanceWithin
public Predicate distanceWithin(Expression<? extends T> geometry1, T geometry2, Expression<Double> distance)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "distance within" constraint.- Specified by:
distanceWithinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry valuedistance- distance expression- Returns:
- "distance within" predicate
- See Also:
SpatialCriteriaBuilder.distanceWithin(Expression, Expression, Expression)
-
distanceWithin
public Predicate distanceWithin(Expression<? extends T> geometry1, T geometry2, double distance)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "distance within" constraint.- Specified by:
distanceWithinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry valuedistance- distance value- Returns:
- "distance within" predicate
- See Also:
SpatialCriteriaBuilder.distanceWithin(Expression, Expression, Expression)
-
distanceWithin
public Predicate distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, double distance)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "distance within" constraint.- Specified by:
distanceWithinin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry1- geometry expressiongeometry2- geometry expressiondistance- distance value- Returns:
- "distance within" predicate
- See Also:
SpatialCriteriaBuilder.distanceWithin(Expression, Expression, Expression)
-
havingSRID
public Predicate havingSRID(Expression<? extends T> geometry, Expression<Integer> srid)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "having srid" constraint.- Specified by:
havingSRIDin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry- geometry expressionsrid- SRID expression- Returns:
- "having srid" predicate
-
havingSRID
public Predicate havingSRID(Expression<? extends T> geometry, int srid)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "having srid" constraint.- Specified by:
havingSRIDin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry- geometry expressionsrid- SRID expression- Returns:
- "having srid" predicate
- See Also:
SpatialCriteriaBuilder.havingSRID(Expression, Expression)
-
isGeometryEmpty
public Predicate isGeometryEmpty(Expression<? extends T> geometry)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "is empty" constraint.- Specified by:
isGeometryEmptyin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry- geometry expression- Returns:
- "is empty" predicate
-
isGeometryNotEmpty
public Predicate isGeometryNotEmpty(Expression<? extends T> geometry)
Description copied from interface:SpatialCriteriaBuilderCreate a predicate for testing the arguments for "is not empty" constraint.- Specified by:
isGeometryNotEmptyin interfaceSpatialCriteriaBuilder<T>- Parameters:
geometry- geometry expression- Returns:
- "is not empty" predicate
-
-