- Common ways to obtain CollectionRegionAccessStrategy
private void myMethod () {CollectionRegionAccessStrategy c =
EhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new ReadOnlyEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
EhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new NonStrictReadWriteEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
EhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new ReadWriteEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
- Smart code suggestions by Codota
}
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock) */ public void unlockItem(Object key, SoftLock lock) throws CacheException { try { actualStrategy.unlockItem(key, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock) */ public void unlockItem(Object key, SoftLock lock) throws CacheException { try { actualStrategy.unlockItem(key, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock) */ public void unlockItem(Object key, SoftLock lock) throws CacheException { try { actualStrategy.unlockItem(key, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock) */ public void unlockItem(Object key, SoftLock lock) throws CacheException { try { actualStrategy.unlockItem(key, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); } }