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

org.fingertip.simpledao.template.IJdbcTemplate Maven / Gradle / Ivy

The newest version!
package org.fingertip.simpledao.template;

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

import org.fingertip.simpledao.bean.PageRequest;
import org.fingertip.simpledao.bean.PageResult;

public interface IJdbcTemplate {
	
	List insert(String sql,Object... args)throws  SQLException;
	
	List batchInsert(String sql,List args)throws  SQLException;
	
	int[] update(String sql,Object... args)throws  SQLException;
	
	int[] batchUpdate(String sql,List args)throws  SQLException;
	
	List findAsList(String sql,Object... args)throws  SQLException;
	
	List> findAsMap(String sql,Object... args)throws  SQLException;

	 List find(String sql,Class resultEntity,Object... args)throws  SQLException;
	
	 T findOne(String sql,Class resultEntity,Object... args)throws  SQLException;
	
	Map findOneAsMap(String sql,Object... args)throws  SQLException;
	
	 T findOneValue(String sql,Class valueClass,Object... args)throws  SQLException;
	
	 List findColumn(String sql,Class valueClass,Object... args)throws  SQLException;
	
	long count(String tableName)throws  SQLException;

	 PageResult page(String sql, Class entityClass, PageRequest pageRequest,Object... args)throws  SQLException;
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy