- 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#update(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object) */ public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { try { return actualStrategy.update(key, value, currentVersion, previousVersion); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#update(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object) */ public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { try { return actualStrategy.update(key, value, currentVersion, previousVersion); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#update(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object) */ public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { try { return actualStrategy.update(key, value, currentVersion, previousVersion); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#update(java.lang.Object, java.lang.Object, java.lang.Object, * java.lang.Object) */ public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { try { return actualStrategy.update(key, value, currentVersion, previousVersion); } catch (NonStopCacheException nonStopCacheException) { hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException); return false; } }