Class CoherenceQueryCreator
- java.lang.Object
-
- org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
-
- com.oracle.coherence.spring.data.repository.query.CoherenceQueryCreator
-
public class CoherenceQueryCreator extends org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
Coherence implementation ofAbstractQueryCreator
.- Since:
- 3.0
- Author:
- Ryan Lubke
-
-
Constructor Summary
Constructors Constructor Description CoherenceQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, org.springframework.data.repository.query.ParameterAccessor parameters)
Construct a newCoherenceQueryCreator
that will create a Coherence-specificQueryResult
containing the necessary components to execute a query against a Coherence grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryState
and(org.springframework.data.repository.query.parser.Part part, QueryState base, Iterator<Object> iterator)
protected QueryResult
complete(QueryState criteria, org.springframework.data.domain.Sort sort)
protected QueryState
create(org.springframework.data.repository.query.parser.Part part, Iterator<Object> iterator)
protected QueryState
or(QueryState base, QueryState criteria)
-
-
-
Constructor Detail
-
CoherenceQueryCreator
public CoherenceQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, org.springframework.data.repository.query.ParameterAccessor parameters)
Construct a newCoherenceQueryCreator
that will create a Coherence-specificQueryResult
containing the necessary components to execute a query against a Coherence grid.- Parameters:
tree
- thePartTree
generated from a finder expressionparameters
- the parameters to pass to the query creation process
-
-
Method Detail
-
create
protected QueryState create(org.springframework.data.repository.query.parser.Part part, Iterator<Object> iterator)
- Specified by:
create
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
-
and
protected QueryState and(org.springframework.data.repository.query.parser.Part part, @Nullable QueryState base, Iterator<Object> iterator)
- Specified by:
and
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
- Parameters:
part
-base
- ignored - we use the sameQueryState
instance during the lifetime of the query processingiterator
-- Returns:
-
or
protected QueryState or(QueryState base, QueryState criteria)
- Specified by:
or
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
- Parameters:
base
- ignored - we use the sameQueryState
instance during the lifetime of the query processingcriteria
-- Returns:
-
complete
protected QueryResult complete(QueryState criteria, org.springframework.data.domain.Sort sort)
- Specified by:
complete
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
-
-