/** * Set Mandatory of the NewDBTable * * @param Mandatory of the NewDBTable * @exception DataObjectException If the object is not found in the database. */ public void setMandatory(boolean Mandatory) throws DataObjectException { try { // business actions/assertions prior to data assignment beforeAnySet(); } catch (Exception e) { throw new DataObjectException("beforeAnySet: " + e.getMessage()); } checkLoad(); data.Mandatory = markNewValue(data.Mandatory, Mandatory); afterAnySet(); // business actions/assertions after data assignment }