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 Details

    • CoherenceQueryCreator

      public CoherenceQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, org.springframework.data.repository.query.ParameterAccessor parameters)
      Construct a new CoherenceQueryCreator that will create a Coherence-specific QueryResult containing the necessary components to execute a query against a Coherence grid.
      Parameters:
      tree - the PartTree generated from a finder expression
      parameters - 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 class org.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 class org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
      Parameters:
      part -
      base - ignored - we use the same QueryState instance during the lifetime of the query processing
      iterator -
      Returns:
    • or

      protected QueryState or(QueryState base, QueryState criteria)
      Specified by:
      or in class org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>
      Parameters:
      base - ignored - we use the same QueryState instance during the lifetime of the query processing
      criteria -
      Returns:
    • complete

      protected QueryResult complete(QueryState criteria, org.springframework.data.domain.Sort sort)
      Specified by:
      complete in class org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryResult,QueryState>