protected void setInt(Resource resource, String propertyId, ResultSet rs,
      Set<String> requestedIds) throws SQLException {
    if (requestedIds.contains(propertyId))
      setResourceProperty(resource, propertyId,
          rs.getInt(dbFields.get(propertyId).toString()), requestedIds);
  }
Retrieves the db field corresponding to a property id from a result set as
an int and sets the resulting int as a resource property.

@param resource
         resource object to set the property on
@param propertyId
         the property id to retrieve from the result set
@param rs
         the result set
@param requestedIds
         the requested ids
@throws SQLException
          if property id cannot be retrieved from the result set
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractJDBCResourceProvider.java