org.hibernate.cache.spi.NaturalIdRegion Java Examples

The following examples show how to use org.hibernate.cache.spi.NaturalIdRegion. 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 vote down vote up
@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
        throws CacheException {
    log.debug("Building naturalId cache region: " + regionName);
    
    RMapCache<Object, Object> mapCache = getCache(regionName, properties, NATURAL_ID_DEF);
    return new RedissonNaturalIdRegion(mapCache, ((Redisson)redisson).getConnectionManager(),this, metadata, settings, properties, NATURAL_ID_DEF);
}
 
Example #2
Source File: HibernateRegionFactory.java    From ignite with Apache License 2.0 5 votes vote down vote up
/** {@inheritDoc} */
@Override public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties props,
    CacheDataDescription metadata) throws CacheException {
    return new HibernateNaturalIdRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
 
Example #3
Source File: HibernateRegionFactory.java    From ignite with Apache License 2.0 5 votes vote down vote up
/** {@inheritDoc} */
@Override public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties props,
                                                      CacheDataDescription metadata) throws CacheException {
    return new HibernateNaturalIdRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
 
Example #4
Source File: ReadOnlyNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #5
Source File: NonStrictReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #6
Source File: ReadOnlyNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #7
Source File: TransactionalNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #8
Source File: ReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #9
Source File: NonStrictReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #10
Source File: TransactionalNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #11
Source File: TransactionalNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #12
Source File: ReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #13
Source File: NonStrictReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #14
Source File: ReadOnlyNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #15
Source File: BaseNaturalIdRegionAccessStrategy.java    From hibernate4-memcached with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
	return region;
}
 
Example #16
Source File: ReadWriteNaturalIdRegionAccessStrategy.java    From hibernate4-memcached with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
	return region;
}
 
Example #17
Source File: BaseNaturalIdMemcachedRegionAccessStrategy.java    From hibernate4-memcached with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return naturalIdMemcachedRegion;
}
 
Example #18
Source File: ReadWriteNaturalIdRegionAccessStrategy.java    From redisson with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) region;
}
 
Example #19
Source File: NonstopAwareNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return actualStrategy.getRegion();
}
 
Example #20
Source File: HibernateNaturalIdRegion.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override public NaturalIdRegion getRegion() {
    return HibernateNaturalIdRegion.this;
}
 
Example #21
Source File: HibernateNaturalIdRegion.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override public NaturalIdRegion getRegion() {
    return HibernateNaturalIdRegion.this;
}
 
Example #22
Source File: ReadWriteJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #23
Source File: NonStrictReadWriteJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #24
Source File: TransactionalJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #25
Source File: ReadOnlyJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #26
Source File: NonstopAwareNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return this.actualStrategy.getRegion();
}
 
Example #27
Source File: ReadWriteJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #28
Source File: NonStrictReadWriteJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #29
Source File: TransactionalJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}
 
Example #30
Source File: ReadOnlyJ2CacheNaturalIdRegionAccessStrategy.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public NaturalIdRegion getRegion() {
    return region();
}