1 16 17 package org.springframework.jdbc.object; 18 19 import java.sql.ResultSet ; 20 import java.sql.SQLException ; 21 import java.util.Map ; 22 23 import javax.sql.DataSource ; 24 25 39 public abstract class MappingSqlQuery extends MappingSqlQueryWithParameters { 40 41 44 public MappingSqlQuery() { 45 } 46 47 52 public MappingSqlQuery(DataSource ds, String sql) { 53 super(ds, sql); 54 } 55 56 61 protected final Object mapRow(ResultSet rs, int rowNum, Object [] parameters, Map context) 62 throws SQLException { 63 64 return mapRow(rs, rowNum); 65 } 66 67 80 protected abstract Object mapRow(ResultSet rs, int rowNum) throws SQLException ; 81 82 } 83 | Popular Tags |