Top Description Methods
net.sf.ehcache.search.query

public Interface QueryManager

Imports
net.sf.ehcache.CacheException, net.sf.ehcache.search.Query

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

Modifier and TypeMethod and Description
public Query

Returns:

a Queryobject tied to the cache specified in the statement
createQuery
(String
a String expressing an Ehcache Search query
statement
)

Parses a String statement expressing an Ehcache Search query and returns a Query object for the cache specified in the statement.

Method Detail

createQueryback to summary
public 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:String

a String expressing an Ehcache Search query

Returns:Query

a Queryobject tied to the cache specified in the statement

Exceptions
CacheException:
if the cache could not be found or if a parse error occurs