class CachePutOperation extends AbstractJCacheKeyOperation<CachePut>
JCacheOperation implementation for a CachePut operation.CachePutAbstractJCacheOperation.CacheInvocationParameterImpl, AbstractJCacheOperation.CacheParameterDetail| Modifier and Type | Field and Description |
|---|---|
private ExceptionTypeFilter |
exceptionTypeFilter |
private AbstractJCacheOperation.CacheParameterDetail |
valueParameterDetail |
allParameterDetails| Constructor and Description |
|---|
CachePutOperation(<any> methodDetails,
CacheResolver cacheResolver,
KeyGenerator keyGenerator) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionTypeFilter |
getExceptionTypeFilter()
Return the
ExceptionTypeFilter to use to filter exceptions thrown while
invoking the method. |
CacheInvocationParameter |
getValueParameter(java.lang.Object... values)
Return the
CacheInvocationParameter for the parameter holding the value
to cache. |
private static AbstractJCacheOperation.CacheParameterDetail |
initializeValueParameterDetail(java.lang.reflect.Method method,
java.util.List<AbstractJCacheOperation.CacheParameterDetail> allParameters) |
boolean |
isEarlyPut()
Specify if the cache should be updated before invoking the method.
|
getKeyGenerator, getKeyParameterscreateExceptionTypeFilter, getAllParameters, getAnnotations, getCacheAnnotation, getCacheName, getCacheNames, getCacheResolver, getMethod, getOperationDescription, toStringprivate final ExceptionTypeFilter exceptionTypeFilter
private final AbstractJCacheOperation.CacheParameterDetail valueParameterDetail
public CachePutOperation(<any> methodDetails,
CacheResolver cacheResolver,
KeyGenerator keyGenerator)
public ExceptionTypeFilter getExceptionTypeFilter()
AbstractJCacheOperationExceptionTypeFilter to use to filter exceptions thrown while
invoking the method.getExceptionTypeFilter in class AbstractJCacheOperation<CachePut>public boolean isEarlyPut()
javax.cache.annotation.CachePut#afterInvocation()public CacheInvocationParameter getValueParameter(java.lang.Object... values)
CacheInvocationParameter for the parameter holding the value
to cache.
The method arguments must match the signature of the related method invocation
values - the parameters value for a particular invocationCacheInvocationParameter instance for the value parameterprivate static AbstractJCacheOperation.CacheParameterDetail initializeValueParameterDetail(java.lang.reflect.Method method, java.util.List<AbstractJCacheOperation.CacheParameterDetail> allParameters)