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

org.hibernate.search.query.ObjectLookupMethod Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * 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.search.query;

/**
 * Define whether or not to check whether objects are already present in the second level cache or the persistence context.
 *
 * In most cases, no presence check is necessary.
 *
 * @author Emmanuel Bernard 
 */
public enum ObjectLookupMethod {

	/**
	 * Skip checking (default)
	 */
	SKIP,

	/**
	 * Check whether an object is already in the persistence context before initializing it
	 */
	PERSISTENCE_CONTEXT,

	/**
	 * Check whether an object is already either in the persistence context or in the second level cache before loading it.
	 */
	SECOND_LEVEL_CACHE

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy