org.hibernate.cache.spi.EntityRegion Java Examples
The following examples show how to use
org.hibernate.cache.spi.EntityRegion.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedissonRegionFactory.java From redisson with Apache License 2.0 | 5 votes |
@Override public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException { log.debug("Building entity cache region: " + regionName); RMapCache<Object, Object> mapCache = getCache(regionName, properties, ENTITY_DEF); return new RedissonEntityRegion(mapCache, ((Redisson)redisson).getConnectionManager(),this, metadata, settings, properties, ENTITY_DEF); }
Example #2
Source File: HibernateRegionFactory.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public EntityRegion buildEntityRegion(String regionName, Properties props, CacheDataDescription metadata) throws CacheException { return new HibernateEntityRegion(this, regionName, accessStgyFactory.node(), accessStgyFactory.regionCache(regionName), metadata); }
Example #3
Source File: HibernateRegionFactory.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public EntityRegion buildEntityRegion(String regionName, Properties props, CacheDataDescription metadata) throws CacheException { return new HibernateEntityRegion(this, regionName, accessStgyFactory.node(), accessStgyFactory.regionCache(regionName), metadata); }
Example #4
Source File: ReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #5
Source File: NonStrictReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #6
Source File: ReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #7
Source File: ReadOnlyEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #8
Source File: TransactionalEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #9
Source File: NonStrictReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #10
Source File: ReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #11
Source File: ReadOnlyEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #12
Source File: TransactionalEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #13
Source File: NonStrictReadWriteEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #14
Source File: ReadWriteEntityRegionAccessStrategy.java From hibernate4-memcached with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region; }
Example #15
Source File: BaseEntityRegionAccessStrategy.java From hibernate4-memcached with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region; }
Example #16
Source File: BaseEntityMemcachedRegionAccessStrategy.java From hibernate4-memcached with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return entityMemcachedRegion; }
Example #17
Source File: ReadWriteCacheConcurrencyStrategyWithLockTimeoutTest.java From hibernate-master-class with Apache License 2.0 | 4 votes |
private net.sf.ehcache.Cache getCache(Class clazz) throws IllegalAccessException { EntityPersister entityPersister = ((SessionFactoryImplementor) getSessionFactory()).getEntityPersister(clazz.getName() ); EntityRegion region = entityPersister.getCacheAccessStrategy().getRegion(); Field cacheField = getField(region.getClass(), "cache"); return (net.sf.ehcache.Cache) cacheField.get(region); }
Example #18
Source File: TransactionalEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #19
Source File: ReadOnlyEntityRegionAccessStrategy.java From redisson with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return (EntityRegion) region; }
Example #20
Source File: NonstopAwareEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return actualStrategy.getRegion(); }
Example #21
Source File: HibernateEntityRegion.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public EntityRegion getRegion() { return HibernateEntityRegion.this; }
Example #22
Source File: HibernateEntityRegion.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public EntityRegion getRegion() { return HibernateEntityRegion.this; }
Example #23
Source File: ReadWriteJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region(); }
Example #24
Source File: NonStrictReadWriteJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return super.region(); }
Example #25
Source File: TransactionalJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region(); }
Example #26
Source File: ReadOnlyJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region(); }
Example #27
Source File: NonstopAwareEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return this.actualStrategy.getRegion(); }
Example #28
Source File: ReadWriteJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region(); }
Example #29
Source File: NonStrictReadWriteJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return super.region(); }
Example #30
Source File: TransactionalJ2CacheEntityRegionAccessStrategy.java From J2Cache with Apache License 2.0 | 4 votes |
@Override public EntityRegion getRegion() { return region(); }