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

fi.jubic.easyconfig.db.SqlDatabaseConfig Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package fi.jubic.easyconfig.db;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 

* Generic interface for a configuration that provides possibly * releasable instances of {@link java.sql.Connection}. *

* *

* This interface facilitates utility services that require access * to the database without the data access interface - for example, * running database migrations. *

* * @deprecated Use {@code JdbcConfiguration} from {@code easyconfig-jooq} instead. */ @Deprecated public interface SqlDatabaseConfig { void withConnection(ConnectionConsumer connectionConsumer) throws SQLException; T withConnection(ConnectionFunction connectionFunction) throws SQLException; interface ConnectionConsumer { void accept(Connection connection) throws SQLException; } interface ConnectionFunction { T apply(Connection connection) throws SQLException; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy