public class

DefaultCacheUpdateDefinition

extends Object
implements CacheDefinition CacheUpdateDefinition
java.lang.Object
   ↳ org.springframework.cache.interceptor.DefaultCacheUpdateDefinition

Class Overview

Default implementation of the CacheUpdateDefinition interface.

Summary

Public Constructors
DefaultCacheUpdateDefinition()
Public Methods
boolean equals(Object other)
This implementation compares the toString() results.
Set<String> getCacheNames()
Returns the names of the cache against which this operation is performed.
String getCondition()
Returns the SpEL expression conditioning the operation.
String getKey()
Returns the SpEL expression identifying the cache key.
String getName()
Returns the name of this operation.
int hashCode()
This implementation returns toString()'s hash code.
void setCacheName(String cacheName)
void setCacheNames(String[] cacheNames)
void setCondition(String condition)
void setKey(String key)
void setName(String name)
String toString()
Return an identifying description for this cache operation definition.
Protected Methods
StringBuilder getDefinitionDescription()
Return an identifying description for this caching definition.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.cache.interceptor.CacheDefinition
From interface org.springframework.cache.interceptor.CacheUpdateDefinition

Public Constructors

public DefaultCacheUpdateDefinition ()

Public Methods

public boolean equals (Object other)

This implementation compares the toString() results.

See Also

public Set<String> getCacheNames ()

Returns the names of the cache against which this operation is performed.

Returns
  • names of the cache on which the operation is performed.

public String getCondition ()

Returns the SpEL expression conditioning the operation.

Returns
  • operation condition (as SpEL expression).

public String getKey ()

Returns the SpEL expression identifying the cache key.

public String getName ()

Returns the name of this operation. Can be null. In case of Spring's declarative caching, the exposed name will be: fully qualified class name.method name.

Returns
  • the operation name

public int hashCode ()

This implementation returns toString()'s hash code.

See Also

public void setCacheName (String cacheName)

public void setCacheNames (String[] cacheNames)

public void setCondition (String condition)

public void setKey (String key)

public void setName (String name)

public String toString ()

Return an identifying description for this cache operation definition.

Has to be overridden in subclasses for correct equals and hashCode behavior. Alternatively, equals(Object) and hashCode() can be overridden themselves.

Protected Methods

protected StringBuilder getDefinitionDescription ()

Return an identifying description for this caching definition.

Available to subclasses, for inclusion in their toString() result.