Interface QueryManager


  • public interface QueryManager
    Main entry point from Ehcache into the query manager responsible for parsing SQL-like statements and returning a net.sf.ehcache.search.Query object.

    This interface obviates Ehcache's dependence on a specific dialect of SQL. Implementations are free to decide which SQL-like language is supported by them.

    Author:
    dkumar
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Query createQuery​(java.lang.String statement)
      Parses a String statement expressing an Ehcache Search query and returns a Query object for the cache specified in the statement.
    • Method Detail

      • createQuery

        Query createQuery​(java.lang.String statement)
                   throws CacheException
        Parses a String statement expressing an Ehcache Search query and returns a Query object for the cache specified in the statement.
        Parameters:
        statement - a String expressing an Ehcache Search query
        Returns:
        a Queryobject tied to the cache specified in the statement
        Throws:
        CacheException - if the cache could not be found or if a parse error occurs