Interface SpatialCriteriaBuilder<T>

All Superinterfaces:
CriteriaBuilder, org.hibernate.query.criteria.HibernateCriteriaBuilder
All Known Subinterfaces:
GeolatteSpatialCriteriaBuilder, JTSSpatialCriteriaBuilder
All Known Implementing Classes:
GeolatteSpatialCriteriaBuilderImpl, JTSSpatialCriteriaBuilderImpl, SpatialCriteriaBuilderImpl

public interface SpatialCriteriaBuilder<T> extends org.hibernate.query.criteria.HibernateCriteriaBuilder
An extended HibernateCriteriaBuilder with spatial functionality
  • 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
  • Method Summary

    Modifier and Type
    Method
    Description
    contains(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially contains" constraint.
    contains(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially contains" constraint.
    crosses(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially crosses" constraint.
    crosses(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially crosses" constraint.
    disjoint(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially disjoint" constraint.
    disjoint(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially disjoint" constraint.
    distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, double distance)
    Create a predicate for testing the arguments for "distance within" constraint.
    distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, Expression<Double> distance)
    Create a predicate for testing the arguments for "distance within" constraint.
    distanceWithin(Expression<? extends T> geometry1, T geometry2, double distance)
    Create a predicate for testing the arguments for "distance within" constraint.
    distanceWithin(Expression<? extends T> geometry1, T geometry2, Expression<Double> distance)
    Create a predicate for testing the arguments for "distance within" constraint.
    eq(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially equal" constraint.
    eq(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially equal" constraint.
    havingSRID(Expression<? extends T> geometry, int srid)
    Create a predicate for testing the arguments for "having srid" constraint.
    havingSRID(Expression<? extends T> geometry, Expression<Integer> srid)
    Create a predicate for testing the arguments for "having srid" constraint.
    intersects(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially intersects" constraint.
    intersects(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially intersects" constraint.
    isGeometryEmpty(Expression<? extends T> geometry)
    Create a predicate for testing the arguments for "is empty" constraint.
    isGeometryNotEmpty(Expression<? extends T> geometry)
    Create a predicate for testing the arguments for "is not empty" constraint.
    overlaps(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially overlaps" constraint.
    overlaps(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially overlaps" constraint.
    touches(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially touches" constraint.
    touches(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially touches" constraint.
    within(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
    Create a predicate for testing the arguments for "spatially within" constraint.
    within(Expression<? extends T> geometry1, T geometry2)
    Create a predicate for testing the arguments for "spatially within" constraint.

    Methods inherited from interface jakarta.persistence.criteria.CriteriaBuilder

    asc, desc

    Methods inherited from interface org.hibernate.query.criteria.HibernateCriteriaBuilder

    abs, acos, addDuration, addDuration, addDuration, all, and, and, and, any, array, array, array, array, arrayAgg, arrayAgg, arrayAgg, arrayAgg, arrayAppend, arrayAppend, arrayConcat, arrayConcat, arrayConcat, arrayContains, arrayContains, arrayContains, arrayContainsAll, arrayContainsAll, arrayContainsAll, arrayContainsAllNullable, arrayContainsAllNullable, arrayContainsAllNullable, arrayContainsNullable, arrayContainsNullable, arrayContainsNullable, arrayFill, arrayFill, arrayFill, arrayFill, arrayGet, arrayGet, arrayIncludes, arrayIncludes, arrayIncludes, arrayIncludesNullable, arrayIncludesNullable, arrayIncludesNullable, arrayIntersects, arrayIntersects, arrayIntersects, arrayIntersectsNullable, arrayIntersectsNullable, arrayIntersectsNullable, arrayLength, arrayLiteral, arrayOverlaps, arrayOverlaps, arrayOverlaps, arrayOverlapsNullable, arrayOverlapsNullable, arrayOverlapsNullable, arrayPosition, arrayPosition, arrayPositions, arrayPositions, arrayPositionsList, arrayPositionsList, arrayPrepend, arrayPrepend, arrayRemove, arrayRemove, arrayRemoveIndex, arrayRemoveIndex, arrayReplace, arrayReplace, arrayReplace, arrayReplace, arraySet, arraySet, arraySet, arraySet, arraySlice, arraySlice, arraySlice, arraySlice, arrayToString, arrayToString, arrayTrim, arrayTrim, asc, asc, asc, asc, asin, atan, atan2, atan2, atan2, avg, avg, avg, avg, between, between, cast, cast, castTarget, castTarget, castTarget, ceiling, coalesce, coalesce, coalesce, collate, collectionAppend, collectionAppend, collectionConcat, collectionConcat, collectionConcat, collectionContains, collectionContains, collectionContains, collectionContainsAll, collectionContainsAll, collectionContainsAll, collectionContainsAllNullable, collectionContainsAllNullable, collectionContainsAllNullable, collectionContainsNullable, collectionContainsNullable, collectionContainsNullable, collectionFill, collectionFill, collectionFill, collectionFill, collectionGet, collectionGet, collectionIncludes, collectionIncludes, collectionIncludes, collectionIncludesNullable, collectionIncludesNullable, collectionIncludesNullable, collectionIntersects, collectionIntersects, collectionIntersects, collectionIntersectsNullable, collectionIntersectsNullable, collectionIntersectsNullable, collectionLength, collectionLiteral, collectionOverlaps, collectionOverlaps, collectionOverlaps, collectionOverlapsNullable, collectionOverlapsNullable, collectionOverlapsNullable, collectionPosition, collectionPosition, collectionPositions, collectionPositions, collectionPositionsList, collectionPositionsList, collectionPrepend, collectionPrepend, collectionRemove, collectionRemove, collectionRemoveIndex, collectionRemoveIndex, collectionReplace, collectionReplace, collectionReplace, collectionReplace, collectionSet, collectionSet, collectionSet, collectionSet, collectionSlice, collectionSlice, collectionSlice, collectionSlice, collectionToString, collectionToString, collectionTrim, collectionTrim, concat, concat, concat, concat, concat, conjunction, construct, construct, cos, cosh, count, count, count, count, count, countDistinct, createCriteriaDelete, createCriteriaInsertSelect, createCriteriaInsertValues, createCriteriaUpdate, createQuery, createQuery, createQuery, createTupleQuery, createWindow, cumeDist, currentDate, currentInstant, currentTime, currentTimestamp, day, degrees, denseRank, desc, desc, desc, desc, diff, diff, diff, disjunction, distinctFrom, distinctFrom, duration, durationBetween, durationBetween, durationByUnit, durationDiff, durationDiff, durationScaled, durationScaled, durationScaled, durationSum, durationSum, equal, equal, except, except, except, except, except, except, exceptAll, exceptAll, exceptAll, exceptAll, exists, exp, extract, firstValue, fk, floor, format, frameBetweenFollowing, frameBetweenFollowing, frameBetweenPreceding, frameBetweenPreceding, frameCurrentRow, frameUnboundedFollowing, frameUnboundedPreceding, function, functionAggregate, functionAggregate, functionAggregate, functionWithinGroup, functionWithinGroup, functionWithinGroup, functionWithinGroup, ge, ge, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, generateTimeSeries, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, hour, ilike, ilike, ilike, ilike, ilike, ilike, in, in, in, in, indexes, intersect, intersect, intersect, intersect, intersect, intersect, intersectAll, intersectAll, intersectAll, intersectAll, isEmpty, isFalse, isMapEmpty, isMapNotEmpty, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, jsonArray, jsonArrayAgg, jsonArrayAgg, jsonArrayAgg, jsonArrayAgg, jsonArrayAggWithNulls, jsonArrayAggWithNulls, jsonArrayAggWithNulls, jsonArrayAggWithNulls, jsonArrayWithNulls, jsonExists, jsonExists, jsonInsert, jsonInsert, jsonInsert, jsonInsert, jsonMergepatch, jsonMergepatch, jsonMergepatch, jsonObject, jsonObjectAgg, jsonObjectAgg, jsonObjectAggWithNulls, jsonObjectAggWithNulls, jsonObjectAggWithUniqueKeys, jsonObjectAggWithUniqueKeys, jsonObjectAggWithUniqueKeysAndNulls, jsonObjectAggWithUniqueKeysAndNulls, jsonObjectWithNulls, jsonQuery, jsonQuery, jsonRemove, jsonRemove, jsonReplace, jsonReplace, jsonReplace, jsonReplace, jsonSet, jsonSet, jsonSet, jsonSet, jsonTable, jsonTable, jsonTable, jsonValue, jsonValue, jsonValue, jsonValue, 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, listParameter, listParameter, 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, named, 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, 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, repeat, repeat, repeat, replace, replace, replace, replace, right, right, round, rowNumber, search, search, search, second, selectCase, selectCase, setReturningFunction, sign, sin, sinh, size, size, some, sort, sort, sort, sort, sort, sort, sql, sqrt, substring, substring, substring, substring, subtractDuration, subtractDuration, subtractDuration, 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, union, union, unionAll, unionAll, unionAll, unionAll, unnestArray, unnestCollection, unwrap, upper, value, values, values, values, windowFunction, wrap, wrap, xmlagg, xmlagg, xmlagg, xmlagg, xmlcomment, xmlconcat, xmlconcat, xmlelement, xmlexists, xmlexists, xmlforest, xmlforest, xmlpi, xmlpi, xmlquery, xmlquery, xmlTable, xmlTable, year
  • Method Details

    • eq

      Predicate eq(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially equal" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially equal" predicate
    • eq

      Predicate eq(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially equal" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially equal" predicate
      See Also:
    • within

      Predicate within(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially within" predicate
    • within

      Predicate within(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially within" predicate
      See Also:
    • contains

      Predicate contains(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially contains" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially contains" predicate
    • contains

      Predicate contains(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially contains" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially contains" predicate
      See Also:
    • crosses

      Predicate crosses(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially crosses" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially crosses" predicate
    • crosses

      Predicate crosses(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially crosses" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially crosses" predicate
      See Also:
    • disjoint

      Predicate disjoint(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially disjoint" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially disjoint" predicate
    • disjoint

      Predicate disjoint(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially disjoint" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially disjoint" predicate
      See Also:
    • intersects

      Predicate intersects(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially intersects" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially intersects" predicate
    • intersects

      Predicate intersects(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially intersects" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially intersects" predicate
      See Also:
    • overlaps

      Predicate overlaps(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially overlaps" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially overlaps" predicate
    • overlaps

      Predicate overlaps(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially overlaps" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially overlaps" predicate
      See Also:
    • touches

      Predicate touches(Expression<? extends T> geometry1, Expression<? extends T> geometry2)
      Create a predicate for testing the arguments for "spatially touches" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      Returns:
      "spatially touches" predicate
    • touches

      Predicate touches(Expression<? extends T> geometry1, T geometry2)
      Create a predicate for testing the arguments for "spatially touches" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      Returns:
      "spatially touches" predicate
      See Also:
    • distanceWithin

      Predicate distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, Expression<Double> distance)
      Create a predicate for testing the arguments for "distance within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      distance - distance expression
      Returns:
      "distance within" predicate
    • distanceWithin

      Predicate distanceWithin(Expression<? extends T> geometry1, T geometry2, Expression<Double> distance)
      Create a predicate for testing the arguments for "distance within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      distance - distance expression
      Returns:
      "distance within" predicate
      See Also:
    • distanceWithin

      Predicate distanceWithin(Expression<? extends T> geometry1, T geometry2, double distance)
      Create a predicate for testing the arguments for "distance within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry value
      distance - distance value
      Returns:
      "distance within" predicate
      See Also:
    • distanceWithin

      Predicate distanceWithin(Expression<? extends T> geometry1, Expression<? extends T> geometry2, double distance)
      Create a predicate for testing the arguments for "distance within" constraint.
      Parameters:
      geometry1 - geometry expression
      geometry2 - geometry expression
      distance - distance value
      Returns:
      "distance within" predicate
      See Also:
    • havingSRID

      Predicate havingSRID(Expression<? extends T> geometry, Expression<Integer> srid)
      Create a predicate for testing the arguments for "having srid" constraint.
      Parameters:
      geometry - geometry expression
      srid - SRID expression
      Returns:
      "having srid" predicate
    • havingSRID

      Predicate havingSRID(Expression<? extends T> geometry, int srid)
      Create a predicate for testing the arguments for "having srid" constraint.
      Parameters:
      geometry - geometry expression
      srid - SRID expression
      Returns:
      "having srid" predicate
      See Also:
    • isGeometryEmpty

      Predicate isGeometryEmpty(Expression<? extends T> geometry)
      Create a predicate for testing the arguments for "is empty" constraint.
      Parameters:
      geometry - geometry expression
      Returns:
      "is empty" predicate
    • isGeometryNotEmpty

      Predicate isGeometryNotEmpty(Expression<? extends T> geometry)
      Create a predicate for testing the arguments for "is not empty" constraint.
      Parameters:
      geometry - geometry expression
      Returns:
      "is not empty" predicate