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

org.hibernate.cache.spi.DirectAccessRegion 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 http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.cache.spi;

import org.hibernate.engine.spi.SharedSessionContractImplementor;

/**
 * Specialized Region whose data is accessed directly (not requiring
 * key/item wrapping, e.g.
 *
 * Does not define a "remove" operation because Hibernate's query and timestamps
 * caches only ever "get" and "put"
 *
 * @author Steve Ebersole
 */
public interface DirectAccessRegion extends Region {
	/**
	 * Get value by key
	 */
	Object getFromCache(Object key, SharedSessionContractImplementor session);

	/**
	 * Put a value by key
	 */
	void putIntoCache(Object key, Object value, SharedSessionContractImplementor session);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy