All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.cache.spi.NaturalIdRegion Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.cache.spi;

import org.hibernate.cache.CacheException;
import org.hibernate.cache.spi.access.AccessType;
import org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy;

/**
 * Defines the contract for a cache region which will specifically be used to
 * store naturalId data.
 *
 * @author Eric Dalquist
 * @author Steve Ebersole
 */
public interface NaturalIdRegion extends TransactionalDataRegion {

	/**
	 * Build an access strategy for the requested access type.
	 *
	 * @param accessType The type of access strategy to build; never null.
	 * @return The appropriate strategy contract for accessing this region
	 * for the requested type of access.
	 * @throws org.hibernate.cache.CacheException Usually indicates mis-configuration.
	 */
	public NaturalIdRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy