gu.sql2java.SqlRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql2java-base Show documentation
Show all versions of sql2java-base Show documentation
sql2java common class package
package gu.sql2java;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import gu.sql2java.exception.RuntimeDaoException;
public interface SqlRunner {
/**
* Load all the elements using a SQL statement specifying a list of fields to be retrieved.
* @param targetTypes map of target type for column name or null
* @param sql the SQL statement for retrieving
* @param argList the arguments to use fill given prepared statement,may be null
* @since 3.18.3
*/
List runSqlAsList(Map> targetTypes, String sql, Object... argList);
/**
* Load all the elements using a SQL statement specifying a list of fields to be retrieved.
* @param sql the SQL statement for retrieving
* @param argList the arguments to use fill given prepared statement,may be null
* @return an list of BaseBean bean, or empty list if no row return
* @throws RuntimeDaoException
*/
List runSqlAsList(String sql, Object... argList) throws RuntimeDaoException;
/**
* Load all the elements using a SQL statement specifying a list of fields to be retrieved.
* @param targetTypes map of target type for column name or null
* @param sql the SQL statement for retrieving
* @param argList the arguments to use fill given prepared statement,may be null
* @return an list of row values map, or empty list if no row return
* @throws RuntimeDaoException
*/
List