21 lines
394 B
Java
21 lines
394 B
Java
package fr.xephi.authme.datasource.columnshandler;
|
|
|
|
import java.sql.Connection;
|
|
import java.sql.SQLException;
|
|
|
|
/**
|
|
* Supplier of connections to a database.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface ConnectionSupplier {
|
|
|
|
/**
|
|
* Returns a connection to the database.
|
|
*
|
|
* @return the connection
|
|
* @throws SQLException .
|
|
*/
|
|
Connection get() throws SQLException;
|
|
|
|
}
|