- Common ways to obtain EntityRegionAccessStrategy
private void myMethod () {EntityRegionAccessStrategy e =
EhcacheEntityRegion ehcacheEntityRegion;EhcacheEntityRegion region;new ReadWriteEhcacheEntityRegionAccessStrategy(ehcacheEntityRegion, region.getSettings())
EhcacheEntityRegion ehcacheEntityRegion;EhcacheEntityRegion ehcacheEntityRegion2;new NonStrictReadWriteEhcacheEntityRegionAccessStrategy(ehcacheEntityRegion, ehcacheEntityRegion2.getSettings())
EhcacheEntityRegion ehcacheEntityRegion;EhcacheEntityRegion region;new ReadOnlyEhcacheEntityRegionAccessStrategy(ehcacheEntityRegion, region.getSettings())
- Smart code suggestions by Codota
}
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#afterUpdate(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object, org.hibernate.cache.access.SoftLock) */ public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { try { return actualStrategy.afterUpdate(key, value, currentVersion, previousVersion, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#afterUpdate(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object, org.hibernate.cache.access.SoftLock) */ public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { try { return actualStrategy.afterUpdate(key, value, currentVersion, previousVersion, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#afterUpdate(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object, org.hibernate.cache.access.SoftLock) */ public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { try { return actualStrategy.afterUpdate(key, value, currentVersion, previousVersion, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#afterUpdate(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object, org.hibernate.cache.access.SoftLock) */ public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { try { return actualStrategy.afterUpdate(key, value, currentVersion, previousVersion, lock); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }