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

org.hibernate.annotations.OptimisticLockType Maven / Gradle / Ivy

/*
 * 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.annotations;

/**
 * Possible optimistic locking strategies.
 *
 * @author Emmanuel Bernard
 */
public enum OptimisticLockType {
	/**
	 * Perform no optimistic locking.
	 */
	NONE,
	/**
	 * Perform optimistic locking using a dedicated version column.
	 *
	 * @see javax.persistence.Version
	 */
	VERSION,
	/**
	 * Perform optimistic locking based on *dirty* fields as part of an expanded WHERE clause restriction for the
	 * UPDATE/DELETE SQL statement.
	 */
	DIRTY,
	/**
	 * Perform optimistic locking based on *all* fields as part of an expanded WHERE clause restriction for the
	 * UPDATE/DELETE SQL statement.
	 */
	ALL
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy