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, query
CONTENT_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, transform
public static Pattern PARAM_PATTERN
protected javax.persistence.Query createQuery(Object domainObject) throws Exception
QueryCacheLookup
createQuery
in class QueryCacheLookup<Object>
domainObject
- as ObjectException
Copyright © 2018. All rights reserved.