|
Hibernate example source code file (BaseGeneralDataRegion.java)
The Hibernate BaseGeneralDataRegion.java source codepackage 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 |
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.