com.jpattern.orm.session.NullSqlPerformerStrategy Maven / Gradle / Ivy
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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy