All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jfirer.jsql.executor.SqlInvoker Maven / Gradle / Ivy

package com.jfirer.jsql.executor;

import com.jfirer.jsql.dialect.Dialect;
import com.jfirer.jsql.transfer.resultset.ResultSetTransfer;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface SqlInvoker
{
    int update(String sql, List params, Connection connection, Dialect dialect) throws SQLException;

    String insertWithReturnKey(String sql, List params, Connection connection, Dialect dialect) throws SQLException;

    List queryList(String sql, List params, Connection connection, Dialect dialect, ResultSetTransfer resultSetTransfer) throws SQLException;

    Object queryOne(String sql, List params, Connection connection, Dialect dialect, ResultSetTransfer resultSetTransfer) throws SQLException;

}