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

org.hibernate.resource.transaction.backend.jta.internal.synchronization.ManagedFlushChecker 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.resource.transaction.backend.jta.internal.synchronization;

import java.io.Serializable;

import org.hibernate.engine.spi.SessionImplementor;

/**
 * A pluggable strategy for defining how the {@link javax.transaction.Synchronization} registered by Hibernate determines
 * whether to perform a managed flush.  An exceptions from either this delegate or the subsequent flush are routed
 * through the sister strategy {@link ExceptionMapper}.
 *
 * @author Steve Ebersole
 *
 * @deprecated (since 5.2) no longer needed since integrating HEM into hibernate-core.
 */
@Deprecated
public interface ManagedFlushChecker extends Serializable {
	/**
	 * Check whether we should perform the managed flush
	 *
	 * @param session The Session
	 *
	 * @return True to indicate to perform the managed flush; false otherwise.
	 */
	boolean shouldDoManagedFlush(SessionImplementor session);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy