code: public int getInternalInt(ColumnInformation columnInfo) throws SQLException {
      if (lastValueWasNull()) {
        return 0;
      }
      long value = getInternalLong(columnInfo);
      rangeCheck(Integer.class, Integer.MIN_VALUE, Integer.MAX_VALUE, value, columnInfo);
      return (int) value;
    }
docs: Get int from raw text format.
  
  @param columnInfo column information
  @return int value
  @throws SQLException if column type doesn't permit conversion or not in Integer range