public int[] batchUpdate(final String sql, final Object[][] params) throws SQLException { return execute(false, new SqlExecutor<int[]>() { @Override public int[] run(Connection conn) throws SQLException { return batchUpdate(conn, sql, params); } }); }
public <T> T query(final String sql, final ResultSetHandler<T> rsh, final Object... params) throws SQLException { return execute(true, new SqlExecutor<T>() { @Override public T run(Connection conn) throws SQLException { return query(conn, sql, rsh, params); } }); }
public <T> T query(final String sql, final ResultSetHandler<T> rsh, final Object... params) throws SQLException { return execute(true, new SqlExecutor<T>() { @Override public T run(Connection conn) throws SQLException { return query(conn, sql, rsh, params); } }); }
public int[] batchUpdate(final String sql, final Object[][] params) throws SQLException { return execute(false, new SqlExecutor<int[]>() { @Override public int[] run(Connection conn) throws SQLException { return batchUpdate(conn, sql, params); } }); }
public int update(final String sql, final Object... params) throws SQLException { return execute(false, new SqlExecutor<Integer>() { @Override public Integer run(Connection conn) throws SQLException { return update(conn, sql, params); } }); }
public int update(final String sql, final Object... params) throws SQLException { return execute(false, new SqlExecutor<Integer>() { @Override public Integer run(Connection conn) throws SQLException { return update(conn, sql, params); } }); }
public int[] batchUpdate(final String sql, final Object[][] params) throws SQLException { return execute(false, new SqlExecutor<int[]>() { @Override public int[] run(Connection conn) throws SQLException { return batchUpdate(conn, sql, params); } }); }
public int update(final String sql, final Object... params) throws SQLException { return execute(false, new SqlExecutor<Integer>() { @Override public Integer run(Connection conn) throws SQLException { return update(conn, sql, params); } }); }
public <T> T query(final String sql, final ResultSetHandler<T> rsh, final Object... params) throws SQLException { return execute(true, new SqlExecutor<T>() { @Override public T run(Connection conn) throws SQLException { return query(conn, sql, rsh, params); } }); }