Example usage for org.hibernate.resource.transaction.spi TransactionCoordinator pulse

List of usage examples for org.hibernate.resource.transaction.spi TransactionCoordinator pulse

Introduction

In this page you can find the example usage for org.hibernate.resource.transaction.spi TransactionCoordinator pulse.

Prototype

void pulse();

Source Link

Document

Used by owner of the JdbcSession as a means to indicate that implicit joining should be done if needed.

Usage

From source file:com.blazebit.persistence.integration.hibernate.Hibernate52Access.java

License:Apache License

@Override
public void checkTransactionSynchStatus(SessionImplementor session) {
    TransactionCoordinator coordinator = session.getTransactionCoordinator();
    coordinator.pulse();
    if (coordinator instanceof JtaTransactionCoordinatorImpl) {
        ((JtaTransactionCoordinatorImpl) coordinator).getSynchronizationCallbackCoordinator()
                .processAnyDelayedAfterCompletion();
    }//from ww w.j a v  a2  s.  c om
}