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

eu.xenit.apix.transaction.ITransactionService Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
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