dbValue = dbValue.trim(); if (dbValue.equals("") || dbValue.equals("null")) { if (log.isInfoEnabled()) { log.info("updateCommEntityAttribute: Empty value for Attribute_ID not allowed. Ignoring change."); } return; }
  private void updateCommunityEntityAttributeTable(Object value, int row, int column) {    String columnName = getColumnName(column);    String entityId = (String)getValueAt(row, 0);    if (entityId == null) {      log.error("updateCommEntityAtt on column " + columnName + " has null entityId. CommName=" + communityName + " in row " + row);    }    if (communityName == null) {      log.error("updateCommEntityAtt has null commName for entity " + entityId + " and column " + columnName + " in row: " + row);    }    String dbValue = dbRepresentation(column, value);    if (dbValue == null) {      log.error("updateCommEntityAtt has null dbValue on column " + columnName + ", Comm: " + communityName + ", entity: " + entityId + " in row " + row);    }    if (columnName.equalsIgnoreCase("ATTRIBUTE_ID") || columnName.equalsIgnoreCase("ENTITY_ATTRIBUTE_ID")) {      try {      // This throws an exception if it looks like a duplicate	CommunityDBUtils.setEntityAttributeId(communityName, entityId, dbValue,                               dbRepresentation(1, getValueAt(row, 1)),                               dbRepresentation(2, getValueAt(row, 2)),					    assemblyId);      } catch (IllegalArgumentException iae) {	if (log.isWarnEnabled()) {	  log.warn("updateCommEntAtt failed to set the Att ID for comm " + communityName + ", entity " + entityId + ": " + iae.toString());	}	// Couldnt make the edit, so dont update the UI	return;      }    } else if (columnName.equalsIgnoreCase("ATTRIBUTE_VALUE") || columnName.equalsIgnoreCase("ENTITY_ATTRIBUTE_VALUE")) {      // This throws an exception if it looks like a duplicate      try {	CommunityDBUtils.setEntityAttributeValue(communityName, entityId, dbValue,                               dbRepresentation(1, getValueAt(row, 1)),                               dbRepresentation(2, getValueAt(row, 2)),					       assemblyId);      } catch (IllegalArgumentException iae) {	if (log.isWarnEnabled()) {	  log.warn("updateCommEntAtt failed to set the Att value for comm " + communityName + ", entity " + entityId + ": " + iae.toString());	}	// Couldnt make the edit, so dont update the UI	return;      }    } else if (columnName.equalsIgnoreCase("ENTITY_ID")) {      // Can't edit the community ID here      if (log.isInfoEnabled()) {	log.info("Cannot edit the " + columnName + " column here.");      }      return;    } else {      if (log.isErrorEnabled()) {        log.error("Attempting to set value for unknown column name: " +                   columnName);      }      return;    }    ArrayList dataRow = (ArrayList)rows.get(row);    dataRow.set(column, value);  }