public interface ExecutableFindOperation
ExecutableFindOperation allows creation and execution of MongoDB find operations in a fluent API style.
Query provided via matching into the
MongoDB specific representation. By default, the originating domainType is also used for mapping back the
result from the Document. However, it is possible to define an different returnType via
as to mapping the result.Document. Using inCollection allows to override the
collection name for the execution.
query(Human.class)
.inCollection("star-wars")
.as(Jedi.class)
.matching(query(where("firstname").is("luke")))
.all();
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExecutableFindOperation.DistinctWithProjection
Result type override.
|
static interface |
ExecutableFindOperation.DistinctWithQuery<T>
Result restrictions.
|
static interface |
ExecutableFindOperation.ExecutableFind<T>
ExecutableFindOperation.ExecutableFind provides methods for constructing lookup operations in a fluent way. |
static interface |
ExecutableFindOperation.FindDistinct
Distinct Find support.
|
static interface |
ExecutableFindOperation.FindWithCollection<T>
Collection override (Optional).
|
static interface |
ExecutableFindOperation.FindWithProjection<T>
Result type override (Optional).
|
static interface |
ExecutableFindOperation.FindWithQuery<T>
Terminating operations invoking the actual query execution.
|
static interface |
ExecutableFindOperation.TerminatingDistinct<T>
Terminating distinct find operations.
|
static interface |
ExecutableFindOperation.TerminatingFind<T>
Trigger find execution by calling one of the terminating methods.
|
static interface |
ExecutableFindOperation.TerminatingFindNear<T>
Trigger geonear execution by calling one of the terminating methods.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ExecutableFindOperation.ExecutableFind<T> |
query(Class<T> domainType)
Start creating a find operation for the given domainType.
|
<T> ExecutableFindOperation.ExecutableFind<T> query(Class<T> domainType)
domainType - must not be null.ExecutableFindOperation.ExecutableFind.IllegalArgumentException - if domainType is null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.