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.transaction.impl;
 
A org.hibernate.engine.transaction.spi.TransactionImplementor wrapper which triggers invocation of the user-configured org.hibernate.ogm.compensation.ErrorHandler upon failed operations, rollbacks etc.

Depending on the type of the underlying transacton (JTA or not), org.hibernate.ogm.compensation.ErrorHandler.onRollback(org.hibernate.ogm.compensation.ErrorHandler.RollbackContext) will either be invoked via a javax.transaction.Synchronization or through the rollback() method.

Author(s):
Gunnar Morling
	private final JtaPlatform jtaPlatform;
	private boolean callErrorHandlerOnRollback;
		superdelegate );
		this. = jtaPlatform;
		this. = errorHandler;
		this. = new OperationCollectorerrorHandler );
	}

Begins the transaction, using the given error handler. Intended for OGM-internal testing only at this point.
	public void begin(ErrorHandler errorHandler) {
		this. = errorHandler;
		this. = new OperationCollectorerrorHandler );
		super.begin();
	}
	public void rollback() {
		}
		super.rollback();
	}
	}
	public void join() {
		boolean synchronizationAlreadyRegistered = !;
		boolean jtaTransactionActive =  != null && JtaStatusHelper.isActive.retrieveTransactionManager() );
		if ( jtaTransactionActive && !synchronizationAlreadyRegistered ) {
		}
		super.join();
	}

Notifies the org.hibernate.ogm.compensation.ErrorHandler about the applied operations upon transaction rollback.
		public void beforeCompletion() {
		}
		public void afterCompletion(int status) {
			if ( . == status ) {
			}
		}
	}
New to GrepCode? Check out our FAQ X