com.github.chengyuxing.sql.support.StatementCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbit-sql Show documentation
Show all versions of rabbit-sql Show documentation
Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql
file.
package com.github.chengyuxing.sql.support;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Prepared statement callback function.
*
* @param result type
*/
@FunctionalInterface
public interface StatementCallback {
/**
* Do something with prepared statement object.
*
* @param statement statement object
* @return any
* @throws SQLException if execute sql error
*/
T doInStatement(PreparedStatement statement) throws SQLException;
}