public void setName(String _name, boolean _fireEvents) throws DuplicateEntityNameException { if (_name == null) { throw new NullPointerException(Messages.getString("EOEntity.noBlankEntityNames")); } String oldName = myName; if (myModel != null) { myModel._checkForDuplicateEntityName(this, _name, null); myModel._entityNameChanged(myName); } myName = _name; if (_fireEvents) { firePropertyChange(EOEntity.NAME, oldName, myName); }
public void setName(String _name) throws DuplicateEntityNameException { setName(_name, true);
  public void setName(String _name, boolean _fireEvents) throws DuplicateEntityNameException {    if (_name == null) {      throw new NullPointerException(Messages.getString("EOEntity.noBlankEntityNames"));    }    String oldName = myName;    if (myModel != null) {      myModel._checkForDuplicateEntityName(this, _name, null);      myModel._entityNameChanged(myName);    }    myName = _name;    if (_fireEvents) {      firePropertyChange(EOEntity.NAME, oldName, myName);    }  }