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 String |
createQuery(CassandraParameterAccessor accessor)
Creates a string query 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. |
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.public CassandraQueryMethod getQueryMethod()
getQueryMethod in interface RepositoryQuerypublic 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.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)
@Deprecated public void setConversionService(ConversionService conversionService)
CassandraMappingContext handles type
conversion.@Deprecated public ConversionService getConversionService()
CassandraMappingContext handles type
conversion.protected abstract String createQuery(CassandraParameterAccessor accessor)
ParameterAccessoraccessor - must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.