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

org.sql2o.StatementRunnableWithResult Maven / Gradle / Ivy

There is a newer version: 0.2.6
Show newest version
package org.sql2o;

/**
 * Represents a method with a {@link Connection} and an optional argument. Implementations of this interface be used as
 * a parameter to one of the {@link Sql2o#runInTransaction(StatementRunnableWithResult)} Sql2o.runInTransaction} overloads,
 * to run code safely in a transaction.
 */
public interface StatementRunnableWithResult {

    V run(Connection connection, Object argument) throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy