CacheLookup
public class QueryCacheLookup<T> extends Object implements Lookup, CacheLookups
List
(if {cache
is defined)
PersistenceContext
Lookup
accepts query params then ensure caching is disabled by cache not being set/defined or else one may get unexpected/dirty results.Modifier and Type | Field and Description |
---|---|
protected org.springframework.cache.Cache |
cache
Deprecated.
|
protected org.springframework.cache.CacheManager |
cacheManager
Deprecated.
|
protected javax.persistence.EntityManager |
em
Deprecated.
|
protected String |
query
Deprecated.
JPA QL default Query String for this instance
|
CONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME
Constructor and Description |
---|
QueryCacheLookup()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.Query |
createQuery(T context)
Deprecated.
An opportunity to modify the Query based on additional params/context
|
String |
getQuery()
Deprecated.
JPA QL default Query String for this instance
|
void |
setCacheName(String cacheName)
Deprecated.
|
void |
setEm(javax.persistence.EntityManager em)
Deprecated.
|
void |
setQuery(String query)
Deprecated.
JPA QL default Query String for this instance
|
Object |
transform(Object queryParams)
Deprecated.
|
protected transient javax.persistence.EntityManager em
protected transient org.springframework.cache.Cache cache
@Autowired @Qualifier(value="cacheManager") protected transient org.springframework.cache.CacheManager cacheManager
protected String query
public void setCacheName(String cacheName)
public void setEm(javax.persistence.EntityManager em)
public String getQuery()
public void setQuery(String query)
Copyright © 2018. All rights reserved.