public interface ExecutableSelectOperation
ExecutableSelectOperation interface allows creation and execution of Cassandra SELECT operations
in a fluent API style.
The starting domainType is used for mapping the Query provided via matching into the
Cassandra-specific representation. By default, the originating domainType is also used for mapping back
the result from the com.datastax.driver.core.Row. However, it is possible to define an different
returnType via as for mapping the result.
By default, the table to operate on is derived from the initial domainType and can be defined there with
the Table annotation as well. Using inTable allows a
user to override the table name for the execution.
query(Human.class)
.inTable("star_wars")
.as(Jedi.class)
.matching(query(where("firstname").is("luke")))
.all();
Query| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExecutableSelectOperation.ExecutableSelect<T>
The
ExecutableSelectOperation.ExecutableSelect interface provides methods for constructing SELECT query operations in a
fluent way. |
static interface |
ExecutableSelectOperation.SelectWithProjection<T>
Result type override (optional).
|
static interface |
ExecutableSelectOperation.SelectWithQuery<T>
Filtering (optional).
|
static interface |
ExecutableSelectOperation.SelectWithTable<T>
Table override (optional).
|
static interface |
ExecutableSelectOperation.TerminatingSelect<T>
Trigger
SELECT query execution by calling one of the terminating methods. |
| Modifier and Type | Method and Description |
|---|---|
<T> ExecutableSelectOperation.ExecutableSelect<T> |
query(Class<T> domainType)
Begin creating a Cassandra
SELECT query operation for the given domainType. |
<T> ExecutableSelectOperation.ExecutableSelect<T> query(Class<T> domainType)
SELECT query operation for the given domainType.T - type of the application domain object.domainType - type to domain object to query; must not be null.ExecutableSelectOperation.ExecutableSelect.IllegalArgumentException - if domainType is null.ExecutableSelectOperation.ExecutableSelectCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.