Search in sources :

Example 1 with PutFromLoadProcessor

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

the class AbstractCoherenceEntityDataAccess method putFromLoad.

/**
 * {@inheritDoc}
 */
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);
    PutFromLoadProcessor processor = new PutFromLoadProcessor(minimalPutOverride, newCacheValue);
    return (Boolean) getCoherenceRegion().invoke(key, processor);
}
Also used : CoherenceRegionValue(com.oracle.coherence.hibernate.cache.v53.region.CoherenceRegionValue) PutFromLoadProcessor(com.oracle.coherence.hibernate.cache.v53.access.processor.PutFromLoadProcessor)

Aggregations

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