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

org.hibernate.engine.transaction.spi.TransactionObserver 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 .
 */
package org.hibernate.engine.transaction.spi;

/**
 * Observer of internal transaction events.
 *
 * @author Steve Ebersole
 */
public interface TransactionObserver {
	/**
	 * Callback for processing the beginning of a transaction.
	 * 

* Do not rely on this being called as the transaction mat be started in a manner other than through the * {@link org.hibernate.Transaction} API. */ public void afterBegin(); /** * Callback for processing the initial phase of transaction completion. */ public void beforeCompletion(); /** * Callback for processing the last phase of transaction completion. * * @param successful Was the transaction successful? */ public void afterCompletion(boolean successful, boolean delayed); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy