Interface ExecutableSelectOperation
- All Known Subinterfaces:
CassandraAdminOperations
,CassandraOperations
,FluentCassandraOperations
- All Known Implementing Classes:
CassandraAdminTemplate
,CassandraTemplate
public interface ExecutableSelectOperation
The
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 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();
- Since:
- 2.1
- Author:
- Mark Paluch, John Blum
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheExecutableSelectOperation.ExecutableSelect
interface provides methods for constructingSELECT
query operations in a fluent way.static interface
Result type override (optional).static interface
Filtering (optional).static interface
Table override (optional).static interface
TriggerSELECT
query execution by calling one of the terminating methods. -
Method Summary
Modifier and TypeMethodDescriptionBegin creating a CassandraSELECT
query operation for the givendomainType
.
-
Method Details
-
query
Begin creating a CassandraSELECT
query operation for the givendomainType
.- Type Parameters:
T
-type
of the application domain object.- Parameters:
domainType
-type
to domain object to query; must not be null.- Returns:
- new instance of
ExecutableSelectOperation.ExecutableSelect
. - Throws:
IllegalArgumentException
- ifdomainType
is null.- See Also:
-