com.bixuebihui.jdbc.LongReader 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 com.bixuebihui.DbException;
import java.sql.SQLException;
import java.util.List;
/**
* LongReader class.
*
* @author xingwx
* @version $Id: $Id
*/
public class LongReader extends RowMapperResultReader {
/**
* Constructor for LongReader.
*
* @param resultList a {@link java.util.List} object.
*/
public LongReader(List resultList) {
super((rs, index, set) -> {
try {
return rs.getLong(1);
} catch (SQLException e) {
throw new DbException(e);
}
},resultList);
}
}