kz.greetgo.db.ConnectionCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.db Show documentation
Show all versions of greetgo.db Show documentation
DB utils using in greetgo!
The newest version!
package kz.greetgo.db;
import java.sql.Connection;
/**
* Callback function for DB access
*
* @param the returning type
*/
public interface ConnectionCallback {
/**
* Calling method when connection to DB accessed and all ready to use access DB logic
*
* @param con connection to DB
* @return returning value
* @throws Exception you need not use try/cache
*/
T doInConnection(Connection con) throws Exception;
}