Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  *
  * 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.ogm.dialect.impl;
 
A org.hibernate.dialect.lock.LockingStrategy which always raises an exception upon lock retrieval.

Used to initialize the locker infrastructure ORM while lazily raising an exception upon invocation of EntityManager#lock() or similar.

Author(s):
Gunnar Morling
	private static final Log LOG = LoggerFactory.make();
	private final Class<? extends GridDialectgridDialectClass;
	private final LockMode lockMode;
	public ExceptionThrowingLockingStrategy(GridDialect gridDialectLockMode lockMode) {
		this. = gridDialect.getClass();
		this. = lockMode;
	}
	public void lock(Serializable idObject versionObject objectint timeoutSessionImplementor sessionthrows StaleObjectStateException,
	}
New to GrepCode? Check out our FAQ X