eu.xenit.apix.transaction.ITransactionService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apix-interface Show documentation
Show all versions of apix-interface Show documentation
Xenit API-X Java interface
package eu.xenit.apix.transaction;
import java.util.concurrent.Callable;
/**
* Created by jasper on 30/10/17.
*/
public interface ITransactionService {
/**
* Execute a transaction, rollbacks if fails.
*
* @param func the transaction to execute
* @param readOnly Whether this is a read only transaction.
* @param requiresNew true
to force a new transaction.
* @param Return type parameter
* @return the result of the transaction in case of success.
*/
public T doInTransaction(Callable func, boolean readOnly, boolean requiresNew);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy