Class CapturingQueryMaker

  • All Implemented Interfaces:
    QueryMaker

    public class CapturingQueryMaker
    extends Object
    implements QueryMaker
    A dummy QueryMaker usable to capture the low level sqlInfo, model and session from a high-level session, in order to further test QueryMakers.
    Author:
    Florent Guillaume
    • Constructor Detail

      • CapturingQueryMaker

        public CapturingQueryMaker()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: QueryMaker
        Gets the name for this query maker.
        Specified by:
        getName in interface QueryMaker
      • accepts

        public boolean accepts​(String queryType)
        Description copied from interface: QueryMaker
        Checks if this query maker accepts a given query.

        Called first.

        Specified by:
        accepts in interface QueryMaker
        Parameters:
        queryType - the query
        Returns:
        true if the query is accepted