com.bixuebihui.jdbc.RowMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c-dbtools Show documentation
Show all versions of c-dbtools Show documentation
a fast small database connection pool and a active record flavor mini framework
package com.bixuebihui.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collections;
import java.util.Locale;
import java.util.Set;
/**
* RowMapper interface.
*
* @author xingwx
* @version $Id: $Id
*/
public interface RowMapper {
/**
* map fields in set fields, ignoring case.
*
* @param rs
* @param index row index from 1;
* @param fields if empty, then map all fields
* @return Data object
* @throws SQLException db exception if any
*/
T mapRow(ResultSet rs, int index, Set fields) throws SQLException ;
// T mapRow(ResultSet rs, int index, Set fields, boolean keepNullForNumberField) ;
}