|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.descriptors.invalidation.CacheInvalidationPolicy
public abstract class CacheInvalidationPolicy
A CacheInvalidationPolicy is used to set objects in TopLink's identity maps to be invalid following given rules. CacheInvalidationPolicy is the abstract superclass for all policies used for cache invalidation. By default in TopLink, objects do not expire in the cache. Several different policies are available to allow objects to expire. These can be set on the ClassDescriptor.
ClassDescriptor
,
NoExpiryCacheInvalidationPolicy
,
DailyCacheInvalidationPolicy
,
TimeToLiveCacheInvalidationPolicy
,
Serialized FormField Summary | |
---|---|
static long |
NO_EXPIRY
|
Constructor Summary | |
---|---|
CacheInvalidationPolicy()
|
Method Summary | |
---|---|
void |
setShouldRefreshInvalidObjectsInUnitOfWork(boolean shouldRefreshInvalidObjectsInUnitOfWork)
Set if expired object registered in the unit of work should be refreshed, default is true. |
void |
setShouldUpdateReadTimeOnUpdate(boolean shouldUpdateReadTime)
Set whether to update the stored time an object was read when an object is updated. |
boolean |
shouldRefreshInvalidObjectsInUnitOfWork()
Return if expired object registered in the unit of work should be refreshed. |
boolean |
shouldUpdateReadTimeOnUpdate()
Return whether objects affected by this CacheInvalidationPolicy should have the read time on their cache keys updated when an update occurs. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long NO_EXPIRY
Constructor Detail |
---|
public CacheInvalidationPolicy()
Method Detail |
---|
public void setShouldUpdateReadTimeOnUpdate(boolean shouldUpdateReadTime)
public boolean shouldUpdateReadTimeOnUpdate()
public void setShouldRefreshInvalidObjectsInUnitOfWork(boolean shouldRefreshInvalidObjectsInUnitOfWork)
public boolean shouldRefreshInvalidObjectsInUnitOfWork()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |