public final class CacheTarget extends AbstractDataTransferObject
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey()
Checks if this instance contains a key.
|
static CacheTarget |
entireCache(String cache)
Creates an instance targeting an entire cache.
|
String |
getCache()
The name of the cache to target.
|
String |
getKey()
The key of the item in the cache to target.
|
static CacheTarget |
singleEntry(String cache,
String key)
Creates an instance targeting a single item in a cache based on the given key.
|
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
public static CacheTarget entireCache(String cache)
cache
- the name of the cache. cannot be a null or blank stringIllegalArgumentException
- if cache is null or blankpublic static CacheTarget singleEntry(String cache, String key)
cache
- The name of the cache. cannot be a null or blank string.key
- The key of the item in the cache. cannot be a null of blank string.IllegalArgumentException
- if the cache or key is null or blankpublic boolean containsKey()
public String getCache()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.