org.rx.jdbc.JdbcExecutable Maven / Gradle / Ivy
package org.rx.jdbc;
import lombok.NonNull;
import org.rx.bean.$;
import org.rx.util.function.BiFunc;
import java.sql.ResultSet;
import java.util.List;
public interface JdbcExecutable {
ResultSet executeQuery(String sql, Object[] params);
ResultSet executeQuery(String sql, Object[] params, long executeTimeoutMillis);
T executeQuery(String sql, Object[] params, BiFunc func);
T executeQuery(String sql, Object[] params, BiFunc func, long executeTimeoutMillis);
int execute(String sql, Object[] params);
int execute(String sql, Object[] params, long executeTimeoutMillis);
int execute(String sql, Object[] params, int generatedKeys, $ lastInsertId);
int execute(String sql, Object[] params, long executeTimeoutMillis, int generatedKeys, $ lastInsertId);
int[] executeBatch(String sql, List