com.oracle.coherence.hibernate.cache.access.CollectionReadOnlyCoherenceRegionAccessStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence-hibernate-cache-4 Show documentation
Show all versions of coherence-hibernate-cache-4 Show documentation
A Coherence-based implementation of the second-level cache SPI introduced in Hibernate 3.3.
The newest version!
/*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.oracle.coherence.hibernate.cache.access;
import com.oracle.coherence.hibernate.cache.region.CoherenceCollectionRegion;
import org.hibernate.cache.spi.CollectionRegion;
import org.hibernate.cache.spi.access.CollectionRegionAccessStrategy;
import org.hibernate.cfg.Settings;
/**
* A CollectionReadOnlyCoherenceRegionAccessStrategy is CoherenceRegionAccessStrategy
* implementing Hibernate's read-only cache concurrency strategy for collection regions.
*
* @author Randy Stafford
*/
public class CollectionReadOnlyCoherenceRegionAccessStrategy
extends CoherenceRegionAccessStrategy
implements CollectionRegionAccessStrategy
{
// ---- Constuctors
/**
* Complete constructor.
*
* @param coherenceCollectionRegion the CoherenceCollectionRegion for this CollectionReadOnlyCoherenceRegionAccessStrategy
* @param settings the Hibernate settings object
*/
public CollectionReadOnlyCoherenceRegionAccessStrategy(CoherenceCollectionRegion coherenceCollectionRegion, Settings settings)
{
super(coherenceCollectionRegion, settings);
}
// ---- interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
/**
* {@inheritDoc}
*/
@Override
public CollectionRegion getRegion()
{
debugf("%s.getRegion()", this);
return getCoherenceRegion();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy