@java.lang.SuppressWarnings("rawtypes") public class MongoCriteriaBuilder extends CriteriaBuilder
Extends the default CriteriaBuilder implementation with Geolocation methods
Fields inherited from class | Fields |
---|---|
class CriteriaBuilder |
ORDER_ASCENDING, ORDER_DESCENDING, session |
class AbstractCriteriaBuilder |
ORDER_ASCENDING, ORDER_DESCENDING, ROOT_CALL, ROOT_DO_CALL, SCROLL_CALL, orderEntries, paginationEnabledList, persistentEntity, projectionList, query, queryCreator, queryMetaClass, readOnly, targetClass, uniqueResult |
Constructor and description |
---|
MongoCriteriaBuilder(java.lang.Class<?> targetClass, Session session, Query query) |
MongoCriteriaBuilder(java.lang.Class<?> targetClass, Session session) |
Type Params | Return Type | Name and description |
---|---|---|
|
public Criteria |
arguments(java.util.Map arguments) |
|
public Criteria |
geoIntersects(java.lang.String property, GeoJSON shape) Geospacial query for the given shape returning records that are found to intersect the given shape |
|
public Criteria |
geoWithin(java.lang.String property, Shape shape) Geospacial query for the given shape returning records that are found within the given shape |
|
public Criteria |
near(java.lang.String property, java.util.List<?> value) Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(java.lang.String property, java.util.List<?> value, java.lang.Number maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(java.lang.String property, java.util.List<?> value, Distance maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(java.lang.String property, Point value) Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(java.lang.String property, Point value, java.lang.Number maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(java.lang.String property, Point value, Distance maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, java.util.List<?> value) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, java.util.List<?> value, java.lang.Number maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, java.util.List<?> value, Distance maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, Point value) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, Point value, java.lang.Number maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(java.lang.String property, Point value, Distance maxDistance) Geospacial query for values near the given two dimensional list |
|
public Criteria |
withinBox(java.lang.String property, java.util.List<?> value) Geospacial query for values within a given box. |
|
public Criteria |
withinCircle(java.lang.String property, java.util.List<?> value) Geospacial query for values within a given circle. |
|
public Criteria |
withinPolygon(java.lang.String property, java.util.List<?> value) Geospacial query for values within a given polygon. |
Methods inherited from class | Name |
---|---|
class CriteriaBuilder |
cache, count, get, join, join, list, list, listDistinct, readOnly, scroll, select |
class AbstractCriteriaBuilder |
addToCriteria, allEq, and, avg, between, build, cache, count, countDistinct, distinct, distinct, ensureQueryIsInitialized, eq, eqAll, eqAll, eqProperty, exists, ge, geAll, geAll, geProperty, geSome, geSome, getQuery, getTargetClass, groupProperty, gt, gtAll, gtAll, gtProperty, gtSome, gtSome, gte, id, idEq, idEquals, ilike, in, in, in, in, inList, inList, inList, inList, invokeClosureNode, invokeList, invokeMethod, isEmpty, isNotEmpty, isNotNull, isNull, join, le, leAll, leAll, leProperty, leSome, leSome, like, lt, ltAll, ltAll, ltProperty, ltSome, ltSome, lte, max, min, ne, neProperty, not, notExists, notIn, notIn, or, order, order, order, projections, property, readOnly, rlike, rowCount, select, setUniqueResult, sizeEq, sizeGe, sizeGt, sizeLe, sizeLt, sizeNe, sum, validatePropertyName |
Geospacial query for the given shape returning records that are found to intersect the given shape
property
- The propertyshape
- The shapeGeospacial query for the given shape returning records that are found within the given shape
property
- The propertyshape
- The shapeGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property
- The propertyvalue
- A two dimensional list of valuesGeospacial query for values within a given box. A box is defined as a multi-dimensional list in the form [[40.73083, -73.99756], [40.741404, -73.988135]]
property
- The propertyvalue
- A multi-dimensional list of valuesGeospacial query for values within a given circle. A circle is defined as a multi-dimensial list containing the position of the center and the radius: [[50, 50], 10]
property
- The propertyvalue
- A multi-dimensional list of valuesGeospacial query for values within a given polygon. A polygon is defined as a multi-dimensional list in the form [[0, 0], [3, 6], [6, 0]]
property
- The propertyvalue
- A multi-dimensional list of values