uPortal 2.4.1
API Documentation

org.jasig.portal.concurrency.caching
Class RDBMCachedEntityInvalidationStore

java.lang.Object
  extended byorg.jasig.portal.concurrency.caching.RDBMCachedEntityInvalidationStore

public class RDBMCachedEntityInvalidationStore
extends java.lang.Object

RDBMS-based store for CachedEntityInvalidations.

Version:
$Revision: 1.15.2.1 $
Author:
Dan Ellentuck
See Also:
CachedEntityInvalidation, IEntityCache

Constructor Summary
RDBMCachedEntityInvalidationStore()
          RDBMCachedEntityInvalidationStore constructor.
 
Method Summary
 void add(CachedEntityInvalidation cachedEnt)
          Adds/updates the row corresponding to this invalidation in the underlying store.
 void add(IBasicEntity entity, int cacheID)
          Adds/updates the row corresponding to this entity in the underlying store.
 void deleteAll()
          Delete all invalidations from the underlying store.
 void deleteBefore(java.util.Date expiration)
          Delete invalid entities the underlying store whose invalidation time is before invalidation.
 CachedEntityInvalidation[] find(java.lang.Class entityType, java.lang.String entityKey)
          Retrieve CachedEntityInvalidations from the underlying entity invalidation store.
 CachedEntityInvalidation[] findAfter(java.util.Date invalidation, java.lang.Class entityType, java.lang.String entityKey, java.lang.Integer cacheID)
          Retrieve CachedEntityInvalidations from the underlying store.
static RDBMCachedEntityInvalidationStore singleton()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMCachedEntityInvalidationStore

public RDBMCachedEntityInvalidationStore()
                                  throws CachingException
RDBMCachedEntityInvalidationStore constructor.

Method Detail

add

public void add(CachedEntityInvalidation cachedEnt)
         throws CachingException
Adds/updates the row corresponding to this invalidation in the underlying store.

Parameters:
cachedEnt - org.jasig.portal.concurrency.caching.CachedEntityInvalidation
Throws:
CachingException

add

public void add(IBasicEntity entity,
                int cacheID)
         throws CachingException
Adds/updates the row corresponding to this entity in the underlying store.

Parameters:
entity - org.jasig.portal.IBasicEntity entity
Throws:
CachingException

deleteAll

public void deleteAll()
               throws CachingException
Delete all invalidations from the underlying store.

Throws:
CachingException

deleteBefore

public void deleteBefore(java.util.Date expiration)
                  throws CachingException
Delete invalid entities the underlying store whose invalidation time is before invalidation.

Parameters:
expiration - java.util.Date
Throws:
CachingException

find

public CachedEntityInvalidation[] find(java.lang.Class entityType,
                                       java.lang.String entityKey)
                                throws CachingException
Retrieve CachedEntityInvalidations from the underlying entity invalidation store. Either or both of the parameters may be null.

Parameters:
entityType - Class
entityKey - String
Throws:
CachingException - - wraps an Exception specific to the store.

findAfter

public CachedEntityInvalidation[] findAfter(java.util.Date invalidation,
                                            java.lang.Class entityType,
                                            java.lang.String entityKey,
                                            java.lang.Integer cacheID)
                                     throws CachingException
Retrieve CachedEntityInvalidations from the underlying store. Any or all of the parameters may be null.

Parameters:
invalidation - Date
entityType - Class
entityKey - String
cacheID - Integer - the cache ID we do NOT want to retrieve.
Throws:
CachingException - - wraps an Exception specific to the store.

singleton

public static RDBMCachedEntityInvalidationStore singleton()
                                                   throws CachingException
Returns:
org.jasig.portal.concurrency.caching.RDBMCachedEntityInvalidationStore
Throws:
CachingException

uPortal 2.4.1
API Documentation