Class DocumentQuery<T>
java.lang.Object
com.codename1.backend.document.DocumentQuery<T>
- All Implemented Interfaces:
Query<T>
A
Query over a document collection. Comparisons, LIKE, IN, null tests,
one sort field and paging are supported; joins, fetches and element tests
throw UnsupportedOperationException, because a document store has no join.-
Method Summary
Modifier and TypeMethodDescriptioncontainsElement(String field, Object value) Adds a scalar collection membership predicate without loading the collection.longcount()Counts matching root entities, ignoring ordering and pagination.Adds an equality predicate; null matches SQL NULL.Initializes a direct relationship for returned entities, overriding lazy mapping.first()Executes the query for at most one result, respecting the offset.Adds a greater-than-or-equal predicate.Adds a greater-than predicate.Adds an IN predicate; an empty array matches no rows.Adds an IS NOT NULL predicate.Adds an IS NULL predicate.Adds an inner join on a relationship path.Adds a less-than-or-equal predicate.Adds a left join before the path is used in predicates.Adds a SQL LIKE predicate.limit(int value) Sets the maximum number of results; zero returns no rows.list()Executes the query, applying pagination and fetch requests.Adds a less-than predicate.Adds an inequality predicate; null matches SQL IS NOT NULL.offset(int value) Sets the number of leading results to skip.Appends an ordering term.
-
Method Details
-
join
-
leftJoin
-
fetch
-
containsElement
Description copied from interface:QueryAdds a scalar collection membership predicate without loading the collection.- Specified by:
containsElementin interfaceQuery<T>- Parameters:
field- Java element-collection namevalue- element to match; null matches SQL NULL- Returns:
- this query
-
eq
-
ne
-
gt
-
ge
-
lt
-
le
-
like
Description copied from interface:QueryAdds a SQL LIKE predicate. -
isNull
-
isNotNull
-
in
-
orderBy
Description copied from interface:QueryAppends an ordering term. Collection joins require ordering by root fields. -
limit
-
offset
-
list
-
first
-
count
-