public class EntityParamQueryLookup extends QueryCacheLookup<Object>
Lookup using a Query over ModelObject
QueryCacheLookup.getQuery() string for parameters usage like ":param1" and then tries to fetch the value
from the model object and substitute it automatically into the Query.| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PARAM_PATTERN |
cache, cacheManager, em, queryCONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME| Constructor and Description |
|---|
EntityParamQueryLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.persistence.Query |
createQuery(Object domainObject)
An opportunity to modify the Query based on additional params/context
|
getQuery, setCacheName, setEm, setQuery, transformpublic static Pattern PARAM_PATTERN
protected javax.persistence.Query createQuery(Object domainObject) throws Exception
QueryCacheLookupcreateQuery in class QueryCacheLookup<Object>domainObject - as ObjectExceptionCopyright © 2018. All rights reserved.