com.jpattern.orm.session.NullSqlExecutor Maven / Gradle / Ivy
package com.jpattern.orm.session;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import com.jpattern.orm.exception.OrmException;
/**
*
* @author Francesco Cina
*
* 02/lug/2011
*/
public class NullSqlExecutor implements SqlPerformer {
/**
*
*/
@Override
public void setMaxRows(int maxRows) {
}
@Override
public int getMaxRows() {
return 0;
}
@Override
public void setQueryTimeout(int queryTimeout) {
}
@Override
public int getQueryTimeout() {
return 0;
}
@Override
public void execute(String sql) throws OrmException {
}
@Override
public T query(String sql, ResultSetReader rse, Object... args) throws OrmException {
return null;
}
@Override
public int update(String sql, Object... args) throws OrmException {
return 0;
}
@Override
public int update(String sql, GeneratedKeyReader generatedKeyExtractor, Object... args) throws OrmException {
return 0;
}
@Override
public int[] batchUpdate(List sqls) throws OrmException {
return new int[0];
}
@Override
public int[] batchUpdate(String sql, List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy