Search in sources :

Example 1 with ReadWritePutFromLoadProcessor

use of com.oracle.coherence.hibernate.cache.v53.access.processor.ReadWritePutFromLoadProcessor in project coherence-hibernate by coherence-community.

the class AbstractReadWriteCoherenceEntityDataAccess method putFromLoad.

/**
 * {@inheritDoc}
 */
@Override
public boolean putFromLoad(SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride) throws CacheException {
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("putFromLoad({}, {}, {}, {})", key, value, version, minimalPutOverride);
    }
    CoherenceRegionValue newCacheValue = newCacheValue(value, version);
    ReadWritePutFromLoadProcessor processor = new ReadWritePutFromLoadProcessor(minimalPutOverride, this.getCoherenceRegion().nextTimestamp(), newCacheValue, super.getVersionComparator());
    return (Boolean) getCoherenceRegion().invoke(key, processor);
}
Also used : CoherenceRegionValue(com.oracle.coherence.hibernate.cache.v53.region.CoherenceRegionValue) ReadWritePutFromLoadProcessor(com.oracle.coherence.hibernate.cache.v53.access.processor.ReadWritePutFromLoadProcessor)

Aggregations

ReadWritePutFromLoadProcessor (com.oracle.coherence.hibernate.cache.v53.access.processor.ReadWritePutFromLoadProcessor)1 CoherenceRegionValue (com.oracle.coherence.hibernate.cache.v53.region.CoherenceRegionValue)1