ehcache

net.sf.ehcache.search.query
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
 Query createQuery(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(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

ehcache

Copyright 2001-2017, Terracotta, Inc.