Java SQL ResultSet Byte Read getByteFromResultSet(ResultSet rs, String db_name)

Here you can find the source of getByteFromResultSet(ResultSet rs, String db_name)

Description

get Byte From Result Set

License

Open Source License

Declaration

public static Byte getByteFromResultSet(ResultSet rs, String db_name) throws SQLException 

Method Source Code

//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*/
}

Related

  1. getByte(ResultSet resultSet, String columnName)
  2. getByte(ResultSet rs, int column)
  3. getByteList(ResultSet resultSet, String columnName)
  4. getBytes(ResultSet res, String name)
  5. getByteStreamList(ResultSet resultSet, String columnName)