@Override public Object[] getNaturalIdValues(Object cacheKey) { return ((NaturalIdCacheKey) cacheKey).getNaturalIdValues(); } }
@Override public Object getEntityId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }
public boolean afterInsert(final Object key, final Object value) throws CacheException { return afterInsert(key, value, null); }
protected AbstractAccessDelegate(final T hazelcastRegion, final Properties props) { this.hazelcastRegion = hazelcastRegion; log = hazelcastRegion.getLogger(); if (hazelcastRegion instanceof AbstractTransactionalDataRegion) { this.versionComparator = ((AbstractTransactionalDataRegion) hazelcastRegion) .getCacheDataDescription().getVersionComparator(); } else { this.versionComparator = null; } cache = hazelcastRegion.getCache(); }
@Override public EntityRegion buildEntityRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException { return new HazelcastEntityRegion<IMapRegionCache>(instance, regionName, properties, metadata, new IMapRegionCache(regionName, instance, properties, metadata)); }
@Override public TimestampsRegion buildTimestampsRegion(final String regionName, final Properties properties) throws CacheException { return new HazelcastTimestampsRegion<IMapRegionCache>(instance, regionName, properties, new IMapRegionCache(regionName, instance, properties, null)); } }
@Override public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantId) { return new CacheKeyImpl(id, persister.getKeyType(), persister.getRole(), tenantId, factory); }
public boolean afterUpdate(final Object key, final Object value, final SoftLock lock) throws CacheException { return afterUpdate(key, value, null, null, lock); }
public boolean insert(final Object key, final Object value) throws CacheException { return insert(key, value, null); }
public boolean update(final Object key, final Object value) throws CacheException { return update(key, value, null, null); }
protected AbstractAccessDelegate(final T hazelcastRegion, final Properties props) { this.hazelcastRegion = hazelcastRegion; log = hazelcastRegion.getLogger(); if (hazelcastRegion instanceof AbstractTransactionalDataRegion) { this.versionComparator = ((AbstractTransactionalDataRegion) hazelcastRegion) .getCacheDataDescription().getVersionComparator(); } else { this.versionComparator = null; } cache = hazelcastRegion.getCache(); }
@Override public Object getCollectionId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }
@Override public Object[] getNaturalIdValues(Object cacheKey) { return ((NaturalIdCacheKey) cacheKey).getNaturalIdValues(); } }
protected AbstractAccessDelegate(final T hazelcastRegion, final Properties props) { this.hazelcastRegion = hazelcastRegion; log = hazelcastRegion.getLogger(); if (hazelcastRegion instanceof AbstractTransactionalDataRegion) { this.versionComparator = ((AbstractTransactionalDataRegion) hazelcastRegion) .getCacheDataDescription().getVersionComparator(); } else { this.versionComparator = null; } cache = hazelcastRegion.getCache(); }
@Override public Object getEntityId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }
@Override public Object[] getNaturalIdValues(Object cacheKey) { return ((NaturalIdCacheKey) cacheKey).getNaturalIdValues(); } }
protected AbstractAccessDelegate(final T hazelcastRegion, final Properties props) { this.hazelcastRegion = hazelcastRegion; log = hazelcastRegion.getLogger(); if (hazelcastRegion instanceof AbstractTransactionalDataRegion) { this.versionComparator = ((AbstractTransactionalDataRegion) hazelcastRegion) .getCacheDataDescription().getVersionComparator(); } else { this.versionComparator = null; } cache = hazelcastRegion.getCache(); }
@Override public Object getEntityId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }
@Override public Object getCollectionId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }
@Override public Object getCollectionId(Object cacheKey) { return ((CacheKeyImpl) cacheKey).getId(); }