Package net.sf.ehcache.search.query
Interface QueryManager
-
public interface QueryManagerMain 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 QuerycreateQuery(java.lang.String statement)Parses aStringstatement expressing an Ehcache Search query and returns aQueryobject for the cache specified in the statement.
-
-
-
Method Detail
-
createQuery
Query createQuery(java.lang.String statement) throws CacheException
Parses aStringstatement expressing an Ehcache Search query and returns aQueryobject 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
-
-