![JAR search and dependency download from the Maven repository](/logo.png)
com.github.ltsopensource.store.jdbc.SqlTemplate Maven / Gradle / Ivy
package com.github.ltsopensource.store.jdbc;
import com.github.ltsopensource.store.jdbc.dbutils.ResultSetHandler;
import java.sql.SQLException;
/**
* @author Robert HG ([email protected]) on 3/8/16.
*/
public interface SqlTemplate {
void createTable(final String sql) throws SQLException;
int[] batchInsert(final String sql, final Object[][] params) throws SQLException;
int[] batchUpdate(final String sql, final Object[][] params) throws SQLException;
int insert(final String sql, final Object... params) throws SQLException;
int update(final String sql, final Object... params) throws SQLException;
int delete(final String sql, final Object... params) throws SQLException;
T query(final String sql, final ResultSetHandler rsh, final Object... params) throws SQLException;
T queryForValue(final String sql, final Object... params) throws SQLException;
T executeInTransaction(SqlExecutor executor);
void executeInTransaction(SqlExecutorVoid executor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy