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

cn.tom.db.jdbc.DBOperations Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package cn.tom.db.jdbc;


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


public abstract class DBOperations {

	
	public abstract int execute(String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract int insert(String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract int insert(Connection conn, String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract int update(Connection conn, String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract int update(String paramString, Object... paramArrayOfObject) throws SQLException;


	public abstract  T queryForObject(String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract  T queryForObject(String paramString, Class paramClass, Object... paramArrayOfObject) throws SQLException;
	public abstract  T queryForObject(Connection conn ,String paramString, Class paramClass, Object... paramArrayOfObject) throws SQLException;

	public abstract Long queryForLong(String paramString, Object... paramArrayOfObject) throws SQLException;
	
	public abstract Integer queryForInt(String paramString, Object... paramArrayOfObject) throws SQLException;
	
	public abstract String queryForString(String paramString, Object... paramArrayOfObject) throws SQLException;
	
	public abstract  List queryForList(String paramString, Class paramClass, Object... paramArrayOfObject) throws SQLException;
	public abstract  List queryForList(Connection conn, String paramString, Class paramClass, Object... paramArrayOfObject) throws SQLException;

	public abstract List> queryForList(String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract List> queryForList(Connection conn,String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract List> queryForLinkedMapList(String paramString, Object... paramArrayOfObject) throws SQLException;

	
	public abstract Map queryForMap(String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract Map queryForMap(Connection conn, String paramString, Object... paramArrayOfObject) throws SQLException;
	public abstract Map queryForLinkedMap(String paramString) throws SQLException;
	public abstract Map queryForLinkedMap(String paramString, Object... paramArrayOfObject) throws SQLException;

	
	public abstract int[] batchUpdate(String paramString, Object... obj) throws SQLException;
	public abstract int[] batchUpdate(String paramString, List list) throws SQLException;
	public abstract int[] batchUpdate(List sqls) throws SQLException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy