org.hibernate.cache.spi.support.DomainDataStorageAccess Java Examples
The following examples show how to use
org.hibernate.cache.spi.support.DomainDataStorageAccess.
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 | 6 votes |
@Override protected DomainDataStorageAccess createDomainDataStorageAccess(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) { String defaultKey = null; if (!regionConfig.getCollectionCaching().isEmpty()) { defaultKey = COLLECTION_DEF; } else if (!regionConfig.getEntityCaching().isEmpty()) { defaultKey = ENTITY_DEF; } else if (!regionConfig.getNaturalIdCaching().isEmpty()) { defaultKey = NATURAL_ID_DEF; } else { throw new IllegalArgumentException("Unable to determine entity cache type!"); } RMapCache<Object, Object> mapCache = getCache(regionConfig.getRegionName(), buildingContext.getSessionFactory().getProperties(), defaultKey); return new RedissonStorage(mapCache, ((Redisson)redisson).getConnectionManager(), buildingContext.getSessionFactory().getProperties(), defaultKey); }
Example #2
Source File: NaturalIdTransactionalAccess.java From lams with GNU General Public License v2.0 | 5 votes |
public NaturalIdTransactionalAccess( DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config) { super( region, keysFactory, storageAccess, config ); }
Example #3
Source File: EntityTransactionalAccess.java From lams with GNU General Public License v2.0 | 5 votes |
public EntityTransactionalAccess( DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, EntityDataCachingConfig accessConfig) { super( region, keysFactory, storageAccess ); }
Example #4
Source File: CollectionTransactionAccess.java From lams with GNU General Public License v2.0 | 5 votes |
public CollectionTransactionAccess( DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, CollectionDataCachingConfig config) { super( region, keysFactory, storageAccess, config ); }