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

io.hypersistence.utils.test.transaction.ConnectionTransactionFunction Maven / Gradle / Ivy

There is a newer version: 3.8.3
Show newest version
package io.hypersistence.utils.test.transaction;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.function.Function;

/**
 * @author Vlad Mihalcea
 */
@FunctionalInterface
public interface ConnectionTransactionFunction {

    T execute(Connection connection) throws SQLException;

    default void beforeTransactionCompletion() {

    }

    default void afterTransactionCompletion() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy