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

com.jpattern.orm.session.NullSqlPerformerStrategy 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 class NullSqlPerformerStrategy implements SqlPerformerStrategy {

	@Override
	public void execute(final String sql, final int timeout) throws OrmException {
	}

	@Override
	public  T query(final String sql, final int timeout, final int maxRows, final PreparedStatementSetter pss, final ResultSetReader rse) 	throws OrmException {
		return null;
	}

	@Override
	public int update(final String sql, final int timeout, final PreparedStatementSetter psc) throws OrmException {
		return 0;
	}

	@Override
	public int update(final String sql, final int timeout, final GeneratedKeyReader generatedKeyReader, final PreparedStatementSetter psc) throws OrmException {
		return 0;
	}

	@Override
	public int[] batchUpdate(final List sqls, final int timeout) throws OrmException {
		return new int[0];
	}

	@Override
	public int[] batchUpdate(final String sql, final List args, final int timeout) throws OrmException {
		return new int[0];
	}

	@Override
	public int[] batchUpdate(final String sql, final BatchPreparedStatementSetter psc, final int timeout) throws OrmException {
		return new int[0];
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy