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 newCoherenceQueryCreatorthat will create a Coherence-specificQueryResultcontaining 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 QueryStateand(org.springframework.data.repository.query.parser.Part part, QueryState base, Iterator<Object> iterator)protected QueryResultcomplete(QueryState criteria, org.springframework.data.domain.Sort sort)protected QueryStatecreate(org.springframework.data.repository.query.parser.Part part, Iterator<Object> iterator)protected QueryStateor(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 newCoherenceQueryCreatorthat will create a Coherence-specificQueryResultcontaining the necessary components to execute a query against a Coherence grid.- Parameters:
tree- thePartTreegenerated 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:
createin 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:
andin classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>- Parameters:
part-base- ignored - we use the sameQueryStateinstance during the lifetime of the query processingiterator-- Returns:
-
or
protected QueryState or(QueryState base, QueryState criteria)
- Specified by:
orin classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>- Parameters:
base- ignored - we use the sameQueryStateinstance during the lifetime of the query processingcriteria-- Returns:
-
complete
protected QueryResult complete(QueryState criteria, org.springframework.data.domain.Sort sort)
- Specified by:
completein classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
-
-