com.jn.sqlhelper.springjdbc.resultset.ResultSetExtractorAdaptor Maven / Gradle / Ivy
The newest version!
package com.jn.sqlhelper.springjdbc.resultset;
import com.jn.sqlhelper.common.resultset.ResultSetExtractor;
import org.springframework.dao.DataAccessException;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ResultSetExtractorAdaptor> implements org.springframework.jdbc.core.ResultSetExtractor {
private ResultSetExtractor delegate;
public ResultSetExtractorAdaptor(E delegate){
setDelegate(delegate);
}
@Override
public T extractData(ResultSet rs) throws SQLException, DataAccessException {
return delegate.extract(rs);
}
public ResultSetExtractor getDelegate() {
return delegate;
}
public void setDelegate(ResultSetExtractor delegate) {
this.delegate = delegate;
}
}