| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataCacheManager
Manages the system's data and query caches. You can retrieve the data cache manager from the 
 OpenJPAConfiguration.getDataCacheManagerInstance().
 
 Manages zero or more individual caches or partitions. Each individual partition
 is identified by a string-based identifier.
  
 Decides eligibility to cache for managed types.
| Method Summary | |
|---|---|
|  void | close()Close all caches. | 
|  ClearableScheduler | getClearableScheduler()Return the runnable which schedules evictions. | 
|  DataCache | getDataCache(String name)Return the named data cache, or null if it does not exist. | 
|  DataCache | getDataCache(String name,
             boolean create)Return the named data cache. | 
|  CacheDistributionPolicy | getDistributionPolicy()Return the user-specific policy that suggests the cache where a managed entity state is stored. | 
|  DataCachePCDataGenerator | getPCDataGenerator()Return the PCData generator if configured. | 
|  DataCache | getSystemDataCache()Return the system-wide data cache, or null if caching is not enabled. | 
|  QueryCache | getSystemQueryCache()Return the system query cache, or null if not configured. | 
|  void | initialize(OpenJPAConfiguration conf,
           ObjectValue dataCache,
           ObjectValue queryCache)Initialize the manager, supplying the cache configuration. | 
|  Map<String,Boolean> | listKnownTypes()Returns the names of classes that are known to the cache and whether or not they are currently being cached. | 
|  DataCache | selectCache(OpenJPAStateManager sm)Select the cache where the given managed proxy instance should be cached. | 
|  void | startCaching(String cls)Start caching the type matching the provided class name. | 
|  void | stopCaching(String cls)Stop caching the type matching the provided class name. | 
| Method Detail | 
|---|
void initialize(OpenJPAConfiguration conf,
                ObjectValue dataCache,
                ObjectValue queryCache)
DataCache getSystemDataCache()
DataCache getDataCache(String name)
DataCache getDataCache(String name,
                       boolean create)
create - if true, the cache will be created if it does
 not already existQueryCache getSystemQueryCache()
DataCachePCDataGenerator getPCDataGenerator()
ClearableScheduler getClearableScheduler()
DataCache selectCache(OpenJPAStateManager sm)
policy
 as specified by the user.
sm - the managed proxy instance
CacheDistributionPolicy getDistributionPolicy()
void close()
void stopCaching(String cls)
void startCaching(String cls)
Map<String,Boolean> listKnownTypes()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||