|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.datacache.DefaultCacheDistributionPolicy
public class DefaultCacheDistributionPolicy
A default implementation that selects the cache by the type of the given managed instance.
The name of the cache is determined by name as specified by
the metadata.
ClassMetaData.getDataCacheName()| Constructor Summary | |
|---|---|
DefaultCacheDistributionPolicy()
|
|
| Method Summary | |
|---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
String |
selectCache(OpenJPAStateManager sm,
Object context)
Selects the name of the cache where the given managed proxy object state be cached. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCacheDistributionPolicy()
| Method Detail |
|---|
public String selectCache(OpenJPAStateManager sm,
Object context)
CacheDistributionPolicy
selectCache in interface CacheDistributionPolicysm - the managed proxy object to be cached. The actual managed instance can be accessed from the proxy
instance simply as sm.getManagedInstance().context - the context of invocation. No specific semantics is attributed currently. Can be null.
public void endConfiguration()
Configurable
endConfiguration in interface Configurablepublic void setConfiguration(Configuration conf)
Configurable
setConfiguration in interface Configurablepublic void startConfiguration()
Configurable
startConfiguration in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||