com.star.jdbc.RowProcessor Maven / Gradle / Ivy
package com.star.jdbc;
import java.sql.ResultSet;
import java.util.List;
import java.util.Map;
/**
* 处理结果集的列
*
*/
public interface RowProcessor {
/**
* 结果集封装成数组
*/
Object[] toArray(ResultSet resultSet);
/**
* 结果集转javabean
*/
T toBean(ResultSet resultSet, Class type);
/**
* 结果集转list
*/
List toBeanList(ResultSet resultSet, Class type);
/**
* 结果集转map
*/
Map toMap(ResultSet resultSet);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy