A repository of TPCacheAdapters.
Type Params | Return Type | Name and description |
---|---|---|
|
TPCacheAdapter<T> |
getTPCacheAdapter(PersistentEntity entity) Returns TPCacheAdapter for the specified PersistentEntity. |
|
void |
setTPCacheAdapter(PersistentEntity entity, TPCacheAdapter<T> cacheAdapter) Sets TPCacheAdapter for the specified PersistentEntity. |
|
void |
setTPCacheAdapter(java.lang.Class entityJavaClass, TPCacheAdapter<T> cacheAdapter) Sets TPCacheAdapter for the specified java class of PersistentEntity. |
|
void |
setTPCacheAdapter(java.lang.String entityJavaClassFQN, TPCacheAdapter<T> cacheAdapter) Sets TPCacheAdapter for the specified FQN java class of PersistentEntity. |
Returns TPCacheAdapter for the specified PersistentEntity.
entity
- the entitySets TPCacheAdapter for the specified PersistentEntity. If the specified entity had another cache adapter before, the old one is ignored after this call.
entity
- the entitycacheAdapter
- the adapterSets TPCacheAdapter for the specified java class of PersistentEntity. If the specified entity had another cache adapter before, the old one is ignored after this call.
entityJavaClass
- equivalent to PersistentEntity.getJavaClasscacheAdapter
- the adapterSets TPCacheAdapter for the specified FQN java class of PersistentEntity. If the specified entity had another cache adapter before, the old one is ignored after this call.
entityJavaClassFQN
- equivalent to PersistentEntity.getJavaClass.getName()cacheAdapter
- the adapter