
online.sanen.cdm.template.JdbcOperations Maven / Gradle / Ivy
package online.sanen.cdm.template;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* The interface specifies the basic set of Jdbc operations. Implemented by
* {@link SqlTemplate}.
*
* @author LazyToShow
* Date: 2018年10月14日
* Time: 下午2:12:38
*/
public interface JdbcOperations {
// For object
Map queryForMap(String sql) throws DataAccessException;
Map queryForMap(String sql, Object... args) throws DataAccessException;
T queryForObject(String sql, RowExtractor rowMapper) throws DataAccessException;
T queryForObject(String sql, Object[] args, RowExtractor rowMapper) throws DataAccessException;
T queryForObject(String sql, Object[] args, Class requiredType) throws DataAccessException;
// For list
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy