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

com.jpattern.orm.jdbctemplate.ResultSetReaderWrapper Maven / Gradle / Ivy

package com.jpattern.orm.jdbctemplate;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

import com.jpattern.orm.session.ResultSetReader;

/**
 * 
 * @author Francesco Cina
 *
 * 02/lug/2011
 */
public class ResultSetReaderWrapper implements ResultSetExtractor {

	private final ResultSetReader rse;

	public ResultSetReaderWrapper(ResultSetReader rse) {
		this.rse = rse;
	}

	@Override
	public T extractData(ResultSet rs) throws SQLException, DataAccessException {
		return rse.read(rs);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy