public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
@Override public Object entityAccess(InfinispanBaseRegion region, AccessType accessType) { return ((EntityRegion) region).buildAccessStrategy(accessType); }
public boolean containsEntity(String entityName, Serializable identifier) { EntityPersister p = getEntityPersister( entityName ); return p.hasCache() && p.getCacheAccessStrategy().getRegion().contains( buildCacheKey( identifier, p ) ); }
EntityPersister p = (EntityPersister) 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); } }
@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 NotImplementedException("minimalPutOverride functionality not implemented"); } try { return strategy.put(key, value, txTimestamp, version, region.getCacheDataDescription().getVersionComparator()); } catch (final net.sf.hibernate.cache.CacheException ex) { throw HibernateExceptionAdapter.adapt(ex); } }
EntityPersister p = (EntityPersister) iter.next(); if ( p.hasCache() ) { p.getCacheAccessStrategy().getRegion().destroy();
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
accessStrategy = entityRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, entityRegion );
public boolean containsEntity(String entityName, Serializable identifier) { EntityPersister p = getEntityPersister( entityName ); return p.hasCache() && p.getCacheAccessStrategy().getRegion().contains( buildCacheKey( identifier, p ) ); }
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
accessStrategy = entityRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, entityRegion );
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
cacheRegionName, properties, CacheDataDescriptionImpl.decode( model ) ); accessStrategy = entityRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, entityRegion );
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
cacheRegionName, properties, CacheDataDescriptionImpl.decode( model ) ); accessStrategy = entityRegion.buildAccessStrategy( accessType ); entityAccessStrategies.put( cacheRegionName, accessStrategy ); allCacheRegions.put( cacheRegionName, entityRegion );
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }
public static String getRegionName(SessionFactory sessionFactory, Class entityClass) { EntityPersister p = ((SessionFactoryImpl) sessionFactory).getEntityPersister(entityClass.getName()); if (p.hasCache()) { return p.getCacheAccessStrategy().getRegion().getName(); } return ""; } }