Here you can find the source of getByteFromResultSet(ResultSet rs, String db_name)
public static Byte getByteFromResultSet(ResultSet rs, String db_name) throws SQLException
//package com.java2s; //License from project: GNU General Public License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Byte getByteFromResultSet(ResultSet rs, String db_name) throws SQLException { byte n = rs.getByte(db_name); return rs.wasNull() ? null : Byte.valueOf(n); }/* w w w .j av a 2s . c om*/ }