org.apache.openjpa.datacache
Interface CacheDistributionPolicy
- All Known Implementing Classes:
- CacheDistributionPolicy.Default
public interface CacheDistributionPolicy
A policy determines the name of the cache where a given entity state will be cached.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
|
Nested Class Summary |
static class |
CacheDistributionPolicy.Default
A default implementation that selects the cache by the type of the given
managed instance. |
selectCache
String selectCache(OpenJPAStateManager sm,
Object context)
- Selects the name of the cache where the given managed proxy object state be cached.
- Parameters:
sm - the managed proxy object to be cachedcontext - the context of invocation. No specific semantics is
attributed currently. Can be null.
- Returns:
- name of the cache or null if the managed instance need not be cached.
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.