org.pm4j.core.pm.impl.cache
Interface PmCacheStrategy

All Known Implementing Classes:
PmCacheStrategyBase, PmCacheStrategyNoCache, PmCacheStrategyRequest, PmCacheStrategySession

public interface PmCacheStrategy

Interface for PM cache strategy implementations.

Author:
olaf boede

Field Summary
static java.lang.Object NO_CACHE_VALUE
          Marker instance, identifies no value within the cache.
static java.lang.Object NULL_VALUE_OBJECT
          Marker instance, identifies a null value within the cache.
 
Method Summary
 void clear(PmObject pm)
           
 java.lang.Object getCachedValue(PmObject pm)
           
 boolean isCaching()
           
 java.lang.Object setAndReturnCachedValue(PmObject pm, java.lang.Object value)
           
 

Field Detail

NO_CACHE_VALUE

static final java.lang.Object NO_CACHE_VALUE
Marker instance, identifies no value within the cache.


NULL_VALUE_OBJECT

static final java.lang.Object NULL_VALUE_OBJECT
Marker instance, identifies a null value within the cache.

Method Detail

getCachedValue

java.lang.Object getCachedValue(PmObject pm)

setAndReturnCachedValue

java.lang.Object setAndReturnCachedValue(PmObject pm,
                                         java.lang.Object value)

clear

void clear(PmObject pm)

isCaching

boolean isCaching()