org.springframework.datastore.redis.query
Class RedisQuery

java.lang.Object
  extended by org.springframework.datastore.query.Query
      extended by org.springframework.datastore.redis.query.RedisQuery

public class RedisQuery
extends Query

A Query implementation for Redis

Since:
1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.datastore.query.Query
Query.AvgProjection, Query.Between, Query.Conjunction, Query.CountProjection, Query.Criterion, Query.Disjunction, Query.Equals, Query.GreaterThan, Query.GreaterThanEquals, Query.IdProjection, Query.In, Query.Junction, Query.LessThan, Query.LessThanEquals, Query.Like, Query.MaxProjection, Query.MinProjection, Query.Order, Query.Projection, Query.ProjectionList, Query.PropertyCriterion, Query.PropertyProjection, Query.SumProjection
 
Field Summary
 
Fields inherited from class org.springframework.datastore.query.Query
criteria, entity, max, offset, orderBy, projections
 
Constructor Summary
RedisQuery(RedisSession session, RedisTemplate redisTemplate, PersistentEntity persistentEntity, RedisEntityPersister entityPersister)
           
 
Method Summary
protected  String executeGreaterThanEquals(RedisEntityPersister entityPersister, Query.PropertyCriterion criterion)
           
protected  String executeLessThanEquals(RedisEntityPersister entityPersister, Query.PropertyCriterion criterion)
           
protected  List executeQuery(PersistentEntity entity, Query.Junction criteria)
          Subclasses should implement this to provide the concrete implementation of querying
protected  String executeSubBetween(RedisEntityPersister entityPersister, Query.Between between)
           
 
Methods inherited from class org.springframework.datastore.query.Query
add, and, between, disjunction, eq, firstResult, getEntity, getOrderBy, getSession, gt, gte, in, like, list, lt, lte, max, maxResults, offset, or, order, projections, setUniqueResult, singleResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedisQuery

public RedisQuery(RedisSession session,
                  RedisTemplate redisTemplate,
                  PersistentEntity persistentEntity,
                  RedisEntityPersister entityPersister)
Method Detail

executeQuery

protected List executeQuery(PersistentEntity entity,
                            Query.Junction criteria)
Description copied from class: Query
Subclasses should implement this to provide the concrete implementation of querying

Specified by:
executeQuery in class Query
Parameters:
entity - The entity
criteria - The criteria
Returns:
The results

executeLessThanEquals

protected String executeLessThanEquals(RedisEntityPersister entityPersister,
                                       Query.PropertyCriterion criterion)

executeGreaterThanEquals

protected String executeGreaterThanEquals(RedisEntityPersister entityPersister,
                                          Query.PropertyCriterion criterion)

executeSubBetween

protected String executeSubBetween(RedisEntityPersister entityPersister,
                                   Query.Between between)