@Override public Object collectionAccess(InfinispanBaseRegion region, AccessType accessType) { return ((CollectionRegion) region).buildAccessStrategy(accessType); }
public boolean containsCollection(String role, Serializable ownerIdentifier) { CollectionPersister p = getCollectionPersister( role ); return p.hasCache() && p.getCacheAccessStrategy().getRegion().contains( buildCacheKey( ownerIdentifier, p ) ); }
@Override public boolean putFromLoad( final SharedSessionContractImplementor session, final Object key, final Object value, final long txTimestamp, final Object version, final boolean minimalPutOverride) throws CacheException { if (minimalPutOverride) { throw new IllegalArgumentException("minimalPutOverride not supported"); } try { return strategy.put(key, value, txTimestamp, version, region.getCacheDataDescription().getVersionComparator()); } catch (final net.sf.hibernate.cache.CacheException ex) { throw HibernateExceptionAdapter.adapt(ex); } }
CollectionPersister p = (CollectionPersister) iter.next(); if ( p.hasCache() ) { p.getCacheAccessStrategy().getRegion().destroy();
@Override public void unlockRegion(final SoftLock lock) throws CacheException { if (region.isTransactionAware()) { return; } try { strategy.clear(); } catch (final net.sf.hibernate.cache.CacheException ex) { throw HibernateExceptionAdapter.adapt(ex); } }
CollectionPersister p = (CollectionPersister) iter.next(); if ( p.hasCache() ) { p.getCacheAccessStrategy().getRegion().destroy();
accessStrategy = collectionRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, collectionRegion );
factory.getStatisticsImplementor().secondLevelCachePut( persister.getCacheAccessStrategy().getRegion().getName() );
public boolean containsCollection(String role, Serializable ownerIdentifier) { CollectionPersister p = getCollectionPersister( role ); return p.hasCache() && p.getCacheAccessStrategy().getRegion().contains( buildCacheKey( ownerIdentifier, p ) ); }
accessStrategy = collectionRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, collectionRegion );
factory.getStatisticsImplementor().secondLevelCachePut( persister.getCacheAccessStrategy().getRegion().getName() );
cacheRegionName, properties, CacheDataDescriptionImpl.decode( model ) ); accessStrategy = collectionRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, collectionRegion );
cacheRegionName, properties, CacheDataDescriptionImpl.decode( model ) ); accessStrategy = collectionRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, collectionRegion );