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 of
AbstractQueryCreator
.- Since:
- 3.0
- Author:
- Ryan Lubke
-
Constructor Summary
ConstructorDescriptionCoherenceQueryCreator
(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
Modifier and TypeMethodDescriptionprotected 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
protected QueryState
or
(QueryState base, QueryState criteria) Methods inherited from class org.springframework.data.repository.query.parser.AbstractQueryCreator
createQuery, createQuery
-
Constructor Details
-
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 Details
-
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
- 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
- Specified by:
complete
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,
QueryState>
-