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

com.jpattern.orm.session.SqlPerformerStrategy Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package com.jpattern.orm.session;

import java.util.List;

import com.jpattern.orm.exception.OrmException;

/**
 * 
 * @author Francesco Cina'
 *
 * Dec 20, 2011
 */
public interface SqlPerformerStrategy {

	void execute(String sql, int timeout) throws OrmException;

	 T query(String sql, int timeout, int maxRows, final PreparedStatementSetter pss, ResultSetReader rse) throws OrmException ;

	int update(String sql, int timeout, final PreparedStatementSetter pss) throws OrmException;

	int update(String sql, int timeout, GeneratedKeyReader generatedKeyReader, final PreparedStatementSetter pss) throws OrmException;

	int[] batchUpdate(List sqls, int timeout) throws OrmException;

	int[] batchUpdate(String sql, List args, int timeout) throws OrmException;

	int[] batchUpdate(String sql, BatchPreparedStatementSetter psc, int timeout) throws OrmException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy