code: @Override
      public byte getByte(int columnIndex) throws SQLException {
          checkColumnBounds(columnIndex);
          try {
              Long longValue = getPrivateInteger(columnIndex);
              if (longValue > Byte.MAX_VALUE || longValue < Byte.MIN_VALUE) {
                  throw new SQLException("Value out of byte range");
              }
              return longValue.byteValue();
          } catch (Exception x) {
              throw SQLError.get(x);
          }
      }
docs: ResultSet object as a byte in the Java programming language.