public class CassandraQueryMethod extends QueryMethod
QueryMethod.| Constructor and Description |
|---|
CassandraQueryMethod(Method method,
RepositoryMetadata repositoryMetadata,
ProjectionFactory projectionFactory,
CassandraMappingContext mappingContext)
Creates a new
CassandraQueryMethod from the given Method. |
| Modifier and Type | Method and Description |
|---|---|
protected CassandraParameters |
createParameters(Method method) |
String |
getAnnotatedQuery()
Returns the query string declared in a
Query annotation or null if neither the annotation found
nor the attribute was specified. |
CassandraEntityMetadata<?> |
getEntityInformation() |
CassandraParameters |
getParameters() |
TypeInformation<?> |
getReturnType() |
boolean |
hasAnnotatedQuery()
Returns whether the method has an annotated query.
|
boolean |
isResultSetQuery() |
void |
verify(Method method,
RepositoryMetadata metadata)
Validates that this query is not a page or slice query.
|
getDomainClass, getName, getNamedQueryName, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic CassandraQueryMethod(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory projectionFactory, CassandraMappingContext mappingContext)
CassandraQueryMethod from the given Method.method - must not be null.repositoryMetadata - must not be null.projectionFactory - must not be null.mappingContext - must not be null.public void verify(Method method, RepositoryMetadata metadata)
public CassandraEntityMetadata<?> getEntityInformation()
getEntityInformation in class QueryMethodpublic CassandraParameters getParameters()
getParameters in class QueryMethodprotected CassandraParameters createParameters(Method method)
createParameters in class QueryMethodpublic boolean hasAnnotatedQuery()
public String getAnnotatedQuery()
Query annotation or null if neither the annotation found
nor the attribute was specified.public TypeInformation<?> getReturnType()
QueryMethod.public boolean isResultSetQuery()
ResultSet.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.