public abstract class AbstractCassandraQuery extends Object implements RepositoryQuery
RepositoryQuery
implementations for Cassandra.Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
AbstractCassandraQuery(CassandraQueryMethod queryMethod,
CassandraOperations operations)
|
Modifier and Type | Method and Description |
---|---|
protected abstract com.datastax.driver.core.Statement |
createQuery(CassandraParameterAccessor accessor)
Creates a
Statement using the given ParameterAccessor |
Object |
execute(Object[] parameters) |
Object |
getCollectionOfEntity(com.datastax.driver.core.ResultSet resultSet,
Class<?> declaredReturnType,
Class<?> returnedUnwrappedObjectType)
Deprecated.
as of 1.5,
CassandraMappingContext handles type
conversion. |
ConversionService |
getConversionService()
Deprecated.
as of 1.5,
CassandraMappingContext handles type
conversion. |
protected EntityInstantiators |
getEntityInstantiators() |
protected CassandraOperations |
getOperations() |
CassandraQueryMethod |
getQueryMethod() |
Object |
getSingleEntity(com.datastax.driver.core.ResultSet resultSet,
Class<?> type)
Deprecated.
as of 1.5,
CassandraMappingContext handles type
conversion. |
void |
setConversionService(ConversionService conversionService)
Deprecated.
as of 1.5,
CassandraMappingContext handles type
conversion. |
protected void |
warnIfMoreResults(Iterator<com.datastax.driver.core.Row> iterator)
Deprecated.
|
public AbstractCassandraQuery(CassandraQueryMethod queryMethod, CassandraOperations operations)
queryMethod
- must not be null.operations
- must not be null.@Deprecated public void setConversionService(ConversionService conversionService)
CassandraMappingContext
handles type
conversion.@Deprecated public ConversionService getConversionService()
CassandraMappingContext
handles type
conversion.protected EntityInstantiators getEntityInstantiators()
protected CassandraOperations getOperations()
public CassandraQueryMethod getQueryMethod()
getQueryMethod
in interface RepositoryQuery
public Object execute(Object[] parameters)
execute
in interface RepositoryQuery
@Deprecated public Object getCollectionOfEntity(com.datastax.driver.core.ResultSet resultSet, Class<?> declaredReturnType, Class<?> returnedUnwrappedObjectType)
CassandraMappingContext
handles type
conversion.ParameterAccessor
.resultSet
- declaredReturnType
- returnedUnwrappedObjectType
- @Deprecated public Object getSingleEntity(com.datastax.driver.core.ResultSet resultSet, Class<?> type)
CassandraMappingContext
handles type
conversion.resultSet
- type
- @Deprecated protected void warnIfMoreResults(Iterator<com.datastax.driver.core.Row> iterator)
protected abstract com.datastax.driver.core.Statement createQuery(CassandraParameterAccessor accessor)
Statement
using the given ParameterAccessor
accessor
- must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.