Package net.sf.ehcache.search.query
Class QueryManagerBuilder
- java.lang.Object
-
- net.sf.ehcache.search.query.QueryManagerBuilder
-
public final class QueryManagerBuilder extends java.lang.ObjectAQuery Managerbuilder providing methods to add caches which can be queried. The Query Manager instance returned by this builder can be used to execute search queries expressed as Big Memory Structured Query Language (BMSQL) statements.- Author:
- dkumar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryManagerBuilderaddAllCachesCurrentlyIn(CacheManager cacheManager)Adds allCachespresent in aCache Managerto the internal state of the query manager.QueryManagerBuilderaddCache(Ehcache cache)Adds aCacheto the internal state and allows it to be used as a target in a BMSQL statement's FROM clause.QueryManagerbuild()Returns a newQuery Managerusing the options supplied during the building process.static QueryManagerBuildernewQueryManagerBuilder()Creates a newQuery Managerbuilder.
-
-
-
Method Detail
-
newQueryManagerBuilder
public static QueryManagerBuilder newQueryManagerBuilder()
Creates a newQuery Managerbuilder.- Returns:
- this for the builder pattern
-
addCache
public QueryManagerBuilder addCache(Ehcache cache)
Adds aCacheto the internal state and allows it to be used as a target in a BMSQL statement's FROM clause.- Parameters:
cache- acacheinstance to be added- Returns:
- this for the builder pattern
-
addAllCachesCurrentlyIn
public QueryManagerBuilder addAllCachesCurrentlyIn(CacheManager cacheManager)
Adds allCachespresent in aCache Managerto the internal state of the query manager. The added caches can be used in a BMSQL statement's FROM clause.- Parameters:
cacheManager- aCache Managerwhosecachesneed to be added- Returns:
- this for the builder pattern
-
build
public QueryManager build()
Returns a newQuery Managerusing the options supplied during the building process.- Returns:
- the fully constructed
Query Manager
-
-