com.aoindustries.dbc.DatabaseRunnableE Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ao-dbc Show documentation
Show all versions of ao-dbc Show documentation
Simplified JDBC access for simplified code.
/*
* ao-dbc - Simplified JDBC access for simplified code.
* Copyright (C) 2014, 2015, 2019 AO Industries, Inc.
* [email protected]
* 7262 Bull Pen Cir
* Mobile, AL 36695
*
* This file is part of ao-dbc.
*
* ao-dbc is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ao-dbc is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ao-dbc. If not, see .
*/
package com.aoindustries.dbc;
import java.sql.SQLException;
/**
* Target that may be used by Database.executeTransaction
* and allows any arbitrary exception type in addition to the usual SQLException.
*
* @see Database#executeTransaction(java.lang.Class, com.aoindustries.dbc.DatabaseRunnableE)
*
* @author AO Industries, Inc.
*/
public interface DatabaseRunnableE {
void run(DatabaseConnection db) throws SQLException, E;
}