Package com.avoka.core.util
Class QueryCacheTraceWrapper
- java.lang.Object
-
- com.avoka.core.util.QueryCacheTraceWrapper
-
- All Implemented Interfaces:
org.apache.cayenne.cache.QueryCache
public class QueryCacheTraceWrapper extends Object implements org.apache.cayenne.cache.QueryCache
A QueryCache decorator that adds extra debugging information.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description QueryCacheTraceWrapper(org.apache.cayenne.cache.QueryCache delegate)
Creates a new QueryCacheTraceWrapper with a delegate QueryCache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
List
get(org.apache.cayenne.query.QueryMetadata queryMetadata)
List
get(org.apache.cayenne.query.QueryMetadata queryMetadata, org.apache.cayenne.cache.QueryCacheEntryFactory factory)
void
put(org.apache.cayenne.query.QueryMetadata queryMetadata, List list)
void
remove(String key)
void
removeGroup(String group)
void
removeGroup(String groupKey, Class<?> keyType, Class<?> valueType)
int
size()
-
-
-
Constructor Detail
-
QueryCacheTraceWrapper
public QueryCacheTraceWrapper(org.apache.cayenne.cache.QueryCache delegate)
Creates a new QueryCacheTraceWrapper with a delegate QueryCache.- Parameters:
delegate
- an actual QueryCache implementation, such as EhCacheQueryCache that will be delegated all the API calls.
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.cayenne.cache.QueryCache
-
get
public List get(org.apache.cayenne.query.QueryMetadata queryMetadata, org.apache.cayenne.cache.QueryCacheEntryFactory factory)
- Specified by:
get
in interfaceorg.apache.cayenne.cache.QueryCache
-
get
public List get(org.apache.cayenne.query.QueryMetadata queryMetadata)
- Specified by:
get
in interfaceorg.apache.cayenne.cache.QueryCache
-
put
public void put(org.apache.cayenne.query.QueryMetadata queryMetadata, List list)
- Specified by:
put
in interfaceorg.apache.cayenne.cache.QueryCache
-
remove
public void remove(String key)
- Specified by:
remove
in interfaceorg.apache.cayenne.cache.QueryCache
-
removeGroup
public void removeGroup(String group)
- Specified by:
removeGroup
in interfaceorg.apache.cayenne.cache.QueryCache
-
removeGroup
public void removeGroup(String groupKey, Class<?> keyType, Class<?> valueType)
- Specified by:
removeGroup
in interfaceorg.apache.cayenne.cache.QueryCache
-
size
public int size()
- Specified by:
size
in interfaceorg.apache.cayenne.cache.QueryCache
-
-