Class 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

      Constructors 
      Constructor Description
      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.
    • 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, java.util.Iterator<java.lang.Object> iterator)
      protected QueryResult complete​(QueryState criteria, org.springframework.data.domain.Sort sort)  
      protected QueryState create​(org.springframework.data.repository.query.parser.Part part, java.util.Iterator<java.lang.Object> iterator)  
      protected QueryState or​(QueryState base, QueryState criteria)
      • Methods inherited from class org.springframework.data.repository.query.parser.AbstractQueryCreator

        createQuery, createQuery
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • create

        protected QueryState create​(org.springframework.data.repository.query.parser.Part part,
                                    java.util.Iterator<java.lang.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,
                                 java.util.Iterator<java.lang.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>