com.rhi.architecture.cache
Interface Cacheable
- public interface Cacheable
Interface used by the caching system for cacheable
objects.
- Since:
- 1.0
- Author:
- G Srinivas
Field Summary |
static java.lang.String |
MULTIPLE_KEY_DELIMITER
Use this delimiter to delimit key for a cacheable object
if it is formed with multiple attributes. |
Method Summary |
java.lang.String |
getKey(java.lang.Object vo)
This method has to form the key for each caheable object. |
MULTIPLE_KEY_DELIMITER
public static final java.lang.String MULTIPLE_KEY_DELIMITER
- Use this delimiter to delimit key for a cacheable object
if it is formed with multiple attributes.
- See Also:
- Constant Field Values
getKey
public java.lang.String getKey(java.lang.Object vo)
- This method has to form the key for each caheable object.
If the key for the object is formed with muliple attributes
then MULTIPLE_KEY_DELIMITER has to be used as delimiter.
For example:
For object of Functional Role the key is combination of
functional_role_id and lob_id.
- Parameters:
vo
-
- Returns:
- String
Copyright © 2002-2004 Robert Half International. All Rights Reserved.