code: public static Object getIntegerValue(Result result, int index,
  			GeoPackageDataType dataType) {
  
  		Object value = null;
  
  		if (dataType == null) {
  			dataType = GeoPackageDataType.INTEGER;
  		}
  
  		switch (dataType) {
  
  		case BOOLEAN:
  			short booleanValue = result.getShort(index);
  			value = booleanValue == 0 ? Boolean.FALSE : Boolean.TRUE;
  			break;
  		case TINYINT:
  			value = (byte) result.getShort(index);
  			break;
  		case SMALLINT:
  			value = result.getShort(index);
  			break;
  		case MEDIUMINT:
  			value = result.getInt(index);
  			break;
  		case INT:
  		case INTEGER:
  			value = result.getLong(index);
  			break;
  		default:
  			throw new GeoPackageException("Data Type " + dataType
  					+ " is not an integer type");
  		}
  
  		if (result.wasNull()) {
  			value = null;
  		}
  
  		return value;
  	}
docs: Get the integer value from the cursor of the column
  
  @param result
  result
  @param index
  index
  @param dataType
  data type
  @return integer value