org.hibernate.resource.transaction.backend.jta.internal.synchronization.ManagedFlushChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* 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);
}