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

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

import org.hibernate.resource.transaction.spi.TransactionStatus;

/**
 * Adapter for abstracting the physical means of interacting with JTA transactions.
 * 

* JTA transactions can concretely be interacted with through {@link javax.transaction.UserTransaction} * or {@link javax.transaction.Transaction} depending on environment and situation. This adapter hides * this difference. * * @author Steve Ebersole */ public interface JtaTransactionAdapter { /** * Call begin on the underlying transaction object */ void begin(); /** * Call commit on the underlying transaction object */ void commit(); /** * Call rollback on the underlying transaction object */ void rollback(); TransactionStatus getStatus(); void markRollbackOnly(); void setTimeOut(int seconds); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy