alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (BaseGeneralDataRegion.java)

This example Hibernate source code file (BaseGeneralDataRegion.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Hibernate tags/keywords

basegeneraldataregion, basegeneraldataregion, baseregion, cacheexception, cacheexception, generaldataregion, object, object, regionfactory, regionfactory, string, transaction, transactionmanager

The Hibernate BaseGeneralDataRegion.java source code

package org.hibernate.cache.infinispan.impl;
import javax.transaction.TransactionManager;
import org.hibernate.cache.CacheException;
import org.hibernate.cache.spi.GeneralDataRegion;
import org.hibernate.cache.spi.RegionFactory;
import org.hibernate.cache.infinispan.util.CacheAdapter;

/**
 * Support for Infinispan {@link GeneralDataRegion} implementors.
 * 
 * @author Chris Bredesen
 * @author Galder ZamarreƱo
 * @since 3.5
 */
public abstract class BaseGeneralDataRegion extends BaseRegion implements GeneralDataRegion {

   public BaseGeneralDataRegion(CacheAdapter cacheAdapter, String name, TransactionManager transactionManager, RegionFactory factory) {
      super(cacheAdapter, name, transactionManager, factory);
   }

   public void evict(Object key) throws CacheException {
      cacheAdapter.evict(key);
   }

   public void evictAll() throws CacheException {
      cacheAdapter.clear();
   }

   public Object get(Object key) throws CacheException {
      return cacheAdapter.get(key);
   }

   public void put(Object key, Object value) throws CacheException {
      cacheAdapter.put(key, value);
   }

}

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate BaseGeneralDataRegion.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.