org.hibernate.cache.jbc2.query
Class QueryResultsRegionImpl

java.lang.Object
  extended by org.hibernate.cache.jbc2.BasicRegionAdapter
      extended by org.hibernate.cache.jbc2.TransactionalDataRegionAdapter
          extended by org.hibernate.cache.jbc2.query.QueryResultsRegionImpl
All Implemented Interfaces:
GeneralDataRegion, QueryResultsRegion, Region, TransactionalDataRegion

public class QueryResultsRegionImpl
extends TransactionalDataRegionAdapter
implements QueryResultsRegion

Defines the behavior of the query cache regions for JBossCache 2.x.

Version:
$Revision: 17811 $
Author:
Brian Stansberry

Field Summary
static String QUERY_CACHE_LOCAL_ONLY_PROP
           
static String TYPE
           
 
Fields inherited from class org.hibernate.cache.jbc2.TransactionalDataRegionAdapter
metadata
 
Fields inherited from class org.hibernate.cache.jbc2.BasicRegionAdapter
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, replication, transactionManager
 
Constructor Summary
QueryResultsRegionImpl(org.jboss.cache.Cache jbcCache, String regionName, String regionPrefix, Properties properties)
          Create a new QueryResultsRegionImpl.
 
Method Summary
protected  org.jboss.cache.Fqn<String> createRegionFqn(String regionName, String regionPrefix)
           
 void evict(Object key)
           
 void evictAll()
           
 Object get(Object key)
           
 void put(Object key, Object value)
           
 
Methods inherited from class org.hibernate.cache.jbc2.TransactionalDataRegionAdapter
getCacheDataDescription, isTransactionAware
 
Methods inherited from class org.hibernate.cache.jbc2.BasicRegionAdapter
activateLocalClusterNode, checkValid, contains, deactivateLocalNode, destroy, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getMemberId, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, handleEvictAllInvalidation, handleEvictAllModification, nextTimestamp, nodeInvalidated, nodeModified, resume, suspend, suspendAndGet, toMap, viewChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.cache.Region
destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
 

Field Detail

QUERY_CACHE_LOCAL_ONLY_PROP

public static final String QUERY_CACHE_LOCAL_ONLY_PROP
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

QueryResultsRegionImpl

public QueryResultsRegionImpl(org.jboss.cache.Cache jbcCache,
                              String regionName,
                              String regionPrefix,
                              Properties properties)
Create a new QueryResultsRegionImpl.

Parameters:
jbcCache - The JBC cache instance to use to store the query results
regionName - The name of the region (within the JBC cache)
regionPrefix - Any region prefix to apply
properties - The configuration properties.
Method Detail

evict

public void evict(Object key)
           throws CacheException
Specified by:
evict in interface GeneralDataRegion
Throws:
CacheException

evictAll

public void evictAll()
              throws CacheException
Specified by:
evictAll in interface GeneralDataRegion
Throws:
CacheException

get

public Object get(Object key)
           throws CacheException
Specified by:
get in interface GeneralDataRegion
Throws:
CacheException

put

public void put(Object key,
                Object value)
         throws CacheException
Specified by:
put in interface GeneralDataRegion
Throws:
CacheException

createRegionFqn

protected org.jboss.cache.Fqn<String> createRegionFqn(String regionName,
                                                      String regionPrefix)
Specified by:
createRegionFqn in class BasicRegionAdapter


Copyright © 2011 Hibernate.org. All Rights Reserved.