From c73ffd76fcd5a1068cf65cf28d587af1a9f3c282 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 1 Jun 2009 17:08:30 +0000 Subject: [PATCH] FR [2799296] - Generate Model Class: Remove mandatory checking code https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2799296&group_id=176962 --- base/src/org/compiere/model/I_M_RMA.java | 26 +-- base/src/org/compiere/model/I_M_RMALine.java | 26 +-- .../org/compiere/model/X_AD_AccessLog.java | 9 +- base/src/org/compiere/model/X_AD_Alert.java | 20 +- .../compiere/model/X_AD_AlertProcessor.java | 18 +- .../model/X_AD_AlertProcessorLog.java | 14 +- .../compiere/model/X_AD_AlertRecipient.java | 16 +- .../org/compiere/model/X_AD_AlertRule.java | 20 +- base/src/org/compiere/model/X_AD_Archive.java | 13 +- .../org/compiere/model/X_AD_Attachment.java | 23 +- .../compiere/model/X_AD_AttachmentNote.java | 25 ++- .../org/compiere/model/X_AD_Attribute.java | 23 +- .../compiere/model/X_AD_Attribute_Value.java | 14 +- .../org/compiere/model/X_AD_ChangeLog.java | 35 ++-- base/src/org/compiere/model/X_AD_Client.java | 8 +- .../org/compiere/model/X_AD_ClientShare.java | 18 +- base/src/org/compiere/model/X_AD_Color.java | 13 +- base/src/org/compiere/model/X_AD_Column.java | 36 ++-- .../compiere/model/X_AD_Column_Access.java | 14 +- base/src/org/compiere/model/X_AD_Desktop.java | 9 +- .../compiere/model/X_AD_DesktopWorkbench.java | 21 +- .../model/X_AD_Document_Action_Access.java | 21 +- base/src/org/compiere/model/X_AD_Element.java | 13 +- .../org/compiere/model/X_AD_EntityType.java | 11 +- base/src/org/compiere/model/X_AD_Error.java | 9 +- base/src/org/compiere/model/X_AD_Field.java | 23 +- .../org/compiere/model/X_AD_FieldGroup.java | 9 +- base/src/org/compiere/model/X_AD_Find.java | 22 +- base/src/org/compiere/model/X_AD_Form.java | 11 +- .../org/compiere/model/X_AD_Form_Access.java | 14 +- .../org/compiere/model/X_AD_HouseKeeping.java | 18 +- base/src/org/compiere/model/X_AD_Image.java | 9 +- .../org/compiere/model/X_AD_ImpFormat.java | 18 +- .../compiere/model/X_AD_ImpFormat_Row.java | 27 ++- .../org/compiere/model/X_AD_InfoColumn.java | 25 ++- .../org/compiere/model/X_AD_InfoWindow.java | 18 +- base/src/org/compiere/model/X_AD_Issue.java | 21 +- .../org/compiere/model/X_AD_LabelPrinter.java | 9 +- .../model/X_AD_LabelPrinterFunction.java | 16 +- .../src/org/compiere/model/X_AD_Language.java | 11 +- .../org/compiere/model/X_AD_LdapAccess.java | 14 +- .../compiere/model/X_AD_LdapProcessor.java | 16 +- .../compiere/model/X_AD_LdapProcessorLog.java | 14 +- base/src/org/compiere/model/X_AD_Menu.java | 9 +- base/src/org/compiere/model/X_AD_Message.java | 13 +- .../compiere/model/X_AD_MigrationScript.java | 17 +- .../compiere/model/X_AD_ModelValidator.java | 11 +- .../org/compiere/model/X_AD_Modification.java | 9 +- base/src/org/compiere/model/X_AD_Note.java | 16 +- base/src/org/compiere/model/X_AD_Org.java | 4 - base/src/org/compiere/model/X_AD_OrgInfo.java | 6 - base/src/org/compiere/model/X_AD_OrgType.java | 9 +- .../org/compiere/model/X_AD_PInstance.java | 21 +- .../compiere/model/X_AD_PInstance_Log.java | 14 +- .../compiere/model/X_AD_PInstance_Para.java | 7 +- .../org/compiere/model/X_AD_Package_Exp.java | 25 +-- .../model/X_AD_Package_Exp_Common.java | 9 +- .../model/X_AD_Package_Exp_Detail.java | 20 +- .../org/compiere/model/X_AD_Package_Imp.java | 11 +- .../model/X_AD_Package_Imp_Backup.java | 21 +- .../model/X_AD_Package_Imp_Detail.java | 21 +- .../compiere/model/X_AD_Package_Imp_Inst.java | 7 +- .../compiere/model/X_AD_Package_Imp_Proc.java | 11 +- .../org/compiere/model/X_AD_Preference.java | 11 +- .../org/compiere/model/X_AD_PrintColor.java | 11 +- .../org/compiere/model/X_AD_PrintFont.java | 11 +- .../org/compiere/model/X_AD_PrintForm.java | 9 +- .../org/compiere/model/X_AD_PrintFormat.java | 37 ++-- .../compiere/model/X_AD_PrintFormatItem.java | 38 ++-- .../org/compiere/model/X_AD_PrintGraph.java | 32 +-- .../org/compiere/model/X_AD_PrintLabel.java | 23 +- .../compiere/model/X_AD_PrintLabelLine.java | 25 +-- .../org/compiere/model/X_AD_PrintPaper.java | 11 +- .../compiere/model/X_AD_PrintTableFormat.java | 9 +- .../compiere/model/X_AD_Private_Access.java | 21 +- base/src/org/compiere/model/X_AD_Process.java | 13 +- .../compiere/model/X_AD_Process_Access.java | 14 +- .../org/compiere/model/X_AD_Process_Para.java | 25 ++- .../compiere/model/X_AD_Record_Access.java | 21 +- .../src/org/compiere/model/X_AD_Ref_List.java | 18 +- .../org/compiere/model/X_AD_Ref_Table.java | 14 +- .../org/compiere/model/X_AD_Reference.java | 11 +- .../org/compiere/model/X_AD_Registration.java | 16 +- .../org/compiere/model/X_AD_Replication.java | 32 +-- .../model/X_AD_ReplicationDocument.java | 30 +-- .../model/X_AD_ReplicationStrategy.java | 9 +- .../compiere/model/X_AD_ReplicationTable.java | 23 +- .../compiere/model/X_AD_Replication_Log.java | 14 +- .../compiere/model/X_AD_Replication_Run.java | 16 +- .../org/compiere/model/X_AD_ReportView.java | 16 +- .../compiere/model/X_AD_ReportView_Col.java | 16 +- base/src/org/compiere/model/X_AD_Role.java | 13 +- .../compiere/model/X_AD_Role_OrgAccess.java | 7 +- base/src/org/compiere/model/X_AD_Rule.java | 15 +- .../org/compiere/model/X_AD_Scheduler.java | 27 +-- .../org/compiere/model/X_AD_SchedulerLog.java | 14 +- .../model/X_AD_SchedulerRecipient.java | 16 +- .../compiere/model/X_AD_Scheduler_Para.java | 14 +- .../compiere/model/X_AD_SearchDefinition.java | 25 ++- .../src/org/compiere/model/X_AD_Sequence.java | 9 +- .../compiere/model/X_AD_Sequence_Audit.java | 23 +- .../org/compiere/model/X_AD_Sequence_No.java | 9 +- base/src/org/compiere/model/X_AD_Session.java | 9 +- .../org/compiere/model/X_AD_SysConfig.java | 11 +- base/src/org/compiere/model/X_AD_System.java | 23 +- base/src/org/compiere/model/X_AD_Tab.java | 23 +- base/src/org/compiere/model/X_AD_Table.java | 15 +- .../org/compiere/model/X_AD_Table_Access.java | 16 +- .../model/X_AD_Table_ScriptValidator.java | 23 +- base/src/org/compiere/model/X_AD_Task.java | 13 +- .../org/compiere/model/X_AD_TaskInstance.java | 14 +- .../org/compiere/model/X_AD_Task_Access.java | 14 +- base/src/org/compiere/model/X_AD_Tree.java | 11 +- base/src/org/compiere/model/X_AD_TreeBar.java | 21 +- .../src/org/compiere/model/X_AD_TreeNode.java | 14 +- .../org/compiere/model/X_AD_TreeNodeBP.java | 14 +- .../org/compiere/model/X_AD_TreeNodeCMC.java | 21 +- .../org/compiere/model/X_AD_TreeNodeCMM.java | 21 +- .../org/compiere/model/X_AD_TreeNodeCMS.java | 21 +- .../org/compiere/model/X_AD_TreeNodeCMT.java | 21 +- .../org/compiere/model/X_AD_TreeNodeMM.java | 14 +- .../org/compiere/model/X_AD_TreeNodePR.java | 14 +- .../org/compiere/model/X_AD_TreeNodeU1.java | 21 +- .../org/compiere/model/X_AD_TreeNodeU2.java | 21 +- .../org/compiere/model/X_AD_TreeNodeU3.java | 21 +- .../org/compiere/model/X_AD_TreeNodeU4.java | 21 +- base/src/org/compiere/model/X_AD_User.java | 11 +- .../org/compiere/model/X_AD_UserBPAccess.java | 16 +- .../compiere/model/X_AD_UserDef_Field.java | 25 ++- .../org/compiere/model/X_AD_UserDef_Tab.java | 23 +- .../org/compiere/model/X_AD_UserDef_Win.java | 18 +- .../src/org/compiere/model/X_AD_UserMail.java | 14 +- .../org/compiere/model/X_AD_UserQuery.java | 23 +- .../compiere/model/X_AD_User_OrgAccess.java | 7 +- .../org/compiere/model/X_AD_User_Roles.java | 14 +- .../compiere/model/X_AD_User_Substitute.java | 23 +- .../src/org/compiere/model/X_AD_Val_Rule.java | 11 +- .../org/compiere/model/X_AD_WF_Activity.java | 44 ++-- .../model/X_AD_WF_ActivityResult.java | 16 +- .../src/org/compiere/model/X_AD_WF_Block.java | 16 +- .../compiere/model/X_AD_WF_EventAudit.java | 48 +++-- .../compiere/model/X_AD_WF_NextCondition.java | 27 +-- base/src/org/compiere/model/X_AD_WF_Node.java | 26 +-- .../org/compiere/model/X_AD_WF_NodeNext.java | 21 +- .../org/compiere/model/X_AD_WF_Node_Para.java | 14 +- .../org/compiere/model/X_AD_WF_Process.java | 37 ++-- .../compiere/model/X_AD_WF_ProcessData.java | 16 +- .../compiere/model/X_AD_WF_Responsible.java | 18 +- base/src/org/compiere/model/X_AD_Window.java | 11 +- .../compiere/model/X_AD_Window_Access.java | 14 +- .../org/compiere/model/X_AD_Workbench.java | 16 +- .../compiere/model/X_AD_WorkbenchWindow.java | 14 +- .../src/org/compiere/model/X_AD_Workflow.java | 21 +- .../model/X_AD_WorkflowProcessor.java | 18 +- .../model/X_AD_WorkflowProcessorLog.java | 14 +- .../compiere/model/X_AD_Workflow_Access.java | 14 +- .../compiere/model/X_ASP_ClientException.java | 9 +- .../org/compiere/model/X_ASP_ClientLevel.java | 21 +- base/src/org/compiere/model/X_ASP_Field.java | 2 +- base/src/org/compiere/model/X_ASP_Form.java | 16 +- base/src/org/compiere/model/X_ASP_Level.java | 18 +- base/src/org/compiere/model/X_ASP_Module.java | 11 +- .../src/org/compiere/model/X_ASP_Process.java | 16 +- .../compiere/model/X_ASP_Process_Para.java | 2 +- base/src/org/compiere/model/X_ASP_Tab.java | 9 +- base/src/org/compiere/model/X_ASP_Task.java | 16 +- base/src/org/compiere/model/X_ASP_Window.java | 16 +- .../org/compiere/model/X_ASP_Workflow.java | 16 +- base/src/org/compiere/model/X_A_Asset.java | 25 ++- .../org/compiere/model/X_A_Asset_Acct.java | 41 ++-- .../compiere/model/X_A_Asset_Addition.java | 16 +- .../org/compiere/model/X_A_Asset_Change.java | 18 +- .../compiere/model/X_A_Asset_Delivery.java | 16 +- .../compiere/model/X_A_Asset_Disposed.java | 31 ++- .../org/compiere/model/X_A_Asset_Group.java | 9 +- .../compiere/model/X_A_Asset_Group_Acct.java | 25 +-- .../compiere/model/X_A_Asset_Info_Fin.java | 14 +- .../compiere/model/X_A_Asset_Info_Ins.java | 14 +- .../compiere/model/X_A_Asset_Info_Lic.java | 14 +- .../compiere/model/X_A_Asset_Info_Oth.java | 14 +- .../compiere/model/X_A_Asset_Info_Tax.java | 14 +- .../compiere/model/X_A_Asset_Retirement.java | 18 +- .../compiere/model/X_A_Asset_Reval_Entry.java | 32 ++- .../compiere/model/X_A_Asset_Reval_Index.java | 15 +- .../org/compiere/model/X_A_Asset_Split.java | 43 ++-- .../org/compiere/model/X_A_Asset_Spread.java | 35 +--- .../compiere/model/X_A_Asset_Transfer.java | 11 +- .../src/org/compiere/model/X_A_Asset_Use.java | 16 +- .../org/compiere/model/X_A_Depreciation.java | 11 +- .../model/X_A_Depreciation_Build.java | 7 +- .../model/X_A_Depreciation_Convention.java | 7 +- .../model/X_A_Depreciation_Entry.java | 54 +++-- .../compiere/model/X_A_Depreciation_Exp.java | 20 +- .../model/X_A_Depreciation_Forecast.java | 25 +-- .../model/X_A_Depreciation_Method.java | 7 +- .../model/X_A_Depreciation_Table_Detail.java | 11 +- .../model/X_A_Depreciation_Table_Header.java | 15 +- .../model/X_A_Depreciation_Workfile.java | 16 +- .../org/compiere/model/X_A_Registration.java | 11 +- .../model/X_A_RegistrationAttribute.java | 16 +- .../model/X_A_RegistrationProduct.java | 14 +- .../compiere/model/X_A_RegistrationValue.java | 16 +- base/src/org/compiere/model/X_B_Bid.java | 30 +-- .../org/compiere/model/X_B_BidComment.java | 23 +- base/src/org/compiere/model/X_B_Buyer.java | 11 +- .../org/compiere/model/X_B_BuyerFunds.java | 18 +- base/src/org/compiere/model/X_B_Offer.java | 30 +-- base/src/org/compiere/model/X_B_Seller.java | 11 +- .../org/compiere/model/X_B_SellerFunds.java | 18 +- base/src/org/compiere/model/X_B_Topic.java | 31 ++- .../org/compiere/model/X_B_TopicCategory.java | 16 +- .../src/org/compiere/model/X_B_TopicType.java | 32 +-- .../compiere/model/X_CM_AccessContainer.java | 14 +- .../model/X_CM_AccessListBPGroup.java | 14 +- .../compiere/model/X_CM_AccessListRole.java | 14 +- .../org/compiere/model/X_CM_AccessMedia.java | 14 +- .../model/X_CM_AccessNewsChannel.java | 14 +- .../compiere/model/X_CM_AccessProfile.java | 9 +- .../org/compiere/model/X_CM_AccessStage.java | 14 +- base/src/org/compiere/model/X_CM_Ad.java | 27 ++- base/src/org/compiere/model/X_CM_Ad_Cat.java | 16 +- .../compiere/model/X_CM_BroadcastServer.java | 11 +- base/src/org/compiere/model/X_CM_CStage.java | 26 +-- .../org/compiere/model/X_CM_CStageTTable.java | 25 +-- .../compiere/model/X_CM_CStage_Element.java | 16 +- base/src/org/compiere/model/X_CM_Chat.java | 25 +-- .../org/compiere/model/X_CM_ChatEntry.java | 20 +- .../src/org/compiere/model/X_CM_ChatType.java | 16 +- .../compiere/model/X_CM_ChatTypeUpdate.java | 14 +- .../org/compiere/model/X_CM_ChatUpdate.java | 14 +- .../org/compiere/model/X_CM_Container.java | 31 ++- .../compiere/model/X_CM_ContainerTTable.java | 25 +-- .../model/X_CM_Container_Element.java | 16 +- .../compiere/model/X_CM_Container_URL.java | 20 +- base/src/org/compiere/model/X_CM_Media.java | 16 +- .../org/compiere/model/X_CM_MediaDeploy.java | 21 +- .../org/compiere/model/X_CM_Media_Server.java | 16 +- .../org/compiere/model/X_CM_NewsChannel.java | 18 +- .../src/org/compiere/model/X_CM_NewsItem.java | 14 +- .../src/org/compiere/model/X_CM_Template.java | 11 +- .../compiere/model/X_CM_TemplateTable.java | 23 +- .../compiere/model/X_CM_Template_Ad_Cat.java | 16 +- .../org/compiere/model/X_CM_WebAccessLog.java | 15 +- .../org/compiere/model/X_CM_WebProject.java | 19 +- .../model/X_CM_WebProject_Domain.java | 18 +- .../org/compiere/model/X_CM_WikiToken.java | 11 +- .../org/compiere/model/X_C_AcctProcessor.java | 18 +- .../compiere/model/X_C_AcctProcessorLog.java | 14 +- .../org/compiere/model/X_C_AcctSchema.java | 35 ++-- .../model/X_C_AcctSchema_Default.java | 7 +- .../model/X_C_AcctSchema_Element.java | 32 +-- .../org/compiere/model/X_C_AcctSchema_GL.java | 7 +- base/src/org/compiere/model/X_C_Activity.java | 11 +- .../org/compiere/model/X_C_AllocationHdr.java | 26 +-- .../compiere/model/X_C_AllocationLine.java | 20 +- .../compiere/model/X_C_BP_BankAccount.java | 16 +- .../compiere/model/X_C_BP_Customer_Acct.java | 14 +- base/src/org/compiere/model/X_C_BP_EDI.java | 38 ++-- .../compiere/model/X_C_BP_Employee_Acct.java | 14 +- base/src/org/compiere/model/X_C_BP_Group.java | 11 +- .../org/compiere/model/X_C_BP_Group_Acct.java | 14 +- .../org/compiere/model/X_C_BP_Relation.java | 30 +-- .../compiere/model/X_C_BP_Vendor_Acct.java | 14 +- .../compiere/model/X_C_BP_Withholding.java | 14 +- base/src/org/compiere/model/X_C_BPartner.java | 22 +- .../compiere/model/X_C_BPartner_Location.java | 23 +- .../compiere/model/X_C_BPartner_Product.java | 14 +- base/src/org/compiere/model/X_C_Bank.java | 11 +- .../org/compiere/model/X_C_BankAccount.java | 29 ++- .../compiere/model/X_C_BankAccountDoc.java | 18 +- .../compiere/model/X_C_BankAccount_Acct.java | 14 +- .../org/compiere/model/X_C_BankStatement.java | 24 +-- .../compiere/model/X_C_BankStatementLine.java | 42 ++-- .../model/X_C_BankStatementLoader.java | 16 +- .../model/X_C_BankStatementMatcher.java | 11 +- base/src/org/compiere/model/X_C_Calendar.java | 9 +- base/src/org/compiere/model/X_C_Campaign.java | 13 +- base/src/org/compiere/model/X_C_Cash.java | 28 +-- base/src/org/compiere/model/X_C_CashBook.java | 16 +- .../org/compiere/model/X_C_CashBook_Acct.java | 14 +- base/src/org/compiere/model/X_C_CashLine.java | 18 +- base/src/org/compiere/model/X_C_Channel.java | 9 +- base/src/org/compiere/model/X_C_Charge.java | 18 +- .../org/compiere/model/X_C_ChargeType.java | 11 +- .../model/X_C_ChargeType_DocType.java | 14 +- .../org/compiere/model/X_C_Charge_Acct.java | 14 +- base/src/org/compiere/model/X_C_City.java | 9 +- .../org/compiere/model/X_C_Commission.java | 34 +-- .../org/compiere/model/X_C_CommissionAmt.java | 27 ++- .../compiere/model/X_C_CommissionDetail.java | 27 ++- .../compiere/model/X_C_CommissionLine.java | 22 +- .../org/compiere/model/X_C_CommissionRun.java | 20 +- .../compiere/model/X_C_ConversionType.java | 11 +- .../compiere/model/X_C_Conversion_Rate.java | 27 ++- base/src/org/compiere/model/X_C_Country.java | 13 +- base/src/org/compiere/model/X_C_Currency.java | 13 +- .../org/compiere/model/X_C_Currency_Acct.java | 14 +- base/src/org/compiere/model/X_C_Cycle.java | 16 +- .../org/compiere/model/X_C_CyclePhase.java | 14 +- .../src/org/compiere/model/X_C_CycleStep.java | 18 +- base/src/org/compiere/model/X_C_DocType.java | 20 +- .../compiere/model/X_C_DocTypeCounter.java | 23 +- base/src/org/compiere/model/X_C_Dunning.java | 9 +- .../org/compiere/model/X_C_DunningLevel.java | 20 +- .../org/compiere/model/X_C_DunningRun.java | 16 +- .../compiere/model/X_C_DunningRunEntry.java | 46 ++-- .../compiere/model/X_C_DunningRunLine.java | 26 +-- base/src/org/compiere/model/X_C_Element.java | 18 +- .../org/compiere/model/X_C_ElementValue.java | 22 +- base/src/org/compiere/model/X_C_Greeting.java | 9 +- .../org/compiere/model/X_C_InterOrg_Acct.java | 14 +- base/src/org/compiere/model/X_C_Invoice.java | 72 ++++--- .../org/compiere/model/X_C_InvoiceBatch.java | 29 ++- .../compiere/model/X_C_InvoiceBatchLine.java | 65 +++--- .../org/compiere/model/X_C_InvoiceLine.java | 42 ++-- .../model/X_C_InvoicePaySchedule.java | 22 +- .../compiere/model/X_C_InvoiceSchedule.java | 15 +- .../org/compiere/model/X_C_InvoiceTax.java | 18 +- base/src/org/compiere/model/X_C_Job.java | 16 +- .../org/compiere/model/X_C_JobAssignment.java | 23 +- .../org/compiere/model/X_C_JobCategory.java | 9 +- .../compiere/model/X_C_JobRemuneration.java | 23 +- .../org/compiere/model/X_C_LandedCost.java | 23 +- .../model/X_C_LandedCostAllocation.java | 36 ++-- base/src/org/compiere/model/X_C_Location.java | 14 +- .../compiere/model/X_C_NonBusinessDay.java | 16 +- base/src/org/compiere/model/X_C_Order.java | 100 +++++---- .../src/org/compiere/model/X_C_OrderLine.java | 82 +++----- base/src/org/compiere/model/X_C_OrderTax.java | 18 +- .../org/compiere/model/X_C_OrgAssignment.java | 16 +- base/src/org/compiere/model/X_C_POS.java | 39 ++-- base/src/org/compiere/model/X_C_POSKey.java | 25 ++- .../org/compiere/model/X_C_POSKeyLayout.java | 9 +- .../org/compiere/model/X_C_PaySchedule.java | 18 +- .../org/compiere/model/X_C_PaySelection.java | 20 +- .../compiere/model/X_C_PaySelectionCheck.java | 27 ++- .../compiere/model/X_C_PaySelectionLine.java | 31 ++- base/src/org/compiere/model/X_C_Payment.java | 44 ++-- .../compiere/model/X_C_PaymentAllocate.java | 29 ++- .../org/compiere/model/X_C_PaymentBatch.java | 16 +- .../compiere/model/X_C_PaymentProcessor.java | 26 +-- .../org/compiere/model/X_C_PaymentTerm.java | 15 +- base/src/org/compiere/model/X_C_Period.java | 20 +- .../org/compiere/model/X_C_PeriodControl.java | 18 +- base/src/org/compiere/model/X_C_Phase.java | 18 +- base/src/org/compiere/model/X_C_Project.java | 38 +--- .../org/compiere/model/X_C_ProjectIssue.java | 39 ++-- .../compiere/model/X_C_ProjectIssueMA.java | 16 +- .../org/compiere/model/X_C_ProjectLine.java | 26 +-- .../org/compiere/model/X_C_ProjectPhase.java | 22 +- .../org/compiere/model/X_C_ProjectTask.java | 22 +- .../org/compiere/model/X_C_ProjectType.java | 11 +- .../org/compiere/model/X_C_Project_Acct.java | 14 +- .../src/org/compiere/model/X_C_Recurring.java | 15 +- .../org/compiere/model/X_C_Recurring_Run.java | 14 +- base/src/org/compiere/model/X_C_Region.java | 16 +- .../org/compiere/model/X_C_Remuneration.java | 19 +- .../model/X_C_RevenueRecognition.java | 11 +- .../model/X_C_RevenueRecognition_Plan.java | 39 ++-- .../model/X_C_RevenueRecognition_Run.java | 23 +- base/src/org/compiere/model/X_C_RfQ.java | 36 ++-- base/src/org/compiere/model/X_C_RfQLine.java | 21 +- .../org/compiere/model/X_C_RfQLineQty.java | 25 ++- .../org/compiere/model/X_C_RfQResponse.java | 39 ++-- .../compiere/model/X_C_RfQResponseLine.java | 21 +- .../model/X_C_RfQResponseLineQty.java | 23 +- .../src/org/compiere/model/X_C_RfQ_Topic.java | 9 +- .../model/X_C_RfQ_TopicSubscriber.java | 28 +-- .../model/X_C_RfQ_TopicSubscriberOnly.java | 14 +- .../org/compiere/model/X_C_SalesRegion.java | 11 +- .../org/compiere/model/X_C_ServiceLevel.java | 25 ++- .../compiere/model/X_C_ServiceLevelLine.java | 18 +- base/src/org/compiere/model/X_C_SubAcct.java | 18 +- .../org/compiere/model/X_C_Subscription.java | 36 ++-- .../compiere/model/X_C_SubscriptionType.java | 11 +- .../model/X_C_Subscription_Delivery.java | 14 +- base/src/org/compiere/model/X_C_Task.java | 18 +- base/src/org/compiere/model/X_C_Tax.java | 22 +- .../org/compiere/model/X_C_TaxCategory.java | 9 +- .../compiere/model/X_C_TaxDeclaration.java | 15 +- .../model/X_C_TaxDeclarationAcct.java | 28 +-- .../model/X_C_TaxDeclarationLine.java | 41 ++-- .../src/org/compiere/model/X_C_TaxPostal.java | 16 +- base/src/org/compiere/model/X_C_Tax_Acct.java | 14 +- base/src/org/compiere/model/X_C_UOM.java | 11 +- .../compiere/model/X_C_UOM_Conversion.java | 25 ++- .../compiere/model/X_C_UserRemuneration.java | 31 ++- .../compiere/model/X_C_ValidCombination.java | 21 +- .../org/compiere/model/X_C_Withholding.java | 16 +- .../compiere/model/X_C_Withholding_Acct.java | 14 +- base/src/org/compiere/model/X_C_Year.java | 16 +- base/src/org/compiere/model/X_Fact_Acct.java | 70 +++---- base/src/org/compiere/model/X_GL_Budget.java | 9 +- .../compiere/model/X_GL_BudgetControl.java | 27 +-- .../src/org/compiere/model/X_GL_Category.java | 11 +- .../org/compiere/model/X_GL_Distribution.java | 20 +- .../compiere/model/X_GL_DistributionLine.java | 16 +- base/src/org/compiere/model/X_GL_Fund.java | 18 +- .../compiere/model/X_GL_FundRestriction.java | 23 +- base/src/org/compiere/model/X_GL_Journal.java | 69 +++--- .../org/compiere/model/X_GL_JournalBatch.java | 28 +-- .../org/compiere/model/X_GL_JournalLine.java | 47 ++--- base/src/org/compiere/model/X_I_Asset.java | 9 +- base/src/org/compiere/model/X_I_BPartner.java | 7 +- .../org/compiere/model/X_I_BankStatement.java | 7 +- .../compiere/model/X_I_Conversion_Rate.java | 7 +- .../org/compiere/model/X_I_ElementValue.java | 7 +- .../src/org/compiere/model/X_I_FAJournal.java | 9 +- .../src/org/compiere/model/X_I_GLJournal.java | 9 +- .../compiere/model/X_I_InOutLineConfirm.java | 22 +- .../src/org/compiere/model/X_I_Inventory.java | 7 +- base/src/org/compiere/model/X_I_Invoice.java | 9 +- base/src/org/compiere/model/X_I_Order.java | 9 +- base/src/org/compiere/model/X_I_Payment.java | 9 +- .../src/org/compiere/model/X_I_PriceList.java | 7 +- base/src/org/compiere/model/X_I_Product.java | 7 +- .../org/compiere/model/X_I_ReportLine.java | 7 +- base/src/org/compiere/model/X_K_Category.java | 9 +- .../org/compiere/model/X_K_CategoryValue.java | 16 +- base/src/org/compiere/model/X_K_Comment.java | 16 +- base/src/org/compiere/model/X_K_Entry.java | 18 +- .../org/compiere/model/X_K_EntryCategory.java | 21 +- .../org/compiere/model/X_K_EntryRelated.java | 14 +- base/src/org/compiere/model/X_K_Index.java | 27 ++- base/src/org/compiere/model/X_K_IndexLog.java | 11 +- .../src/org/compiere/model/X_K_IndexStop.java | 11 +- base/src/org/compiere/model/X_K_Source.java | 9 +- base/src/org/compiere/model/X_K_Synonym.java | 11 +- base/src/org/compiere/model/X_K_Topic.java | 16 +- base/src/org/compiere/model/X_K_Type.java | 9 +- .../src/org/compiere/model/X_M_Attribute.java | 11 +- .../compiere/model/X_M_AttributeInstance.java | 14 +- .../compiere/model/X_M_AttributeSearch.java | 9 +- .../org/compiere/model/X_M_AttributeSet.java | 11 +- .../model/X_M_AttributeSetExclude.java | 21 +- .../model/X_M_AttributeSetInstance.java | 14 +- .../org/compiere/model/X_M_AttributeUse.java | 14 +- .../compiere/model/X_M_AttributeValue.java | 18 +- base/src/org/compiere/model/X_M_BOM.java | 20 +- .../compiere/model/X_M_BOMAlternative.java | 16 +- .../org/compiere/model/X_M_BOMProduct.java | 20 +- .../org/compiere/model/X_M_ChangeNotice.java | 9 +- .../org/compiere/model/X_M_ChangeRequest.java | 11 +- base/src/org/compiere/model/X_M_Cost.java | 43 ++-- .../org/compiere/model/X_M_CostDetail.java | 32 +-- .../org/compiere/model/X_M_CostElement.java | 11 +- .../src/org/compiere/model/X_M_CostQueue.java | 46 ++-- base/src/org/compiere/model/X_M_CostType.java | 9 +- base/src/org/compiere/model/X_M_Demand.java | 23 +- .../org/compiere/model/X_M_DemandDetail.java | 14 +- .../org/compiere/model/X_M_DemandLine.java | 32 +-- .../compiere/model/X_M_DiscountSchema.java | 13 +- .../model/X_M_DiscountSchemaBreak.java | 18 +- .../model/X_M_DiscountSchemaLine.java | 59 ++---- .../compiere/model/X_M_DistributionList.java | 9 +- .../model/X_M_DistributionListLine.java | 30 +-- .../compiere/model/X_M_DistributionRun.java | 9 +- .../model/X_M_DistributionRunLine.java | 32 +-- base/src/org/compiere/model/X_M_Forecast.java | 23 +- .../org/compiere/model/X_M_ForecastLine.java | 41 ++-- base/src/org/compiere/model/X_M_Freight.java | 32 +-- .../compiere/model/X_M_FreightCategory.java | 11 +- base/src/org/compiere/model/X_M_InOut.java | 55 +++-- .../org/compiere/model/X_M_InOutConfirm.java | 22 +- .../src/org/compiere/model/X_M_InOutLine.java | 32 +-- .../compiere/model/X_M_InOutLineConfirm.java | 25 ++- .../org/compiere/model/X_M_InOutLineMA.java | 16 +- .../src/org/compiere/model/X_M_Inventory.java | 29 ++- .../org/compiere/model/X_M_InventoryLine.java | 43 ++-- .../compiere/model/X_M_InventoryLineMA.java | 16 +- base/src/org/compiere/model/X_M_Locator.java | 22 +- base/src/org/compiere/model/X_M_Lot.java | 16 +- base/src/org/compiere/model/X_M_LotCtl.java | 9 +- .../org/compiere/model/X_M_LotCtlExclude.java | 21 +- base/src/org/compiere/model/X_M_MatchInv.java | 36 ++-- base/src/org/compiere/model/X_M_MatchPO.java | 36 ++-- base/src/org/compiere/model/X_M_Movement.java | 22 +- .../compiere/model/X_M_MovementConfirm.java | 20 +- .../org/compiere/model/X_M_MovementLine.java | 41 ++-- .../model/X_M_MovementLineConfirm.java | 29 ++- .../compiere/model/X_M_MovementLineMA.java | 14 +- .../compiere/model/X_M_OperationResource.java | 22 +- base/src/org/compiere/model/X_M_Package.java | 23 +- .../org/compiere/model/X_M_PackageLine.java | 23 +- .../org/compiere/model/X_M_PerpetualInv.java | 11 +- .../src/org/compiere/model/X_M_PriceList.java | 18 +- .../compiere/model/X_M_PriceList_Version.java | 25 ++- base/src/org/compiere/model/X_M_Product.java | 43 ++-- .../compiere/model/X_M_ProductDownload.java | 18 +- .../compiere/model/X_M_ProductOperation.java | 16 +- .../org/compiere/model/X_M_ProductPrice.java | 20 +- .../model/X_M_ProductPriceVendorBreak.java | 36 ++-- .../org/compiere/model/X_M_Product_Acct.java | 14 +- .../org/compiere/model/X_M_Product_BOM.java | 23 +- .../compiere/model/X_M_Product_Category.java | 15 +- .../model/X_M_Product_Category_Acct.java | 14 +- .../compiere/model/X_M_Product_Costing.java | 42 +--- .../org/compiere/model/X_M_Product_PO.java | 16 +- .../org/compiere/model/X_M_Production.java | 11 +- .../compiere/model/X_M_ProductionLine.java | 37 ++-- .../compiere/model/X_M_ProductionLineMA.java | 16 +- .../compiere/model/X_M_ProductionPlan.java | 30 +-- base/src/org/compiere/model/X_M_RMA.java | 198 +++++++++--------- base/src/org/compiere/model/X_M_RMALine.java | 132 ++++++------ base/src/org/compiere/model/X_M_RMAType.java | 9 +- .../compiere/model/X_M_RelatedProduct.java | 18 +- .../src/org/compiere/model/X_M_Replenish.java | 20 +- .../org/compiere/model/X_M_Requisition.java | 49 ++--- .../compiere/model/X_M_RequisitionLine.java | 22 +- base/src/org/compiere/model/X_M_SerNoCtl.java | 9 +- .../compiere/model/X_M_SerNoCtlExclude.java | 21 +- base/src/org/compiere/model/X_M_Shipper.java | 9 +- base/src/org/compiere/model/X_M_Storage.java | 27 ++- .../org/compiere/model/X_M_Substitute.java | 16 +- .../org/compiere/model/X_M_Transaction.java | 34 +-- .../model/X_M_TransactionAllocation.java | 25 +-- .../src/org/compiere/model/X_M_Warehouse.java | 20 +- .../compiere/model/X_M_Warehouse_Acct.java | 14 +- .../org/compiere/model/X_PA_Achievement.java | 18 +- .../org/compiere/model/X_PA_Benchmark.java | 11 +- .../compiere/model/X_PA_BenchmarkData.java | 20 +- .../org/compiere/model/X_PA_ColorSchema.java | 23 +- .../compiere/model/X_PA_DashboardContent.java | 9 +- base/src/org/compiere/model/X_PA_Goal.java | 28 +-- .../compiere/model/X_PA_GoalRestriction.java | 18 +- .../org/compiere/model/X_PA_Hierarchy.java | 65 +++--- base/src/org/compiere/model/X_PA_Measure.java | 13 +- .../org/compiere/model/X_PA_MeasureCalc.java | 26 +-- base/src/org/compiere/model/X_PA_Ratio.java | 16 +- .../org/compiere/model/X_PA_RatioElement.java | 20 +- base/src/org/compiere/model/X_PA_Report.java | 37 ++-- .../org/compiere/model/X_PA_ReportColumn.java | 20 +- .../compiere/model/X_PA_ReportColumnSet.java | 9 +- .../org/compiere/model/X_PA_ReportLine.java | 18 +- .../compiere/model/X_PA_ReportLineSet.java | 9 +- .../org/compiere/model/X_PA_ReportSource.java | 16 +- .../org/compiere/model/X_PA_SLA_Criteria.java | 9 +- .../src/org/compiere/model/X_PA_SLA_Goal.java | 27 ++- .../org/compiere/model/X_PA_SLA_Measure.java | 20 +- .../src/org/compiere/model/X_RV_BPartner.java | 38 ++-- .../compiere/model/X_RV_WarehousePrice.java | 34 ++- base/src/org/compiere/model/X_R_Category.java | 9 +- .../compiere/model/X_R_CategoryUpdates.java | 14 +- .../compiere/model/X_R_ContactInterest.java | 14 +- base/src/org/compiere/model/X_R_Group.java | 9 +- .../org/compiere/model/X_R_GroupUpdates.java | 14 +- .../org/compiere/model/X_R_InterestArea.java | 11 +- .../org/compiere/model/X_R_IssueKnown.java | 11 +- .../org/compiere/model/X_R_IssueProject.java | 11 +- .../model/X_R_IssueRecommendation.java | 9 +- .../org/compiere/model/X_R_IssueStatus.java | 9 +- .../org/compiere/model/X_R_IssueSystem.java | 11 +- .../src/org/compiere/model/X_R_IssueUser.java | 9 +- base/src/org/compiere/model/X_R_MailText.java | 11 +- base/src/org/compiere/model/X_R_Request.java | 32 ++- .../org/compiere/model/X_R_RequestAction.java | 16 +- .../compiere/model/X_R_RequestProcessor.java | 18 +- .../model/X_R_RequestProcessorLog.java | 14 +- .../model/X_R_RequestProcessor_Route.java | 21 +- .../org/compiere/model/X_R_RequestType.java | 18 +- .../model/X_R_RequestTypeUpdates.java | 14 +- .../org/compiere/model/X_R_RequestUpdate.java | 16 +- .../compiere/model/X_R_RequestUpdates.java | 14 +- .../org/compiere/model/X_R_Resolution.java | 9 +- .../compiere/model/X_R_StandardResponse.java | 11 +- base/src/org/compiere/model/X_R_Status.java | 18 +- .../compiere/model/X_R_StatusCategory.java | 9 +- .../org/compiere/model/X_S_ExpenseType.java | 32 +-- base/src/org/compiere/model/X_S_Resource.java | 27 ++- .../model/X_S_ResourceAssignment.java | 18 +- .../org/compiere/model/X_S_ResourceType.java | 32 +-- .../model/X_S_ResourceUnAvailable.java | 16 +- .../org/compiere/model/X_S_TimeExpense.java | 36 ++-- .../compiere/model/X_S_TimeExpenseLine.java | 16 +- base/src/org/compiere/model/X_S_TimeType.java | 9 +- base/src/org/compiere/model/X_S_Training.java | 30 +-- .../compiere/model/X_S_Training_Class.java | 25 ++- base/src/org/compiere/model/X_T_Aging.java | 76 ++----- .../model/X_T_DistributionRunDetail.java | 55 ++--- .../compiere/model/X_T_InventoryValue.java | 28 +-- .../src/org/compiere/model/X_T_InvoiceGL.java | 46 ++-- .../src/org/compiere/model/X_T_Replenish.java | 36 ++-- base/src/org/compiere/model/X_T_Report.java | 28 +-- .../compiere/model/X_T_ReportStatement.java | 16 +- .../org/compiere/model/X_T_Transaction.java | 41 ++-- base/src/org/compiere/model/X_Test.java | 9 +- .../compiere/model/X_U_BlackListCheque.java | 11 +- .../org/compiere/model/X_U_POSTerminal.java | 23 +- base/src/org/compiere/model/X_U_RoleMenu.java | 21 +- base/src/org/compiere/model/X_U_WebMenu.java | 13 +- .../compiere/model/X_U_Web_Properties.java | 11 +- .../org/compiere/model/X_W_Advertisement.java | 25 +-- base/src/org/compiere/model/X_W_Basket.java | 21 +- .../org/compiere/model/X_W_BasketLine.java | 22 +- base/src/org/compiere/model/X_W_Click.java | 7 +- .../org/compiere/model/X_W_ClickCount.java | 11 +- base/src/org/compiere/model/X_W_Counter.java | 13 +- .../org/compiere/model/X_W_CounterCount.java | 11 +- base/src/org/compiere/model/X_W_MailMsg.java | 22 +- base/src/org/compiere/model/X_W_Store.java | 41 ++-- 600 files changed, 5792 insertions(+), 6333 deletions(-) diff --git a/base/src/org/compiere/model/I_M_RMA.java b/base/src/org/compiere/model/I_M_RMA.java index 95181c42f0..583c27787e 100644 --- a/base/src/org/compiere/model/I_M_RMA.java +++ b/base/src/org/compiere/model/I_M_RMA.java @@ -279,6 +279,19 @@ public interface I_M_RMA */ public boolean isSOTrx(); + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + /** Column name M_RMAType_ID */ public static final String COLUMNNAME_M_RMAType_ID = "M_RMAType_ID"; @@ -294,19 +307,6 @@ public interface I_M_RMA public I_M_RMAType getM_RMAType() throws RuntimeException; - /** Column name M_RMA_ID */ - public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; - - /** Set RMA. - * Return Material Authorization - */ - public void setM_RMA_ID (int M_RMA_ID); - - /** Get RMA. - * Return Material Authorization - */ - public int getM_RMA_ID(); - /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; diff --git a/base/src/org/compiere/model/I_M_RMALine.java b/base/src/org/compiere/model/I_M_RMALine.java index 7e381c0c0e..91122bf71d 100644 --- a/base/src/org/compiere/model/I_M_RMALine.java +++ b/base/src/org/compiere/model/I_M_RMALine.java @@ -173,19 +173,6 @@ public interface I_M_RMALine public I_M_InOutLine getM_InOutLine() throws RuntimeException; - /** Column name M_RMALine_ID */ - public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; - - /** Set RMA Line. - * Return Material Authorization Line - */ - public void setM_RMALine_ID (int M_RMALine_ID); - - /** Get RMA Line. - * Return Material Authorization Line - */ - public int getM_RMALine_ID(); - /** Column name M_RMA_ID */ public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; @@ -201,6 +188,19 @@ public interface I_M_RMALine public I_M_RMA getM_RMA() throws RuntimeException; + /** Column name M_RMALine_ID */ + public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; + + /** Set RMA Line. + * Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID); + + /** Get RMA Line. + * Return Material Authorization Line + */ + public int getM_RMALine_ID(); + /** Column name Processed */ public static final String COLUMNNAME_Processed = "Processed"; diff --git a/base/src/org/compiere/model/X_AD_AccessLog.java b/base/src/org/compiere/model/X_AD_AccessLog.java index fa9a651c74..196cbcfc0c 100644 --- a/base/src/org/compiere/model/X_AD_AccessLog.java +++ b/base/src/org/compiere/model/X_AD_AccessLog.java @@ -78,9 +78,10 @@ public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent */ public void setAD_AccessLog_ID (int AD_AccessLog_ID) { - if (AD_AccessLog_ID < 1) - throw new IllegalArgumentException ("AD_AccessLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AccessLog_ID, Integer.valueOf(AD_AccessLog_ID)); + if (AD_AccessLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AccessLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AccessLog_ID, Integer.valueOf(AD_AccessLog_ID)); } /** Get Access Log. @@ -203,7 +204,7 @@ public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_AD_Alert.java b/base/src/org/compiere/model/X_AD_Alert.java index 99a261f2d5..03dd4a8fee 100644 --- a/base/src/org/compiere/model/X_AD_Alert.java +++ b/base/src/org/compiere/model/X_AD_Alert.java @@ -88,9 +88,10 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent */ public void setAD_Alert_ID (int AD_Alert_ID) { - if (AD_Alert_ID < 1) - throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + if (AD_Alert_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); } /** Get Alert. @@ -126,9 +127,10 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent */ public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) { - if (AD_AlertProcessor_ID < 1) - throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); - set_Value (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + if (AD_AlertProcessor_ID < 1) + set_Value (COLUMNNAME_AD_AlertProcessor_ID, null); + else + set_Value (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); } /** Get Alert Processor. @@ -148,8 +150,6 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent */ public void setAlertMessage (String AlertMessage) { - if (AlertMessage == null) - throw new IllegalArgumentException ("AlertMessage is mandatory."); set_Value (COLUMNNAME_AlertMessage, AlertMessage); } @@ -167,8 +167,6 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent */ public void setAlertSubject (String AlertSubject) { - if (AlertSubject == null) - throw new IllegalArgumentException ("AlertSubject is mandatory."); set_Value (COLUMNNAME_AlertSubject, AlertSubject); } @@ -292,8 +290,6 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_AlertProcessor.java b/base/src/org/compiere/model/X_AD_AlertProcessor.java index 709bb801c6..e384e66fbb 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessor.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessor.java @@ -83,9 +83,10 @@ public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Pe */ public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) { - if (AD_AlertProcessor_ID < 1) - throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + if (AD_AlertProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); } /** Get Alert Processor. @@ -184,7 +185,7 @@ public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Pe */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -222,8 +223,6 @@ public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -270,9 +269,10 @@ public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Pe */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java index 62a332cb50..541ce932e9 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java @@ -95,9 +95,10 @@ public class X_AD_AlertProcessorLog extends PO implements I_AD_AlertProcessorLog */ public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) { - if (AD_AlertProcessor_ID < 1) - throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + if (AD_AlertProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); } /** Get Alert Processor. @@ -117,9 +118,10 @@ public class X_AD_AlertProcessorLog extends PO implements I_AD_AlertProcessorLog */ public void setAD_AlertProcessorLog_ID (int AD_AlertProcessorLog_ID) { - if (AD_AlertProcessorLog_ID < 1) - throw new IllegalArgumentException ("AD_AlertProcessorLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AlertProcessorLog_ID, Integer.valueOf(AD_AlertProcessorLog_ID)); + if (AD_AlertProcessorLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessorLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessorLog_ID, Integer.valueOf(AD_AlertProcessorLog_ID)); } /** Get Alert Processor Log. diff --git a/base/src/org/compiere/model/X_AD_AlertRecipient.java b/base/src/org/compiere/model/X_AD_AlertRecipient.java index c58a6a231a..8f00d6325e 100644 --- a/base/src/org/compiere/model/X_AD_AlertRecipient.java +++ b/base/src/org/compiere/model/X_AD_AlertRecipient.java @@ -95,9 +95,10 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe */ public void setAD_Alert_ID (int AD_Alert_ID) { - if (AD_Alert_ID < 1) - throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + if (AD_Alert_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); } /** Get Alert. @@ -117,9 +118,10 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe */ public void setAD_AlertRecipient_ID (int AD_AlertRecipient_ID) { - if (AD_AlertRecipient_ID < 1) - throw new IllegalArgumentException ("AD_AlertRecipient_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AlertRecipient_ID, Integer.valueOf(AD_AlertRecipient_ID)); + if (AD_AlertRecipient_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AlertRecipient_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AlertRecipient_ID, Integer.valueOf(AD_AlertRecipient_ID)); } /** Get Alert Recipient. @@ -155,7 +157,7 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); diff --git a/base/src/org/compiere/model/X_AD_AlertRule.java b/base/src/org/compiere/model/X_AD_AlertRule.java index 02965ccac6..510f106d69 100644 --- a/base/src/org/compiere/model/X_AD_AlertRule.java +++ b/base/src/org/compiere/model/X_AD_AlertRule.java @@ -100,9 +100,10 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent */ public void setAD_Alert_ID (int AD_Alert_ID) { - if (AD_Alert_ID < 1) - throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + if (AD_Alert_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); } /** Get Alert. @@ -122,9 +123,10 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent */ public void setAD_AlertRule_ID (int AD_AlertRule_ID) { - if (AD_AlertRule_ID < 1) - throw new IllegalArgumentException ("AD_AlertRule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AlertRule_ID, Integer.valueOf(AD_AlertRule_ID)); + if (AD_AlertRule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AlertRule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AlertRule_ID, Integer.valueOf(AD_AlertRule_ID)); } /** Get Alert Rule. @@ -197,8 +199,6 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent */ public void setFromClause (String FromClause) { - if (FromClause == null) - throw new IllegalArgumentException ("FromClause is mandatory."); set_Value (COLUMNNAME_FromClause, FromClause); } @@ -240,8 +240,6 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -318,8 +316,6 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent */ public void setSelectClause (String SelectClause) { - if (SelectClause == null) - throw new IllegalArgumentException ("SelectClause is mandatory."); set_Value (COLUMNNAME_SelectClause, SelectClause); } diff --git a/base/src/org/compiere/model/X_AD_Archive.java b/base/src/org/compiere/model/X_AD_Archive.java index 6cfecaf4e1..8e7efcb075 100644 --- a/base/src/org/compiere/model/X_AD_Archive.java +++ b/base/src/org/compiere/model/X_AD_Archive.java @@ -81,9 +81,10 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent */ public void setAD_Archive_ID (int AD_Archive_ID) { - if (AD_Archive_ID < 1) - throw new IllegalArgumentException ("AD_Archive_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Archive_ID, Integer.valueOf(AD_Archive_ID)); + if (AD_Archive_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Archive_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Archive_ID, Integer.valueOf(AD_Archive_ID)); } /** Get Archive. @@ -181,8 +182,6 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent */ public void setBinaryData (byte[] BinaryData) { - if (BinaryData == null) - throw new IllegalArgumentException ("BinaryData is mandatory."); set_Value (COLUMNNAME_BinaryData, BinaryData); } @@ -297,8 +296,6 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -324,7 +321,7 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_AD_Attachment.java b/base/src/org/compiere/model/X_AD_Attachment.java index 1a184e28e7..fafda01b72 100644 --- a/base/src/org/compiere/model/X_AD_Attachment.java +++ b/base/src/org/compiere/model/X_AD_Attachment.java @@ -81,9 +81,10 @@ public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent */ public void setAD_Attachment_ID (int AD_Attachment_ID) { - if (AD_Attachment_ID < 1) - throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); + if (AD_Attachment_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); } /** Get Attachment. @@ -119,9 +120,10 @@ public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -158,9 +160,10 @@ public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @@ -197,8 +200,6 @@ public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent */ public void setTitle (String Title) { - if (Title == null) - throw new IllegalArgumentException ("Title is mandatory."); set_Value (COLUMNNAME_Title, Title); } diff --git a/base/src/org/compiere/model/X_AD_AttachmentNote.java b/base/src/org/compiere/model/X_AD_AttachmentNote.java index 91dfe3cb6d..0f6a1e28a6 100644 --- a/base/src/org/compiere/model/X_AD_AttachmentNote.java +++ b/base/src/org/compiere/model/X_AD_AttachmentNote.java @@ -98,9 +98,10 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe */ public void setAD_Attachment_ID (int AD_Attachment_ID) { - if (AD_Attachment_ID < 1) - throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); + if (AD_Attachment_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); } /** Get Attachment. @@ -120,9 +121,10 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe */ public void setAD_AttachmentNote_ID (int AD_AttachmentNote_ID) { - if (AD_AttachmentNote_ID < 1) - throw new IllegalArgumentException ("AD_AttachmentNote_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_AttachmentNote_ID, Integer.valueOf(AD_AttachmentNote_ID)); + if (AD_AttachmentNote_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_AttachmentNote_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_AttachmentNote_ID, Integer.valueOf(AD_AttachmentNote_ID)); } /** Get Attachment Note. @@ -158,9 +160,10 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -180,8 +183,6 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe */ public void setTextMsg (String TextMsg) { - if (TextMsg == null) - throw new IllegalArgumentException ("TextMsg is mandatory."); set_Value (COLUMNNAME_TextMsg, TextMsg); } @@ -199,8 +200,6 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe */ public void setTitle (String Title) { - if (Title == null) - throw new IllegalArgumentException ("Title is mandatory."); set_Value (COLUMNNAME_Title, Title); } diff --git a/base/src/org/compiere/model/X_AD_Attribute.java b/base/src/org/compiere/model/X_AD_Attribute.java index c7f9e3542e..12c289663f 100644 --- a/base/src/org/compiere/model/X_AD_Attribute.java +++ b/base/src/org/compiere/model/X_AD_Attribute.java @@ -86,9 +86,10 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent @param AD_Attribute_ID System Attribute */ public void setAD_Attribute_ID (int AD_Attribute_ID) { - if (AD_Attribute_ID < 1) - throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); + if (AD_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); } /** Get System Attribute. @@ -107,9 +108,10 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -168,9 +170,10 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -522,8 +525,6 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Attribute_Value.java b/base/src/org/compiere/model/X_AD_Attribute_Value.java index 5c7e0af912..1649b29a17 100644 --- a/base/src/org/compiere/model/X_AD_Attribute_Value.java +++ b/base/src/org/compiere/model/X_AD_Attribute_Value.java @@ -75,9 +75,10 @@ public class X_AD_Attribute_Value extends PO implements I_AD_Attribute_Value, I_ @param AD_Attribute_ID System Attribute */ public void setAD_Attribute_ID (int AD_Attribute_ID) { - if (AD_Attribute_ID < 1) - throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); + if (AD_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); } /** Get System Attribute. @@ -96,9 +97,10 @@ public class X_AD_Attribute_Value extends PO implements I_AD_Attribute_Value, I_ */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_ChangeLog.java b/base/src/org/compiere/model/X_AD_ChangeLog.java index ff62d40a92..8f6862d82f 100644 --- a/base/src/org/compiere/model/X_AD_ChangeLog.java +++ b/base/src/org/compiere/model/X_AD_ChangeLog.java @@ -83,9 +83,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent */ public void setAD_ChangeLog_ID (int AD_ChangeLog_ID) { - if (AD_ChangeLog_ID < 1) - throw new IllegalArgumentException ("AD_ChangeLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ChangeLog_ID, Integer.valueOf(AD_ChangeLog_ID)); + if (AD_ChangeLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ChangeLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ChangeLog_ID, Integer.valueOf(AD_ChangeLog_ID)); } /** Get Change Log. @@ -121,9 +122,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -159,9 +161,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent */ public void setAD_Session_ID (int AD_Session_ID) { - if (AD_Session_ID < 1) - throw new IllegalArgumentException ("AD_Session_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + if (AD_Session_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); } /** Get Session. @@ -205,9 +208,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -328,9 +332,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_Client.java b/base/src/org/compiere/model/X_AD_Client.java index b9fd5a126e..327b1f7bcd 100644 --- a/base/src/org/compiere/model/X_AD_Client.java +++ b/base/src/org/compiere/model/X_AD_Client.java @@ -166,7 +166,7 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent */ public void setAutoArchive (String AutoArchive) { - if (AutoArchive == null) throw new IllegalArgumentException ("AutoArchive is mandatory"); + set_Value (COLUMNNAME_AutoArchive, AutoArchive); } @@ -406,7 +406,7 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent */ public void setMMPolicy (String MMPolicy) { - if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory"); + set_Value (COLUMNNAME_MMPolicy, MMPolicy); } @@ -441,8 +441,6 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -623,8 +621,6 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_ClientShare.java b/base/src/org/compiere/model/X_AD_ClientShare.java index 23c8b03d73..286bb19c43 100644 --- a/base/src/org/compiere/model/X_AD_ClientShare.java +++ b/base/src/org/compiere/model/X_AD_ClientShare.java @@ -81,9 +81,10 @@ public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persiste */ public void setAD_ClientShare_ID (int AD_ClientShare_ID) { - if (AD_ClientShare_ID < 1) - throw new IllegalArgumentException ("AD_ClientShare_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ClientShare_ID, Integer.valueOf(AD_ClientShare_ID)); + if (AD_ClientShare_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ClientShare_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ClientShare_ID, Integer.valueOf(AD_ClientShare_ID)); } /** Get Client Share. @@ -119,9 +120,10 @@ public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persiste */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -158,8 +160,6 @@ public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -193,7 +193,7 @@ public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persiste */ public void setShareType (String ShareType) { - if (ShareType == null) throw new IllegalArgumentException ("ShareType is mandatory"); + set_Value (COLUMNNAME_ShareType, ShareType); } diff --git a/base/src/org/compiere/model/X_AD_Color.java b/base/src/org/compiere/model/X_AD_Color.java index 8bd510ce9b..d355bc53dd 100644 --- a/base/src/org/compiere/model/X_AD_Color.java +++ b/base/src/org/compiere/model/X_AD_Color.java @@ -88,9 +88,10 @@ public class X_AD_Color extends PO implements I_AD_Color, I_Persistent */ public void setAD_Color_ID (int AD_Color_ID) { - if (AD_Color_ID < 1) - throw new IllegalArgumentException ("AD_Color_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); + if (AD_Color_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Color_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); } /** Get System Color. @@ -239,7 +240,7 @@ public class X_AD_Color extends PO implements I_AD_Color, I_Persistent */ public void setColorType (String ColorType) { - if (ColorType == null) throw new IllegalArgumentException ("ColorType is mandatory"); + set_Value (COLUMNNAME_ColorType, ColorType); } @@ -297,8 +298,6 @@ public class X_AD_Color extends PO implements I_AD_Color, I_Persistent */ public void setImageAlpha (BigDecimal ImageAlpha) { - if (ImageAlpha == null) - throw new IllegalArgumentException ("ImageAlpha is mandatory."); set_Value (COLUMNNAME_ImageAlpha, ImageAlpha); } @@ -383,8 +382,6 @@ public class X_AD_Color extends PO implements I_AD_Color, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Column.java b/base/src/org/compiere/model/X_AD_Column.java index 62e7ec33a4..0ce66cb3da 100644 --- a/base/src/org/compiere/model/X_AD_Column.java +++ b/base/src/org/compiere/model/X_AD_Column.java @@ -102,9 +102,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -140,9 +141,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setAD_Element_ID (int AD_Element_ID) { - if (AD_Element_ID < 1) - throw new IllegalArgumentException ("AD_Element_ID is mandatory."); - set_Value (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + if (AD_Element_ID < 1) + set_Value (COLUMNNAME_AD_Element_ID, null); + else + set_Value (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); } /** Get System Element. @@ -201,9 +203,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -262,9 +265,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -340,8 +344,6 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setColumnName (String ColumnName) { - if (ColumnName == null) - throw new IllegalArgumentException ("ColumnName is mandatory."); set_Value (COLUMNNAME_ColumnName, ColumnName); } @@ -587,7 +589,7 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setIsEncrypted (String IsEncrypted) { - if (IsEncrypted == null) throw new IllegalArgumentException ("IsEncrypted is mandatory"); + set_Value (COLUMNNAME_IsEncrypted, IsEncrypted); } @@ -804,8 +806,6 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -894,8 +894,6 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent */ public void setVersion (BigDecimal Version) { - if (Version == null) - throw new IllegalArgumentException ("Version is mandatory."); set_Value (COLUMNNAME_Version, Version); } diff --git a/base/src/org/compiere/model/X_AD_Column_Access.java b/base/src/org/compiere/model/X_AD_Column_Access.java index dbc0e726e7..9980574bfb 100644 --- a/base/src/org/compiere/model/X_AD_Column_Access.java +++ b/base/src/org/compiere/model/X_AD_Column_Access.java @@ -98,9 +98,10 @@ public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Pers */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -144,9 +145,10 @@ public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Pers */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. diff --git a/base/src/org/compiere/model/X_AD_Desktop.java b/base/src/org/compiere/model/X_AD_Desktop.java index 02d927d8eb..8e22058549 100644 --- a/base/src/org/compiere/model/X_AD_Desktop.java +++ b/base/src/org/compiere/model/X_AD_Desktop.java @@ -100,9 +100,10 @@ public class X_AD_Desktop extends PO implements I_AD_Desktop, I_Persistent */ public void setAD_Desktop_ID (int AD_Desktop_ID) { - if (AD_Desktop_ID < 1) - throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); + if (AD_Desktop_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); } /** Get Desktop. @@ -179,8 +180,6 @@ public class X_AD_Desktop extends PO implements I_AD_Desktop, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java index b6b561a30b..093f1e3d2f 100644 --- a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java +++ b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java @@ -97,9 +97,10 @@ public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, */ public void setAD_Desktop_ID (int AD_Desktop_ID) { - if (AD_Desktop_ID < 1) - throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); + if (AD_Desktop_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); } /** Get Desktop. @@ -117,9 +118,10 @@ public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, @param AD_DesktopWorkbench_ID Desktop Workbench */ public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID) { - if (AD_DesktopWorkbench_ID < 1) - throw new IllegalArgumentException ("AD_DesktopWorkbench_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, Integer.valueOf(AD_DesktopWorkbench_ID)); + if (AD_DesktopWorkbench_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, Integer.valueOf(AD_DesktopWorkbench_ID)); } /** Get Desktop Workbench. @@ -154,9 +156,10 @@ public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, */ public void setAD_Workbench_ID (int AD_Workbench_ID) { - if (AD_Workbench_ID < 1) - throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); - set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + if (AD_Workbench_ID < 1) + set_Value (COLUMNNAME_AD_Workbench_ID, null); + else + set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); } /** Get Workbench. diff --git a/base/src/org/compiere/model/X_AD_Document_Action_Access.java b/base/src/org/compiere/model/X_AD_Document_Action_Access.java index df0a9ce2cd..cf72106fba 100644 --- a/base/src/org/compiere/model/X_AD_Document_Action_Access.java +++ b/base/src/org/compiere/model/X_AD_Document_Action_Access.java @@ -95,9 +95,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act */ public void setAD_Ref_List_ID (int AD_Ref_List_ID) { - if (AD_Ref_List_ID < 1) - throw new IllegalArgumentException ("AD_Ref_List_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, Integer.valueOf(AD_Ref_List_ID)); + if (AD_Ref_List_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, Integer.valueOf(AD_Ref_List_ID)); } /** Get Reference List. @@ -133,9 +134,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -171,9 +173,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. diff --git a/base/src/org/compiere/model/X_AD_Element.java b/base/src/org/compiere/model/X_AD_Element.java index 21134ef5bf..bc52625200 100644 --- a/base/src/org/compiere/model/X_AD_Element.java +++ b/base/src/org/compiere/model/X_AD_Element.java @@ -81,9 +81,10 @@ public class X_AD_Element extends PO implements I_AD_Element, I_Persistent */ public void setAD_Element_ID (int AD_Element_ID) { - if (AD_Element_ID < 1) - throw new IllegalArgumentException ("AD_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + if (AD_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); } /** Get System Element. @@ -103,8 +104,6 @@ public class X_AD_Element extends PO implements I_AD_Element, I_Persistent */ public void setColumnName (String ColumnName) { - if (ColumnName == null) - throw new IllegalArgumentException ("ColumnName is mandatory."); set_Value (COLUMNNAME_ColumnName, ColumnName); } @@ -184,8 +183,6 @@ public class X_AD_Element extends PO implements I_AD_Element, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -271,8 +268,6 @@ public class X_AD_Element extends PO implements I_AD_Element, I_Persistent */ public void setPrintName (String PrintName) { - if (PrintName == null) - throw new IllegalArgumentException ("PrintName is mandatory."); set_Value (COLUMNNAME_PrintName, PrintName); } diff --git a/base/src/org/compiere/model/X_AD_EntityType.java b/base/src/org/compiere/model/X_AD_EntityType.java index 0150db0772..c75d0454bb 100644 --- a/base/src/org/compiere/model/X_AD_EntityType.java +++ b/base/src/org/compiere/model/X_AD_EntityType.java @@ -78,9 +78,10 @@ public class X_AD_EntityType extends PO implements I_AD_EntityType, I_Persistent */ public void setAD_EntityType_ID (int AD_EntityType_ID) { - if (AD_EntityType_ID < 1) - throw new IllegalArgumentException ("AD_EntityType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_EntityType_ID, Integer.valueOf(AD_EntityType_ID)); + if (AD_EntityType_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_EntityType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_EntityType_ID, Integer.valueOf(AD_EntityType_ID)); } /** Get Entity Type. @@ -134,8 +135,6 @@ public class X_AD_EntityType extends PO implements I_AD_EntityType, I_Persistent */ public void setEntityType (String EntityType) { - if (EntityType == null) - throw new IllegalArgumentException ("EntityType is mandatory."); set_ValueNoCheck (COLUMNNAME_EntityType, EntityType); } @@ -187,8 +186,6 @@ public class X_AD_EntityType extends PO implements I_AD_EntityType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Error.java b/base/src/org/compiere/model/X_AD_Error.java index cc0cf62acb..929394bf14 100644 --- a/base/src/org/compiere/model/X_AD_Error.java +++ b/base/src/org/compiere/model/X_AD_Error.java @@ -75,9 +75,10 @@ public class X_AD_Error extends PO implements I_AD_Error, I_Persistent @param AD_Error_ID Error */ public void setAD_Error_ID (int AD_Error_ID) { - if (AD_Error_ID < 1) - throw new IllegalArgumentException ("AD_Error_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Error_ID, Integer.valueOf(AD_Error_ID)); + if (AD_Error_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Error_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Error_ID, Integer.valueOf(AD_Error_ID)); } /** Get Error. @@ -133,8 +134,6 @@ public class X_AD_Error extends PO implements I_AD_Error, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Field.java b/base/src/org/compiere/model/X_AD_Field.java index 60a435a738..382929bfb3 100644 --- a/base/src/org/compiere/model/X_AD_Field.java +++ b/base/src/org/compiere/model/X_AD_Field.java @@ -110,9 +110,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -171,9 +172,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent */ public void setAD_Field_ID (int AD_Field_ID) { - if (AD_Field_ID < 1) - throw new IllegalArgumentException ("AD_Field_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); + if (AD_Field_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Field_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); } /** Get Field. @@ -255,9 +257,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent */ public void setAD_Tab_ID (int AD_Tab_ID) { - if (AD_Tab_ID < 1) - throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + if (AD_Tab_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); } /** Get Tab. @@ -633,8 +636,6 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_FieldGroup.java b/base/src/org/compiere/model/X_AD_FieldGroup.java index a0687a397a..0989ab1265 100644 --- a/base/src/org/compiere/model/X_AD_FieldGroup.java +++ b/base/src/org/compiere/model/X_AD_FieldGroup.java @@ -79,9 +79,10 @@ public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent */ public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) { - if (AD_FieldGroup_ID < 1) - throw new IllegalArgumentException ("AD_FieldGroup_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID)); + if (AD_FieldGroup_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_FieldGroup_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID)); } /** Get Field Group. @@ -168,8 +169,6 @@ public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Find.java b/base/src/org/compiere/model/X_AD_Find.java index 097f16e7ac..bdd1e397ab 100644 --- a/base/src/org/compiere/model/X_AD_Find.java +++ b/base/src/org/compiere/model/X_AD_Find.java @@ -85,9 +85,10 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -105,9 +106,10 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent @param AD_Find_ID Find */ public void setAD_Find_ID (int AD_Find_ID) { - if (AD_Find_ID < 1) - throw new IllegalArgumentException ("AD_Find_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Find_ID, Integer.valueOf(AD_Find_ID)); + if (AD_Find_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Find_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Find_ID, Integer.valueOf(AD_Find_ID)); } /** Get Find. @@ -140,7 +142,7 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent */ public void setAndOr (String AndOr) { - if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory"); + set_Value (COLUMNNAME_AndOr, AndOr); } @@ -156,8 +158,6 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent @param Find_ID Find_ID */ public void setFind_ID (BigDecimal Find_ID) { - if (Find_ID == null) - throw new IllegalArgumentException ("Find_ID is mandatory."); set_Value (COLUMNNAME_Find_ID, Find_ID); } @@ -197,7 +197,7 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent */ public void setOperation (String Operation) { - if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory"); + set_Value (COLUMNNAME_Operation, Operation); } @@ -215,8 +215,6 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_Form.java b/base/src/org/compiere/model/X_AD_Form.java index 9109b1aafb..9dbfe0f700 100644 --- a/base/src/org/compiere/model/X_AD_Form.java +++ b/base/src/org/compiere/model/X_AD_Form.java @@ -95,7 +95,7 @@ public class X_AD_Form extends PO implements I_AD_Form, I_Persistent */ public void setAccessLevel (String AccessLevel) { - if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + set_Value (COLUMNNAME_AccessLevel, AccessLevel); } @@ -113,9 +113,10 @@ public class X_AD_Form extends PO implements I_AD_Form, I_Persistent */ public void setAD_Form_ID (int AD_Form_ID) { - if (AD_Form_ID < 1) - throw new IllegalArgumentException ("AD_Form_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + if (AD_Form_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); } /** Get Special Form. @@ -247,8 +248,6 @@ public class X_AD_Form extends PO implements I_AD_Form, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Form_Access.java b/base/src/org/compiere/model/X_AD_Form_Access.java index 9af3ab4184..09f46a7e5d 100644 --- a/base/src/org/compiere/model/X_AD_Form_Access.java +++ b/base/src/org/compiere/model/X_AD_Form_Access.java @@ -95,9 +95,10 @@ public class X_AD_Form_Access extends PO implements I_AD_Form_Access, I_Persiste */ public void setAD_Form_ID (int AD_Form_ID) { - if (AD_Form_ID < 1) - throw new IllegalArgumentException ("AD_Form_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + if (AD_Form_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); } /** Get Special Form. @@ -133,9 +134,10 @@ public class X_AD_Form_Access extends PO implements I_AD_Form_Access, I_Persiste */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. diff --git a/base/src/org/compiere/model/X_AD_HouseKeeping.java b/base/src/org/compiere/model/X_AD_HouseKeeping.java index 4a5f1cae32..ff757650a3 100644 --- a/base/src/org/compiere/model/X_AD_HouseKeeping.java +++ b/base/src/org/compiere/model/X_AD_HouseKeeping.java @@ -80,9 +80,10 @@ public class X_AD_HouseKeeping extends PO implements I_AD_HouseKeeping, I_Persis @param AD_HouseKeeping_ID House Keeping Configuration */ public void setAD_HouseKeeping_ID (int AD_HouseKeeping_ID) { - if (AD_HouseKeeping_ID < 1) - throw new IllegalArgumentException ("AD_HouseKeeping_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_HouseKeeping_ID, Integer.valueOf(AD_HouseKeeping_ID)); + if (AD_HouseKeeping_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_HouseKeeping_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_HouseKeeping_ID, Integer.valueOf(AD_HouseKeeping_ID)); } /** Get House Keeping Configuration. @@ -117,9 +118,10 @@ public class X_AD_HouseKeeping extends PO implements I_AD_HouseKeeping, I_Persis */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -263,8 +265,6 @@ public class X_AD_HouseKeeping extends PO implements I_AD_HouseKeeping, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -311,8 +311,6 @@ public class X_AD_HouseKeeping extends PO implements I_AD_HouseKeeping, I_Persis */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_Image.java b/base/src/org/compiere/model/X_AD_Image.java index 42db530dac..d80fe53ff3 100644 --- a/base/src/org/compiere/model/X_AD_Image.java +++ b/base/src/org/compiere/model/X_AD_Image.java @@ -79,9 +79,10 @@ public class X_AD_Image extends PO implements I_AD_Image, I_Persistent */ public void setAD_Image_ID (int AD_Image_ID) { - if (AD_Image_ID < 1) - throw new IllegalArgumentException ("AD_Image_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + if (AD_Image_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Image_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); } /** Get Image. @@ -172,8 +173,6 @@ public class X_AD_Image extends PO implements I_AD_Image, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_ImpFormat.java b/base/src/org/compiere/model/X_AD_ImpFormat.java index dbea6205be..ee05b37b40 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat.java @@ -80,9 +80,10 @@ public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent @param AD_ImpFormat_ID Import Format */ public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) { - if (AD_ImpFormat_ID < 1) - throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + if (AD_ImpFormat_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); } /** Get Import Format. @@ -117,9 +118,10 @@ public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -166,7 +168,7 @@ public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent */ public void setFormatType (String FormatType) { - if (FormatType == null) throw new IllegalArgumentException ("FormatType is mandatory"); + set_Value (COLUMNNAME_FormatType, FormatType); } @@ -184,8 +186,6 @@ public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_ImpFormat_Row.java b/base/src/org/compiere/model/X_AD_ImpFormat_Row.java index 8421b1da76..201ad2d410 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat_Row.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat_Row.java @@ -103,9 +103,10 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -139,9 +140,10 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers @param AD_ImpFormat_ID Import Format */ public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) { - if (AD_ImpFormat_ID < 1) - throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + if (AD_ImpFormat_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); } /** Get Import Format. @@ -158,9 +160,10 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers @param AD_ImpFormat_Row_ID Format Field */ public void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID) { - if (AD_ImpFormat_Row_ID < 1) - throw new IllegalArgumentException ("AD_ImpFormat_Row_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_Row_ID, Integer.valueOf(AD_ImpFormat_Row_ID)); + if (AD_ImpFormat_Row_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_Row_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_Row_ID, Integer.valueOf(AD_ImpFormat_Row_ID)); } /** Get Format Field. @@ -240,7 +243,7 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers */ public void setDataType (String DataType) { - if (DataType == null) throw new IllegalArgumentException ("DataType is mandatory"); + set_Value (COLUMNNAME_DataType, DataType); } @@ -258,8 +261,6 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers */ public void setDecimalPoint (String DecimalPoint) { - if (DecimalPoint == null) - throw new IllegalArgumentException ("DecimalPoint is mandatory."); set_Value (COLUMNNAME_DecimalPoint, DecimalPoint); } @@ -318,8 +319,6 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_InfoColumn.java b/base/src/org/compiere/model/X_AD_InfoColumn.java index 1a3cdce2bf..80f58586c0 100644 --- a/base/src/org/compiere/model/X_AD_InfoColumn.java +++ b/base/src/org/compiere/model/X_AD_InfoColumn.java @@ -126,9 +126,10 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent */ public void setAD_InfoColumn_ID (int AD_InfoColumn_ID) { - if (AD_InfoColumn_ID < 1) - throw new IllegalArgumentException ("AD_InfoColumn_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, Integer.valueOf(AD_InfoColumn_ID)); + if (AD_InfoColumn_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, Integer.valueOf(AD_InfoColumn_ID)); } /** Get Info Column. @@ -164,9 +165,10 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent */ public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) { - if (AD_InfoWindow_ID < 1) - throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); + if (AD_InfoWindow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); } /** Get Info Window. @@ -186,9 +188,10 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -310,8 +313,6 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -337,8 +338,6 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent */ public void setSelectClause (String SelectClause) { - if (SelectClause == null) - throw new IllegalArgumentException ("SelectClause is mandatory."); set_Value (COLUMNNAME_SelectClause, SelectClause); } diff --git a/base/src/org/compiere/model/X_AD_InfoWindow.java b/base/src/org/compiere/model/X_AD_InfoWindow.java index 8df47b519d..d7a7c8c516 100644 --- a/base/src/org/compiere/model/X_AD_InfoWindow.java +++ b/base/src/org/compiere/model/X_AD_InfoWindow.java @@ -83,9 +83,10 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent */ public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) { - if (AD_InfoWindow_ID < 1) - throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); + if (AD_InfoWindow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); } /** Get Info Window. @@ -121,9 +122,10 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -180,8 +182,6 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent */ public void setFromClause (String FromClause) { - if (FromClause == null) - throw new IllegalArgumentException ("FromClause is mandatory."); set_Value (COLUMNNAME_FromClause, FromClause); } @@ -216,8 +216,6 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Issue.java b/base/src/org/compiere/model/X_AD_Issue.java index afb7678702..6169956ddd 100644 --- a/base/src/org/compiere/model/X_AD_Issue.java +++ b/base/src/org/compiere/model/X_AD_Issue.java @@ -169,9 +169,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setAD_Issue_ID (int AD_Issue_ID) { - if (AD_Issue_ID < 1) - throw new IllegalArgumentException ("AD_Issue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, Integer.valueOf(AD_Issue_ID)); + if (AD_Issue_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, Integer.valueOf(AD_Issue_ID)); } /** Get System Issue. @@ -395,8 +396,6 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setIssueSummary (String IssueSummary) { - if (IssueSummary == null) - throw new IllegalArgumentException ("IssueSummary is mandatory."); set_Value (COLUMNNAME_IssueSummary, IssueSummary); } @@ -517,8 +516,6 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_ValueNoCheck (COLUMNNAME_Name, Name); } @@ -615,7 +612,7 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); @@ -638,8 +635,6 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setReleaseNo (String ReleaseNo) { - if (ReleaseNo == null) - throw new IllegalArgumentException ("ReleaseNo is mandatory."); set_ValueNoCheck (COLUMNNAME_ReleaseNo, ReleaseNo); } @@ -1030,7 +1025,7 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setSystemStatus (String SystemStatus) { - if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); + set_Value (COLUMNNAME_SystemStatus, SystemStatus); } @@ -1048,8 +1043,6 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setUserName (String UserName) { - if (UserName == null) - throw new IllegalArgumentException ("UserName is mandatory."); set_ValueNoCheck (COLUMNNAME_UserName, UserName); } @@ -1067,8 +1060,6 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent */ public void setVersion (String Version) { - if (Version == null) - throw new IllegalArgumentException ("Version is mandatory."); set_ValueNoCheck (COLUMNNAME_Version, Version); } diff --git a/base/src/org/compiere/model/X_AD_LabelPrinter.java b/base/src/org/compiere/model/X_AD_LabelPrinter.java index 9eddefefda..19d89c6486 100644 --- a/base/src/org/compiere/model/X_AD_LabelPrinter.java +++ b/base/src/org/compiere/model/X_AD_LabelPrinter.java @@ -77,9 +77,10 @@ public class X_AD_LabelPrinter extends PO implements I_AD_LabelPrinter, I_Persis */ public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) { - if (AD_LabelPrinter_ID < 1) - throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + if (AD_LabelPrinter_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); } /** Get Label printer. @@ -116,8 +117,6 @@ public class X_AD_LabelPrinter extends PO implements I_AD_LabelPrinter, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java index 6f5b71ab16..0547aae4ab 100644 --- a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java +++ b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java @@ -81,9 +81,10 @@ public class X_AD_LabelPrinterFunction extends PO implements I_AD_LabelPrinterFu */ public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) { - if (AD_LabelPrinterFunction_ID < 1) - throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); + if (AD_LabelPrinterFunction_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinterFunction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); } /** Get Label printer Function. @@ -119,9 +120,10 @@ public class X_AD_LabelPrinterFunction extends PO implements I_AD_LabelPrinterFu */ public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) { - if (AD_LabelPrinter_ID < 1) - throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + if (AD_LabelPrinter_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); } /** Get Label printer. @@ -216,8 +218,6 @@ public class X_AD_LabelPrinterFunction extends PO implements I_AD_LabelPrinterFu */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Language.java b/base/src/org/compiere/model/X_AD_Language.java index 3e95f66fba..0a17d98a25 100644 --- a/base/src/org/compiere/model/X_AD_Language.java +++ b/base/src/org/compiere/model/X_AD_Language.java @@ -83,8 +83,6 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent */ public void setAD_Language (String AD_Language) { - if (AD_Language == null) - throw new IllegalArgumentException ("AD_Language is mandatory."); set_ValueNoCheck (COLUMNNAME_AD_Language, AD_Language); } @@ -100,9 +98,10 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent @param AD_Language_ID Language ID */ public void setAD_Language_ID (int AD_Language_ID) { - if (AD_Language_ID < 1) - throw new IllegalArgumentException ("AD_Language_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Language_ID, Integer.valueOf(AD_Language_ID)); + if (AD_Language_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Language_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Language_ID, Integer.valueOf(AD_Language_ID)); } /** Get Language ID. @@ -244,8 +243,6 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_LdapAccess.java b/base/src/org/compiere/model/X_AD_LdapAccess.java index 8fe2e9e03c..7cfcb15434 100755 --- a/base/src/org/compiere/model/X_AD_LdapAccess.java +++ b/base/src/org/compiere/model/X_AD_LdapAccess.java @@ -80,9 +80,10 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent */ public void setAD_LdapAccess_ID (int AD_LdapAccess_ID) { - if (AD_LdapAccess_ID < 1) - throw new IllegalArgumentException ("AD_LdapAccess_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LdapAccess_ID, Integer.valueOf(AD_LdapAccess_ID)); + if (AD_LdapAccess_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LdapAccess_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LdapAccess_ID, Integer.valueOf(AD_LdapAccess_ID)); } /** Get Ldap Access. @@ -118,9 +119,10 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent */ public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) { - if (AD_LdapProcessor_ID < 1) - throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + if (AD_LdapProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); } /** Get Ldap Processor. diff --git a/base/src/org/compiere/model/X_AD_LdapProcessor.java b/base/src/org/compiere/model/X_AD_LdapProcessor.java index 478f8ad80c..b5af9f86bf 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessor.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessor.java @@ -83,9 +83,10 @@ public class X_AD_LdapProcessor extends PO implements I_AD_LdapProcessor, I_Pers */ public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) { - if (AD_LdapProcessor_ID < 1) - throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + if (AD_LdapProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); } /** Get Ldap Processor. @@ -196,8 +197,6 @@ public class X_AD_LdapProcessor extends PO implements I_AD_LdapProcessor, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -244,9 +243,10 @@ public class X_AD_LdapProcessor extends PO implements I_AD_LdapProcessor, I_Pers */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java index 6c9e008ce0..7c7263c0a0 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java @@ -95,9 +95,10 @@ public class X_AD_LdapProcessorLog extends PO implements I_AD_LdapProcessorLog, */ public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) { - if (AD_LdapProcessor_ID < 1) - throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + if (AD_LdapProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); } /** Get Ldap Processor. @@ -117,9 +118,10 @@ public class X_AD_LdapProcessorLog extends PO implements I_AD_LdapProcessorLog, */ public void setAD_LdapProcessorLog_ID (int AD_LdapProcessorLog_ID) { - if (AD_LdapProcessorLog_ID < 1) - throw new IllegalArgumentException ("AD_LdapProcessorLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_LdapProcessorLog_ID, Integer.valueOf(AD_LdapProcessorLog_ID)); + if (AD_LdapProcessorLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessorLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessorLog_ID, Integer.valueOf(AD_LdapProcessorLog_ID)); } /** Get Ldap Processor Log. diff --git a/base/src/org/compiere/model/X_AD_Menu.java b/base/src/org/compiere/model/X_AD_Menu.java index 720cc8ee4b..9aacb6adcb 100644 --- a/base/src/org/compiere/model/X_AD_Menu.java +++ b/base/src/org/compiere/model/X_AD_Menu.java @@ -158,9 +158,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent */ public void setAD_Menu_ID (int AD_Menu_ID) { - if (AD_Menu_ID < 1) - throw new IllegalArgumentException ("AD_Menu_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); + if (AD_Menu_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); } /** Get Menu. @@ -484,8 +485,6 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Message.java b/base/src/org/compiere/model/X_AD_Message.java index 72321aa493..070a490ade 100644 --- a/base/src/org/compiere/model/X_AD_Message.java +++ b/base/src/org/compiere/model/X_AD_Message.java @@ -82,9 +82,10 @@ public class X_AD_Message extends PO implements I_AD_Message, I_Persistent */ public void setAD_Message_ID (int AD_Message_ID) { - if (AD_Message_ID < 1) - throw new IllegalArgumentException ("AD_Message_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + if (AD_Message_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); } /** Get Message. @@ -124,8 +125,6 @@ public class X_AD_Message extends PO implements I_AD_Message, I_Persistent */ public void setMsgText (String MsgText) { - if (MsgText == null) - throw new IllegalArgumentException ("MsgText is mandatory."); set_Value (COLUMNNAME_MsgText, MsgText); } @@ -168,7 +167,7 @@ public class X_AD_Message extends PO implements I_AD_Message, I_Persistent */ public void setMsgType (String MsgType) { - if (MsgType == null) throw new IllegalArgumentException ("MsgType is mandatory"); + set_Value (COLUMNNAME_MsgType, MsgType); } @@ -186,8 +185,6 @@ public class X_AD_Message extends PO implements I_AD_Message, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_MigrationScript.java b/base/src/org/compiere/model/X_AD_MigrationScript.java index ae4ebb6ab7..d16a5c971e 100644 --- a/base/src/org/compiere/model/X_AD_MigrationScript.java +++ b/base/src/org/compiere/model/X_AD_MigrationScript.java @@ -80,9 +80,10 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ @param AD_MigrationScript_ID Migration Script */ public void setAD_MigrationScript_ID (int AD_MigrationScript_ID) { - if (AD_MigrationScript_ID < 1) - throw new IllegalArgumentException ("AD_MigrationScript_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_MigrationScript_ID, Integer.valueOf(AD_MigrationScript_ID)); + if (AD_MigrationScript_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_MigrationScript_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_MigrationScript_ID, Integer.valueOf(AD_MigrationScript_ID)); } /** Get Migration Script. @@ -132,8 +133,6 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ */ public void setFileName (String FileName) { - if (FileName == null) - throw new IllegalArgumentException ("FileName is mandatory."); set_Value (COLUMNNAME_FileName, FileName); } @@ -172,8 +171,6 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -199,8 +196,6 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ */ public void setProjectName (String ProjectName) { - if (ProjectName == null) - throw new IllegalArgumentException ("ProjectName is mandatory."); set_Value (COLUMNNAME_ProjectName, ProjectName); } @@ -235,8 +230,6 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ */ public void setReleaseNo (String ReleaseNo) { - if (ReleaseNo == null) - throw new IllegalArgumentException ("ReleaseNo is mandatory."); set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); } @@ -293,7 +286,7 @@ public class X_AD_MigrationScript extends PO implements I_AD_MigrationScript, I_ */ public void setStatus (String Status) { - if (Status == null) throw new IllegalArgumentException ("Status is mandatory"); + set_ValueNoCheck (COLUMNNAME_Status, Status); } diff --git a/base/src/org/compiere/model/X_AD_ModelValidator.java b/base/src/org/compiere/model/X_AD_ModelValidator.java index 9210943166..d14ca1b1ed 100644 --- a/base/src/org/compiere/model/X_AD_ModelValidator.java +++ b/base/src/org/compiere/model/X_AD_ModelValidator.java @@ -77,9 +77,10 @@ public class X_AD_ModelValidator extends PO implements I_AD_ModelValidator, I_Pe @param AD_ModelValidator_ID Model Validator */ public void setAD_ModelValidator_ID (int AD_ModelValidator_ID) { - if (AD_ModelValidator_ID < 1) - throw new IllegalArgumentException ("AD_ModelValidator_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ModelValidator_ID, Integer.valueOf(AD_ModelValidator_ID)); + if (AD_ModelValidator_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ModelValidator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ModelValidator_ID, Integer.valueOf(AD_ModelValidator_ID)); } /** Get Model Validator. @@ -150,8 +151,6 @@ public class X_AD_ModelValidator extends PO implements I_AD_ModelValidator, I_Pe @param ModelValidationClass Model Validation Class */ public void setModelValidationClass (String ModelValidationClass) { - if (ModelValidationClass == null) - throw new IllegalArgumentException ("ModelValidationClass is mandatory."); set_Value (COLUMNNAME_ModelValidationClass, ModelValidationClass); } @@ -168,8 +167,6 @@ public class X_AD_ModelValidator extends PO implements I_AD_ModelValidator, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Modification.java b/base/src/org/compiere/model/X_AD_Modification.java index 61ac9b01fc..9059a44d80 100644 --- a/base/src/org/compiere/model/X_AD_Modification.java +++ b/base/src/org/compiere/model/X_AD_Modification.java @@ -80,9 +80,10 @@ public class X_AD_Modification extends PO implements I_AD_Modification, I_Persis */ public void setAD_Modification_ID (int AD_Modification_ID) { - if (AD_Modification_ID < 1) - throw new IllegalArgumentException ("AD_Modification_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Modification_ID, Integer.valueOf(AD_Modification_ID)); + if (AD_Modification_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Modification_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Modification_ID, Integer.valueOf(AD_Modification_ID)); } /** Get Modification. @@ -156,8 +157,6 @@ public class X_AD_Modification extends PO implements I_AD_Modification, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Note.java b/base/src/org/compiere/model/X_AD_Note.java index 95fe6a851d..e7057a8882 100644 --- a/base/src/org/compiere/model/X_AD_Note.java +++ b/base/src/org/compiere/model/X_AD_Note.java @@ -79,9 +79,10 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent */ public void setAD_Message_ID (int AD_Message_ID) { - if (AD_Message_ID < 1) - throw new IllegalArgumentException ("AD_Message_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + if (AD_Message_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); } /** Get Message. @@ -109,9 +110,10 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent */ public void setAD_Note_ID (int AD_Note_ID) { - if (AD_Note_ID < 1) - throw new IllegalArgumentException ("AD_Note_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Note_ID, Integer.valueOf(AD_Note_ID)); + if (AD_Note_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Note_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Note_ID, Integer.valueOf(AD_Note_ID)); } /** Get Notice. @@ -310,7 +312,7 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_AD_Org.java b/base/src/org/compiere/model/X_AD_Org.java index 5364c5b8d8..ca213fc096 100644 --- a/base/src/org/compiere/model/X_AD_Org.java +++ b/base/src/org/compiere/model/X_AD_Org.java @@ -136,8 +136,6 @@ public class X_AD_Org extends PO implements I_AD_Org, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -163,8 +161,6 @@ public class X_AD_Org extends PO implements I_AD_Org, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_OrgInfo.java b/base/src/org/compiere/model/X_AD_OrgInfo.java index cdd197aecc..610bd3e666 100644 --- a/base/src/org/compiere/model/X_AD_OrgInfo.java +++ b/base/src/org/compiere/model/X_AD_OrgInfo.java @@ -204,8 +204,6 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent */ public void setDUNS (String DUNS) { - if (DUNS == null) - throw new IllegalArgumentException ("DUNS is mandatory."); set_Value (COLUMNNAME_DUNS, DUNS); } @@ -285,8 +283,6 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent */ public void setReceiptFooterMsg (String ReceiptFooterMsg) { - if (ReceiptFooterMsg == null) - throw new IllegalArgumentException ("ReceiptFooterMsg is mandatory."); set_Value (COLUMNNAME_ReceiptFooterMsg, ReceiptFooterMsg); } @@ -327,8 +323,6 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent */ public void setTaxID (String TaxID) { - if (TaxID == null) - throw new IllegalArgumentException ("TaxID is mandatory."); set_Value (COLUMNNAME_TaxID, TaxID); } diff --git a/base/src/org/compiere/model/X_AD_OrgType.java b/base/src/org/compiere/model/X_AD_OrgType.java index 5c9e9b9149..4bd83aa8b1 100644 --- a/base/src/org/compiere/model/X_AD_OrgType.java +++ b/base/src/org/compiere/model/X_AD_OrgType.java @@ -79,9 +79,10 @@ public class X_AD_OrgType extends PO implements I_AD_OrgType, I_Persistent */ public void setAD_OrgType_ID (int AD_OrgType_ID) { - if (AD_OrgType_ID < 1) - throw new IllegalArgumentException ("AD_OrgType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_OrgType_ID, Integer.valueOf(AD_OrgType_ID)); + if (AD_OrgType_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_OrgType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgType_ID, Integer.valueOf(AD_OrgType_ID)); } /** Get Organization Type. @@ -157,8 +158,6 @@ public class X_AD_OrgType extends PO implements I_AD_OrgType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PInstance.java b/base/src/org/compiere/model/X_AD_PInstance.java index 25cbb9fcdf..6251bfc74a 100644 --- a/base/src/org/compiere/model/X_AD_PInstance.java +++ b/base/src/org/compiere/model/X_AD_PInstance.java @@ -81,9 +81,10 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -127,9 +128,10 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -223,9 +225,10 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_PInstance_Log.java b/base/src/org/compiere/model/X_AD_PInstance_Log.java index 6d0ed1d51e..6a895dcd7c 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Log.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Log.java @@ -97,9 +97,10 @@ public class X_AD_PInstance_Log extends PO implements I_AD_PInstance_Log, I_Pers */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -117,9 +118,10 @@ public class X_AD_PInstance_Log extends PO implements I_AD_PInstance_Log, I_Pers @param Log_ID Log */ public void setLog_ID (int Log_ID) { - if (Log_ID < 1) - throw new IllegalArgumentException ("Log_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Log_ID, Integer.valueOf(Log_ID)); + if (Log_ID < 1) + set_ValueNoCheck (COLUMNNAME_Log_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Log_ID, Integer.valueOf(Log_ID)); } /** Get Log. diff --git a/base/src/org/compiere/model/X_AD_PInstance_Para.java b/base/src/org/compiere/model/X_AD_PInstance_Para.java index 08dbfabc42..3c0dd76be1 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Para.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Para.java @@ -98,9 +98,10 @@ public class X_AD_PInstance_Para extends PO implements I_AD_PInstance_Para, I_Pe */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. diff --git a/base/src/org/compiere/model/X_AD_Package_Exp.java b/base/src/org/compiere/model/X_AD_Package_Exp.java index 88435094cb..7c3e8d49b7 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp.java @@ -84,9 +84,10 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste @param AD_Package_Exp_ID AD_Package_Exp_ID */ public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) { - if (AD_Package_Exp_ID < 1) - throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); - set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); + if (AD_Package_Exp_ID < 1) + set_Value (COLUMNNAME_AD_Package_Exp_ID, null); + else + set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); } /** Get AD_Package_Exp_ID. @@ -136,8 +137,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -155,8 +154,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setEMail (String EMail) { - if (EMail == null) - throw new IllegalArgumentException ("EMail is mandatory."); set_Value (COLUMNNAME_EMail, EMail); } @@ -172,8 +169,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste @param File_Directory File_Directory */ public void setFile_Directory (String File_Directory) { - if (File_Directory == null) - throw new IllegalArgumentException ("File_Directory is mandatory."); set_Value (COLUMNNAME_File_Directory, File_Directory); } @@ -188,8 +183,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste @param Instructions Instructions */ public void setInstructions (String Instructions) { - if (Instructions == null) - throw new IllegalArgumentException ("Instructions is mandatory."); set_Value (COLUMNNAME_Instructions, Instructions); } @@ -206,8 +199,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -223,8 +214,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste @param PK_Version Package Version */ public void setPK_Version (String PK_Version) { - if (PK_Version == null) - throw new IllegalArgumentException ("PK_Version is mandatory."); set_Value (COLUMNNAME_PK_Version, PK_Version); } @@ -310,7 +299,7 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setReleaseNo (String ReleaseNo) { - if (ReleaseNo == null) throw new IllegalArgumentException ("ReleaseNo is mandatory"); + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); } @@ -328,8 +317,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setUserName (String UserName) { - if (UserName == null) - throw new IllegalArgumentException ("UserName is mandatory."); set_Value (COLUMNNAME_UserName, UserName); } @@ -347,8 +334,6 @@ public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persiste */ public void setVersion (String Version) { - if (Version == null) - throw new IllegalArgumentException ("Version is mandatory."); set_Value (COLUMNNAME_Version, Version); } diff --git a/base/src/org/compiere/model/X_AD_Package_Exp_Common.java b/base/src/org/compiere/model/X_AD_Package_Exp_Common.java index 43bdfa3060..ca37e4ae59 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp_Common.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp_Common.java @@ -190,9 +190,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm @param AD_Package_Exp_Common_ID AD_Package_Exp_Common_ID */ public void setAD_Package_Exp_Common_ID (int AD_Package_Exp_Common_ID) { - if (AD_Package_Exp_Common_ID < 1) - throw new IllegalArgumentException ("AD_Package_Exp_Common_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Exp_Common_ID, Integer.valueOf(AD_Package_Exp_Common_ID)); + if (AD_Package_Exp_Common_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Exp_Common_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Exp_Common_ID, Integer.valueOf(AD_Package_Exp_Common_ID)); } /** Get AD_Package_Exp_Common_ID. @@ -313,7 +314,7 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); diff --git a/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java b/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java index 4baaf4eaff..0c13594ffa 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java @@ -261,9 +261,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta @param AD_Package_Exp_Detail_ID AD_Package_Exp_Detail_ID */ public void setAD_Package_Exp_Detail_ID (int AD_Package_Exp_Detail_ID) { - if (AD_Package_Exp_Detail_ID < 1) - throw new IllegalArgumentException ("AD_Package_Exp_Detail_ID is mandatory."); - set_Value (COLUMNNAME_AD_Package_Exp_Detail_ID, Integer.valueOf(AD_Package_Exp_Detail_ID)); + if (AD_Package_Exp_Detail_ID < 1) + set_Value (COLUMNNAME_AD_Package_Exp_Detail_ID, null); + else + set_Value (COLUMNNAME_AD_Package_Exp_Detail_ID, Integer.valueOf(AD_Package_Exp_Detail_ID)); } /** Get AD_Package_Exp_Detail_ID. @@ -288,9 +289,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta @param AD_Package_Exp_ID AD_Package_Exp_ID */ public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) { - if (AD_Package_Exp_ID < 1) - throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); - set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); + if (AD_Package_Exp_ID < 1) + set_Value (COLUMNNAME_AD_Package_Exp_ID, null); + else + set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); } /** Get AD_Package_Exp_ID. @@ -481,7 +483,7 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -716,8 +718,6 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -984,7 +984,7 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta */ public void setType (String Type) { - if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); + set_Value (COLUMNNAME_Type, Type); } diff --git a/base/src/org/compiere/model/X_AD_Package_Imp.java b/base/src/org/compiere/model/X_AD_Package_Imp.java index 7af8f741de..f659ce51a6 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp.java @@ -77,9 +77,10 @@ public class X_AD_Package_Imp extends PO implements I_AD_Package_Imp, I_Persiste @param AD_Package_Imp_ID AD_Package_Imp_ID */ public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) { - if (AD_Package_Imp_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + if (AD_Package_Imp_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); } /** Get AD_Package_Imp_ID. @@ -148,8 +149,6 @@ public class X_AD_Package_Imp extends PO implements I_AD_Package_Imp, I_Persiste */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -184,8 +183,6 @@ public class X_AD_Package_Imp extends PO implements I_AD_Package_Imp, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Backup.java b/base/src/org/compiere/model/X_AD_Package_Imp_Backup.java index 4102b610fb..72f8f2076f 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Backup.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Backup.java @@ -99,9 +99,10 @@ public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Back @param AD_Package_Imp_Backup_ID AD_Package_Imp_Backup_ID */ public void setAD_Package_Imp_Backup_ID (int AD_Package_Imp_Backup_ID) { - if (AD_Package_Imp_Backup_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_Backup_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Backup_ID, Integer.valueOf(AD_Package_Imp_Backup_ID)); + if (AD_Package_Imp_Backup_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Backup_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Backup_ID, Integer.valueOf(AD_Package_Imp_Backup_ID)); } /** Get AD_Package_Imp_Backup_ID. @@ -140,9 +141,10 @@ public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Back @param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) { - if (AD_Package_Imp_Detail_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); + if (AD_Package_Imp_Detail_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); } /** Get AD_Package_Imp_Detail_ID. @@ -159,9 +161,10 @@ public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Back @param AD_Package_Imp_ID AD_Package_Imp_ID */ public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) { - if (AD_Package_Imp_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + if (AD_Package_Imp_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); } /** Get AD_Package_Imp_ID. diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java b/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java index 64988936f6..3cd6fceda9 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java @@ -112,9 +112,10 @@ public class X_AD_Package_Imp_Detail extends PO implements I_AD_Package_Imp_Deta @param AD_Original_ID AD_Original_ID */ public void setAD_Original_ID (int AD_Original_ID) { - if (AD_Original_ID < 1) - throw new IllegalArgumentException ("AD_Original_ID is mandatory."); - set_Value (COLUMNNAME_AD_Original_ID, Integer.valueOf(AD_Original_ID)); + if (AD_Original_ID < 1) + set_Value (COLUMNNAME_AD_Original_ID, null); + else + set_Value (COLUMNNAME_AD_Original_ID, Integer.valueOf(AD_Original_ID)); } /** Get AD_Original_ID. @@ -131,9 +132,10 @@ public class X_AD_Package_Imp_Detail extends PO implements I_AD_Package_Imp_Deta @param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) { - if (AD_Package_Imp_Detail_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); + if (AD_Package_Imp_Detail_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); } /** Get AD_Package_Imp_Detail_ID. @@ -150,9 +152,10 @@ public class X_AD_Package_Imp_Detail extends PO implements I_AD_Package_Imp_Deta @param AD_Package_Imp_ID AD_Package_Imp_ID */ public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) { - if (AD_Package_Imp_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + if (AD_Package_Imp_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); } /** Get AD_Package_Imp_ID. diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java b/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java index a67d16b3f8..f1760a8221 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java @@ -74,9 +74,10 @@ public class X_AD_Package_Imp_Inst extends PO implements I_AD_Package_Imp_Inst, @param AD_PACKAGE_IMP_INST_ID AD_PACKAGE_IMP_INST_ID */ public void setAD_PACKAGE_IMP_INST_ID (int AD_PACKAGE_IMP_INST_ID) { - if (AD_PACKAGE_IMP_INST_ID < 1) - throw new IllegalArgumentException ("AD_PACKAGE_IMP_INST_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PACKAGE_IMP_INST_ID, Integer.valueOf(AD_PACKAGE_IMP_INST_ID)); + if (AD_PACKAGE_IMP_INST_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PACKAGE_IMP_INST_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PACKAGE_IMP_INST_ID, Integer.valueOf(AD_PACKAGE_IMP_INST_ID)); } /** Get AD_PACKAGE_IMP_INST_ID. diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java b/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java index 54ba519a56..307a0df815 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java @@ -113,9 +113,10 @@ public class X_AD_Package_Imp_Proc extends PO implements I_AD_Package_Imp_Proc, @param AD_Package_Imp_Proc_ID AD_Package_Imp_Proc_ID */ public void setAD_Package_Imp_Proc_ID (int AD_Package_Imp_Proc_ID) { - if (AD_Package_Imp_Proc_ID < 1) - throw new IllegalArgumentException ("AD_Package_Imp_Proc_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Proc_ID, Integer.valueOf(AD_Package_Imp_Proc_ID)); + if (AD_Package_Imp_Proc_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Proc_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Proc_ID, Integer.valueOf(AD_Package_Imp_Proc_ID)); } /** Get AD_Package_Imp_Proc_ID. @@ -134,8 +135,6 @@ public class X_AD_Package_Imp_Proc extends PO implements I_AD_Package_Imp_Proc, */ public void setAD_Package_Source (String AD_Package_Source) { - if (AD_Package_Source == null) - throw new IllegalArgumentException ("AD_Package_Source is mandatory."); set_Value (COLUMNNAME_AD_Package_Source, AD_Package_Source); } @@ -159,7 +158,7 @@ public class X_AD_Package_Imp_Proc extends PO implements I_AD_Package_Imp_Proc, */ public void setAD_Package_Source_Type (String AD_Package_Source_Type) { - if (AD_Package_Source_Type == null) throw new IllegalArgumentException ("AD_Package_Source_Type is mandatory"); + set_Value (COLUMNNAME_AD_Package_Source_Type, AD_Package_Source_Type); } diff --git a/base/src/org/compiere/model/X_AD_Preference.java b/base/src/org/compiere/model/X_AD_Preference.java index 0963bb9141..701c848210 100644 --- a/base/src/org/compiere/model/X_AD_Preference.java +++ b/base/src/org/compiere/model/X_AD_Preference.java @@ -80,9 +80,10 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent */ public void setAD_Preference_ID (int AD_Preference_ID) { - if (AD_Preference_ID < 1) - throw new IllegalArgumentException ("AD_Preference_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Preference_ID, Integer.valueOf(AD_Preference_ID)); + if (AD_Preference_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Preference_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Preference_ID, Integer.valueOf(AD_Preference_ID)); } /** Get Preference. @@ -178,8 +179,6 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent @param Attribute Attribute */ public void setAttribute (String Attribute) { - if (Attribute == null) - throw new IllegalArgumentException ("Attribute is mandatory."); set_Value (COLUMNNAME_Attribute, Attribute); } @@ -204,8 +203,6 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_PrintColor.java b/base/src/org/compiere/model/X_AD_PrintColor.java index 9644eabe6a..6ac680dc86 100644 --- a/base/src/org/compiere/model/X_AD_PrintColor.java +++ b/base/src/org/compiere/model/X_AD_PrintColor.java @@ -79,9 +79,10 @@ public class X_AD_PrintColor extends PO implements I_AD_PrintColor, I_Persistent */ public void setAD_PrintColor_ID (int AD_PrintColor_ID) { - if (AD_PrintColor_ID < 1) - throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + if (AD_PrintColor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintColor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); } /** Get Print Color. @@ -101,8 +102,6 @@ public class X_AD_PrintColor extends PO implements I_AD_PrintColor, I_Persistent */ public void setCode (String Code) { - if (Code == null) - throw new IllegalArgumentException ("Code is mandatory."); set_Value (COLUMNNAME_Code, Code); } @@ -144,8 +143,6 @@ public class X_AD_PrintColor extends PO implements I_AD_PrintColor, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintFont.java b/base/src/org/compiere/model/X_AD_PrintFont.java index af5d584000..9805069af6 100644 --- a/base/src/org/compiere/model/X_AD_PrintFont.java +++ b/base/src/org/compiere/model/X_AD_PrintFont.java @@ -79,9 +79,10 @@ public class X_AD_PrintFont extends PO implements I_AD_PrintFont, I_Persistent */ public void setAD_PrintFont_ID (int AD_PrintFont_ID) { - if (AD_PrintFont_ID < 1) - throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); + if (AD_PrintFont_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintFont_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); } /** Get Print Font. @@ -101,8 +102,6 @@ public class X_AD_PrintFont extends PO implements I_AD_PrintFont, I_Persistent */ public void setCode (String Code) { - if (Code == null) - throw new IllegalArgumentException ("Code is mandatory."); set_Value (COLUMNNAME_Code, Code); } @@ -144,8 +143,6 @@ public class X_AD_PrintFont extends PO implements I_AD_PrintFont, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintForm.java b/base/src/org/compiere/model/X_AD_PrintForm.java index 6dfbff9f22..aafc0333b3 100644 --- a/base/src/org/compiere/model/X_AD_PrintForm.java +++ b/base/src/org/compiere/model/X_AD_PrintForm.java @@ -77,9 +77,10 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent */ public void setAD_PrintForm_ID (int AD_PrintForm_ID) { - if (AD_PrintForm_ID < 1) - throw new IllegalArgumentException ("AD_PrintForm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, Integer.valueOf(AD_PrintForm_ID)); + if (AD_PrintForm_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, Integer.valueOf(AD_PrintForm_ID)); } /** Get Print Form. @@ -254,8 +255,6 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintFormat.java b/base/src/org/compiere/model/X_AD_PrintFormat.java index 2e52dc87d1..d62cca6e1e 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintFormat.java @@ -108,9 +108,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setAD_PrintColor_ID (int AD_PrintColor_ID) { - if (AD_PrintColor_ID < 1) - throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + if (AD_PrintColor_ID < 1) + set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); } /** Get Print Color. @@ -146,9 +147,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setAD_PrintFont_ID (int AD_PrintFont_ID) { - if (AD_PrintFont_ID < 1) - throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); + if (AD_PrintFont_ID < 1) + set_Value (COLUMNNAME_AD_PrintFont_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); } /** Get Print Font. @@ -168,9 +170,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) { - if (AD_PrintFormat_ID < 1) - throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + if (AD_PrintFormat_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); } /** Get Print Format. @@ -206,9 +209,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) { - if (AD_PrintPaper_ID < 1) - throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); + if (AD_PrintPaper_ID < 1) + set_Value (COLUMNNAME_AD_PrintPaper_ID, null); + else + set_Value (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); } /** Get Print Paper. @@ -322,9 +326,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -565,8 +570,6 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintFormatItem.java b/base/src/org/compiere/model/X_AD_PrintFormatItem.java index bdbb130129..900f0eca04 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormatItem.java +++ b/base/src/org/compiere/model/X_AD_PrintFormatItem.java @@ -145,9 +145,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -245,9 +246,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID) { - if (AD_PrintFormatChild_ID < 1) - throw new IllegalArgumentException ("AD_PrintFormatChild_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintFormatChild_ID, Integer.valueOf(AD_PrintFormatChild_ID)); + if (AD_PrintFormatChild_ID < 1) + set_Value (COLUMNNAME_AD_PrintFormatChild_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormatChild_ID, Integer.valueOf(AD_PrintFormatChild_ID)); } /** Get Included Print Format. @@ -283,9 +285,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) { - if (AD_PrintFormat_ID < 1) - throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + if (AD_PrintFormat_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); } /** Get Print Format. @@ -305,9 +308,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID) { - if (AD_PrintFormatItem_ID < 1) - throw new IllegalArgumentException ("AD_PrintFormatItem_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintFormatItem_ID, Integer.valueOf(AD_PrintFormatItem_ID)); + if (AD_PrintFormatItem_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintFormatItem_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintFormatItem_ID, Integer.valueOf(AD_PrintFormatItem_ID)); } /** Get Print Format Item. @@ -486,7 +490,7 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setFieldAlignmentType (String FieldAlignmentType) { - if (FieldAlignmentType == null) throw new IllegalArgumentException ("FieldAlignmentType is mandatory"); + set_Value (COLUMNNAME_FieldAlignmentType, FieldAlignmentType); } @@ -1124,7 +1128,7 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setLineAlignmentType (String LineAlignmentType) { - if (LineAlignmentType == null) throw new IllegalArgumentException ("LineAlignmentType is mandatory"); + set_Value (COLUMNNAME_LineAlignmentType, LineAlignmentType); } @@ -1202,8 +1206,6 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -1237,7 +1239,7 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setPrintAreaType (String PrintAreaType) { - if (PrintAreaType == null) throw new IllegalArgumentException ("PrintAreaType is mandatory"); + set_Value (COLUMNNAME_PrintAreaType, PrintAreaType); } @@ -1269,7 +1271,7 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ */ public void setPrintFormatType (String PrintFormatType) { - if (PrintFormatType == null) throw new IllegalArgumentException ("PrintFormatType is mandatory"); + set_Value (COLUMNNAME_PrintFormatType, PrintFormatType); } diff --git a/base/src/org/compiere/model/X_AD_PrintGraph.java b/base/src/org/compiere/model/X_AD_PrintGraph.java index 3e87a89dc1..afe8bb08e1 100644 --- a/base/src/org/compiere/model/X_AD_PrintGraph.java +++ b/base/src/org/compiere/model/X_AD_PrintGraph.java @@ -100,9 +100,10 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) { - if (AD_PrintFormat_ID < 1) - throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + if (AD_PrintFormat_ID < 1) + set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); } /** Get Print Format. @@ -122,9 +123,10 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) { - if (AD_PrintGraph_ID < 1) - throw new IllegalArgumentException ("AD_PrintGraph_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintGraph_ID, Integer.valueOf(AD_PrintGraph_ID)); + if (AD_PrintGraph_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintGraph_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintGraph_ID, Integer.valueOf(AD_PrintGraph_ID)); } /** Get Graph. @@ -236,9 +238,10 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setData_PrintFormatItem_ID (int Data_PrintFormatItem_ID) { - if (Data_PrintFormatItem_ID < 1) - throw new IllegalArgumentException ("Data_PrintFormatItem_ID is mandatory."); - set_Value (COLUMNNAME_Data_PrintFormatItem_ID, Integer.valueOf(Data_PrintFormatItem_ID)); + if (Data_PrintFormatItem_ID < 1) + set_Value (COLUMNNAME_Data_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Data_PrintFormatItem_ID, Integer.valueOf(Data_PrintFormatItem_ID)); } /** Get Data Column. @@ -275,9 +278,10 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setDescription_PrintFormatItem_ID (int Description_PrintFormatItem_ID) { - if (Description_PrintFormatItem_ID < 1) - throw new IllegalArgumentException ("Description_PrintFormatItem_ID is mandatory."); - set_Value (COLUMNNAME_Description_PrintFormatItem_ID, Integer.valueOf(Description_PrintFormatItem_ID)); + if (Description_PrintFormatItem_ID < 1) + set_Value (COLUMNNAME_Description_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Description_PrintFormatItem_ID, Integer.valueOf(Description_PrintFormatItem_ID)); } /** Get Description Column. @@ -305,7 +309,7 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setGraphType (String GraphType) { - if (GraphType == null) throw new IllegalArgumentException ("GraphType is mandatory"); + set_Value (COLUMNNAME_GraphType, GraphType); } @@ -323,8 +327,6 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintLabel.java b/base/src/org/compiere/model/X_AD_PrintLabel.java index 50b7f43cbb..8be7d01cab 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabel.java +++ b/base/src/org/compiere/model/X_AD_PrintLabel.java @@ -84,9 +84,10 @@ public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent */ public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) { - if (AD_LabelPrinter_ID < 1) - throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); - set_Value (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + if (AD_LabelPrinter_ID < 1) + set_Value (COLUMNNAME_AD_LabelPrinter_ID, null); + else + set_Value (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); } /** Get Label printer. @@ -106,9 +107,10 @@ public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent */ public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) { - if (AD_PrintLabel_ID < 1) - throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); + if (AD_PrintLabel_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); } /** Get Print Label. @@ -144,9 +146,10 @@ public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -247,8 +250,6 @@ public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintLabelLine.java b/base/src/org/compiere/model/X_AD_PrintLabelLine.java index 1079497b76..991fb57cc0 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabelLine.java +++ b/base/src/org/compiere/model/X_AD_PrintLabelLine.java @@ -141,9 +141,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe */ public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) { - if (AD_LabelPrinterFunction_ID < 1) - throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); - set_Value (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); + if (AD_LabelPrinterFunction_ID < 1) + set_Value (COLUMNNAME_AD_LabelPrinterFunction_ID, null); + else + set_Value (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); } /** Get Label printer Function. @@ -179,9 +180,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe */ public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) { - if (AD_PrintLabel_ID < 1) - throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); + if (AD_PrintLabel_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); } /** Get Print Label. @@ -201,9 +203,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe */ public void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID) { - if (AD_PrintLabelLine_ID < 1) - throw new IllegalArgumentException ("AD_PrintLabelLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintLabelLine_ID, Integer.valueOf(AD_PrintLabelLine_ID)); + if (AD_PrintLabelLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintLabelLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintLabelLine_ID, Integer.valueOf(AD_PrintLabelLine_ID)); } /** Get Print Label Line. @@ -229,7 +232,7 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe */ public void setLabelFormatType (String LabelFormatType) { - if (LabelFormatType == null) throw new IllegalArgumentException ("LabelFormatType is mandatory"); + set_Value (COLUMNNAME_LabelFormatType, LabelFormatType); } @@ -247,8 +250,6 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintPaper.java b/base/src/org/compiere/model/X_AD_PrintPaper.java index a3b1c10446..03d41e4fce 100644 --- a/base/src/org/compiere/model/X_AD_PrintPaper.java +++ b/base/src/org/compiere/model/X_AD_PrintPaper.java @@ -92,9 +92,10 @@ public class X_AD_PrintPaper extends PO implements I_AD_PrintPaper, I_Persistent */ public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) { - if (AD_PrintPaper_ID < 1) - throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); + if (AD_PrintPaper_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintPaper_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); } /** Get Print Paper. @@ -114,8 +115,6 @@ public class X_AD_PrintPaper extends PO implements I_AD_PrintPaper, I_Persistent */ public void setCode (String Code) { - if (Code == null) - throw new IllegalArgumentException ("Code is mandatory."); set_Value (COLUMNNAME_Code, Code); } @@ -302,8 +301,6 @@ public class X_AD_PrintPaper extends PO implements I_AD_PrintPaper, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_PrintTableFormat.java b/base/src/org/compiere/model/X_AD_PrintTableFormat.java index fff3915a8f..7881daf00a 100644 --- a/base/src/org/compiere/model/X_AD_PrintTableFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintTableFormat.java @@ -129,9 +129,10 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, */ public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) { - if (AD_PrintTableFormat_ID < 1) - throw new IllegalArgumentException ("AD_PrintTableFormat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID)); + if (AD_PrintTableFormat_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PrintTableFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID)); } /** Get Print Table Format. @@ -759,8 +760,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Private_Access.java b/base/src/org/compiere/model/X_AD_Private_Access.java index b6c3804c92..a46c1b4c19 100644 --- a/base/src/org/compiere/model/X_AD_Private_Access.java +++ b/base/src/org/compiere/model/X_AD_Private_Access.java @@ -95,9 +95,10 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -133,9 +134,10 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -155,9 +157,10 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_Process.java b/base/src/org/compiere/model/X_AD_Process.java index 733408960e..06cf8a0a39 100644 --- a/base/src/org/compiere/model/X_AD_Process.java +++ b/base/src/org/compiere/model/X_AD_Process.java @@ -100,7 +100,7 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent */ public void setAccessLevel (String AccessLevel) { - if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + set_Value (COLUMNNAME_AccessLevel, AccessLevel); } @@ -196,9 +196,10 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -477,8 +478,6 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -578,8 +577,6 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_Process_Access.java b/base/src/org/compiere/model/X_AD_Process_Access.java index 436cf4aa24..6d6e2a41fb 100644 --- a/base/src/org/compiere/model/X_AD_Process_Access.java +++ b/base/src/org/compiere/model/X_AD_Process_Access.java @@ -95,9 +95,10 @@ public class X_AD_Process_Access extends PO implements I_AD_Process_Access, I_Pe */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -133,9 +134,10 @@ public class X_AD_Process_Access extends PO implements I_AD_Process_Access, I_Pe */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. diff --git a/base/src/org/compiere/model/X_AD_Process_Para.java b/base/src/org/compiere/model/X_AD_Process_Para.java index 81e79e1c4f..a27117372b 100644 --- a/base/src/org/compiere/model/X_AD_Process_Para.java +++ b/base/src/org/compiere/model/X_AD_Process_Para.java @@ -146,9 +146,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -166,9 +167,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis @param AD_Process_Para_ID Process Parameter */ public void setAD_Process_Para_ID (int AD_Process_Para_ID) { - if (AD_Process_Para_ID < 1) - throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + if (AD_Process_Para_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); } /** Get Process Parameter. @@ -187,9 +189,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -271,8 +274,6 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis */ public void setColumnName (String ColumnName) { - if (ColumnName == null) - throw new IllegalArgumentException ("ColumnName is mandatory."); set_Value (COLUMNNAME_ColumnName, ColumnName); } @@ -487,8 +488,6 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Record_Access.java b/base/src/org/compiere/model/X_AD_Record_Access.java index 3e31199940..e471ec05c2 100644 --- a/base/src/org/compiere/model/X_AD_Record_Access.java +++ b/base/src/org/compiere/model/X_AD_Record_Access.java @@ -101,9 +101,10 @@ public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Pers */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -139,9 +140,10 @@ public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Pers */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -241,9 +243,10 @@ public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Pers */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_Ref_List.java b/base/src/org/compiere/model/X_AD_Ref_List.java index a64b2e927f..90fe7a71ca 100644 --- a/base/src/org/compiere/model/X_AD_Ref_List.java +++ b/base/src/org/compiere/model/X_AD_Ref_List.java @@ -100,9 +100,10 @@ public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -122,9 +123,10 @@ public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent */ public void setAD_Ref_List_ID (int AD_Ref_List_ID) { - if (AD_Ref_List_ID < 1) - throw new IllegalArgumentException ("AD_Ref_List_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, Integer.valueOf(AD_Ref_List_ID)); + if (AD_Ref_List_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, Integer.valueOf(AD_Ref_List_ID)); } /** Get Reference List. @@ -181,8 +183,6 @@ public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -242,8 +242,6 @@ public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_Ref_Table.java b/base/src/org/compiere/model/X_AD_Ref_Table.java index 4eb1c93d90..7b7c398640 100644 --- a/base/src/org/compiere/model/X_AD_Ref_Table.java +++ b/base/src/org/compiere/model/X_AD_Ref_Table.java @@ -140,9 +140,10 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -186,9 +187,10 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. diff --git a/base/src/org/compiere/model/X_AD_Reference.java b/base/src/org/compiere/model/X_AD_Reference.java index 1b1a6e5dd1..5cff46778e 100644 --- a/base/src/org/compiere/model/X_AD_Reference.java +++ b/base/src/org/compiere/model/X_AD_Reference.java @@ -80,9 +80,10 @@ public class X_AD_Reference extends PO implements I_AD_Reference, I_Persistent */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -180,8 +181,6 @@ public class X_AD_Reference extends PO implements I_AD_Reference, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -215,7 +214,7 @@ public class X_AD_Reference extends PO implements I_AD_Reference, I_Persistent */ public void setValidationType (String ValidationType) { - if (ValidationType == null) throw new IllegalArgumentException ("ValidationType is mandatory"); + set_Value (COLUMNNAME_ValidationType, ValidationType); } diff --git a/base/src/org/compiere/model/X_AD_Registration.java b/base/src/org/compiere/model/X_AD_Registration.java index f4bf63ecd4..27138f0318 100644 --- a/base/src/org/compiere/model/X_AD_Registration.java +++ b/base/src/org/compiere/model/X_AD_Registration.java @@ -88,9 +88,10 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis */ public void setAD_Registration_ID (int AD_Registration_ID) { - if (AD_Registration_ID < 1) - throw new IllegalArgumentException ("AD_Registration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Registration_ID, Integer.valueOf(AD_Registration_ID)); + if (AD_Registration_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Registration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Registration_ID, Integer.valueOf(AD_Registration_ID)); } /** Get System Registration. @@ -126,9 +127,10 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis */ public void setAD_System_ID (int AD_System_ID) { - if (AD_System_ID < 1) - throw new IllegalArgumentException ("AD_System_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); + if (AD_System_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_System_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); } /** Get System. @@ -398,7 +400,7 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_AD_Replication.java b/base/src/org/compiere/model/X_AD_Replication.java index bbc4abbdb7..b060d8771a 100644 --- a/base/src/org/compiere/model/X_AD_Replication.java +++ b/base/src/org/compiere/model/X_AD_Replication.java @@ -90,9 +90,10 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setAD_Replication_ID (int AD_Replication_ID) { - if (AD_Replication_ID < 1) - throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); + if (AD_Replication_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); } /** Get Replication. @@ -128,9 +129,10 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) { - if (AD_ReplicationStrategy_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); - set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + if (AD_ReplicationStrategy_ID < 1) + set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, null); + else + set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); } /** Get Replication Strategy. @@ -201,8 +203,6 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setHostAddress (String HostAddress) { - if (HostAddress == null) - throw new IllegalArgumentException ("HostAddress is mandatory."); set_Value (COLUMNNAME_HostAddress, HostAddress); } @@ -304,8 +304,6 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -369,9 +367,10 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setRemote_Client_ID (int Remote_Client_ID) { - if (Remote_Client_ID < 1) - throw new IllegalArgumentException ("Remote_Client_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Remote_Client_ID, Integer.valueOf(Remote_Client_ID)); + if (Remote_Client_ID < 1) + set_ValueNoCheck (COLUMNNAME_Remote_Client_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Remote_Client_ID, Integer.valueOf(Remote_Client_ID)); } /** Get Remote Client. @@ -391,9 +390,10 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste */ public void setRemote_Org_ID (int Remote_Org_ID) { - if (Remote_Org_ID < 1) - throw new IllegalArgumentException ("Remote_Org_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, Integer.valueOf(Remote_Org_ID)); + if (Remote_Org_ID < 1) + set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, Integer.valueOf(Remote_Org_ID)); } /** Get Remote Organization. diff --git a/base/src/org/compiere/model/X_AD_ReplicationDocument.java b/base/src/org/compiere/model/X_AD_ReplicationDocument.java index 1a8fbd6981..10578e7712 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationDocument.java +++ b/base/src/org/compiere/model/X_AD_ReplicationDocument.java @@ -79,9 +79,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu @param AD_ReplicationDocument_ID Replication Document */ public void setAD_ReplicationDocument_ID (int AD_ReplicationDocument_ID) { - if (AD_ReplicationDocument_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationDocument_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReplicationDocument_ID, Integer.valueOf(AD_ReplicationDocument_ID)); + if (AD_ReplicationDocument_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReplicationDocument_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReplicationDocument_ID, Integer.valueOf(AD_ReplicationDocument_ID)); } /** Get Replication Document. @@ -100,9 +101,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu */ public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) { - if (AD_ReplicationStrategy_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + if (AD_ReplicationStrategy_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); } /** Get Replication Strategy. @@ -138,9 +140,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -176,9 +179,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -223,7 +227,7 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu */ public void setReplicationType (String ReplicationType) { - if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); + set_Value (COLUMNNAME_ReplicationType, ReplicationType); } diff --git a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java index 3368f23fd7..5395da932a 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java +++ b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java @@ -81,9 +81,10 @@ public class X_AD_ReplicationStrategy extends PO implements I_AD_ReplicationStra */ public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) { - if (AD_ReplicationStrategy_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + if (AD_ReplicationStrategy_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); } /** Get Replication Strategy. @@ -193,8 +194,6 @@ public class X_AD_ReplicationStrategy extends PO implements I_AD_ReplicationStra */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_ReplicationTable.java b/base/src/org/compiere/model/X_AD_ReplicationTable.java index 2a173e4f86..77d5ba7f82 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationTable.java +++ b/base/src/org/compiere/model/X_AD_ReplicationTable.java @@ -99,9 +99,10 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, */ public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) { - if (AD_ReplicationStrategy_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + if (AD_ReplicationStrategy_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); } /** Get Replication Strategy. @@ -129,9 +130,10 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, */ public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID) { - if (AD_ReplicationTable_ID < 1) - throw new IllegalArgumentException ("AD_ReplicationTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReplicationTable_ID, Integer.valueOf(AD_ReplicationTable_ID)); + if (AD_ReplicationTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReplicationTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReplicationTable_ID, Integer.valueOf(AD_ReplicationTable_ID)); } /** Get Replication Table. @@ -167,9 +169,10 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -234,7 +237,7 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, */ public void setReplicationType (String ReplicationType) { - if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); + set_Value (COLUMNNAME_ReplicationType, ReplicationType); } diff --git a/base/src/org/compiere/model/X_AD_Replication_Log.java b/base/src/org/compiere/model/X_AD_Replication_Log.java index e2369edf70..e293294884 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Log.java +++ b/base/src/org/compiere/model/X_AD_Replication_Log.java @@ -81,9 +81,10 @@ public class X_AD_Replication_Log extends PO implements I_AD_Replication_Log, I_ */ public void setAD_Replication_Log_ID (int AD_Replication_Log_ID) { - if (AD_Replication_Log_ID < 1) - throw new IllegalArgumentException ("AD_Replication_Log_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Replication_Log_ID, Integer.valueOf(AD_Replication_Log_ID)); + if (AD_Replication_Log_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Replication_Log_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Replication_Log_ID, Integer.valueOf(AD_Replication_Log_ID)); } /** Get Replication Log. @@ -119,9 +120,10 @@ public class X_AD_Replication_Log extends PO implements I_AD_Replication_Log, I_ */ public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) { - if (AD_Replication_Run_ID < 1) - throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); + if (AD_Replication_Run_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); } /** Get Replication Run. diff --git a/base/src/org/compiere/model/X_AD_Replication_Run.java b/base/src/org/compiere/model/X_AD_Replication_Run.java index fad4849f59..50fce1de00 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Run.java +++ b/base/src/org/compiere/model/X_AD_Replication_Run.java @@ -98,9 +98,10 @@ public class X_AD_Replication_Run extends PO implements I_AD_Replication_Run, I_ */ public void setAD_Replication_ID (int AD_Replication_ID) { - if (AD_Replication_ID < 1) - throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); + if (AD_Replication_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); } /** Get Replication. @@ -120,9 +121,10 @@ public class X_AD_Replication_Run extends PO implements I_AD_Replication_Run, I_ */ public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) { - if (AD_Replication_Run_ID < 1) - throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); + if (AD_Replication_Run_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); } /** Get Replication Run. @@ -183,8 +185,6 @@ public class X_AD_Replication_Run extends PO implements I_AD_Replication_Run, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_ReportView.java b/base/src/org/compiere/model/X_AD_ReportView.java index 04325eec3f..3f569453bc 100644 --- a/base/src/org/compiere/model/X_AD_ReportView.java +++ b/base/src/org/compiere/model/X_AD_ReportView.java @@ -82,9 +82,10 @@ public class X_AD_ReportView extends PO implements I_AD_ReportView, I_Persistent */ public void setAD_ReportView_ID (int AD_ReportView_ID) { - if (AD_ReportView_ID < 1) - throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + if (AD_ReportView_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); } /** Get Report View. @@ -120,9 +121,10 @@ public class X_AD_ReportView extends PO implements I_AD_ReportView, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -179,8 +181,6 @@ public class X_AD_ReportView extends PO implements I_AD_ReportView, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_ReportView_Col.java b/base/src/org/compiere/model/X_AD_ReportView_Col.java index 9c35b62a11..a2b28895f1 100644 --- a/base/src/org/compiere/model/X_AD_ReportView_Col.java +++ b/base/src/org/compiere/model/X_AD_ReportView_Col.java @@ -118,9 +118,10 @@ public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Pe @param AD_ReportView_Col_ID Report view Column */ public void setAD_ReportView_Col_ID (int AD_ReportView_Col_ID) { - if (AD_ReportView_Col_ID < 1) - throw new IllegalArgumentException ("AD_ReportView_Col_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReportView_Col_ID, Integer.valueOf(AD_ReportView_Col_ID)); + if (AD_ReportView_Col_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReportView_Col_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReportView_Col_ID, Integer.valueOf(AD_ReportView_Col_ID)); } /** Get Report view Column. @@ -155,9 +156,10 @@ public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Pe */ public void setAD_ReportView_ID (int AD_ReportView_ID) { - if (AD_ReportView_ID < 1) - throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + if (AD_ReportView_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); } /** Get Report View. @@ -185,8 +187,6 @@ public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Pe */ public void setFunctionColumn (String FunctionColumn) { - if (FunctionColumn == null) - throw new IllegalArgumentException ("FunctionColumn is mandatory."); set_Value (COLUMNNAME_FunctionColumn, FunctionColumn); } diff --git a/base/src/org/compiere/model/X_AD_Role.java b/base/src/org/compiere/model/X_AD_Role.java index fb53f64d84..b2d96590d6 100644 --- a/base/src/org/compiere/model/X_AD_Role.java +++ b/base/src/org/compiere/model/X_AD_Role.java @@ -137,9 +137,10 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -904,8 +905,6 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -965,7 +964,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent */ public void setPreferenceType (String PreferenceType) { - if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory"); + set_Value (COLUMNNAME_PreferenceType, PreferenceType); } @@ -1033,7 +1032,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent */ public void setUserLevel (String UserLevel) { - if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory"); + set_Value (COLUMNNAME_UserLevel, UserLevel); } diff --git a/base/src/org/compiere/model/X_AD_Role_OrgAccess.java b/base/src/org/compiere/model/X_AD_Role_OrgAccess.java index 2d2143ce60..c3e7e67261 100644 --- a/base/src/org/compiere/model/X_AD_Role_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_Role_OrgAccess.java @@ -94,9 +94,10 @@ public class X_AD_Role_OrgAccess extends PO implements I_AD_Role_OrgAccess, I_Pe */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. diff --git a/base/src/org/compiere/model/X_AD_Rule.java b/base/src/org/compiere/model/X_AD_Rule.java index 0f0df2b3a9..1de2330094 100644 --- a/base/src/org/compiere/model/X_AD_Rule.java +++ b/base/src/org/compiere/model/X_AD_Rule.java @@ -112,9 +112,10 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent @param AD_Rule_ID Rule */ public void setAD_Rule_ID (int AD_Rule_ID) { - if (AD_Rule_ID < 1) - throw new IllegalArgumentException ("AD_Rule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); + if (AD_Rule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); } /** Get Rule. @@ -182,7 +183,7 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent */ public void setEventType (String EventType) { - if (EventType == null) throw new IllegalArgumentException ("EventType is mandatory"); + set_Value (COLUMNNAME_EventType, EventType); } @@ -217,8 +218,6 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -252,7 +251,7 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent @param RuleType Rule Type */ public void setRuleType (String RuleType) { - if (RuleType == null) throw new IllegalArgumentException ("RuleType is mandatory"); + set_Value (COLUMNNAME_RuleType, RuleType); } @@ -286,8 +285,6 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_Scheduler.java b/base/src/org/compiere/model/X_AD_Scheduler.java index 964bde04bf..79342ec2ba 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler.java +++ b/base/src/org/compiere/model/X_AD_Scheduler.java @@ -104,9 +104,10 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -126,9 +127,10 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setAD_Scheduler_ID (int AD_Scheduler_ID) { - if (AD_Scheduler_ID < 1) - throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + if (AD_Scheduler_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); } /** Get Scheduler. @@ -227,7 +229,7 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -285,8 +287,6 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -341,7 +341,7 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setScheduleType (String ScheduleType) { - if (ScheduleType == null) throw new IllegalArgumentException ("ScheduleType is mandatory"); + set_Value (COLUMNNAME_ScheduleType, ScheduleType); } @@ -359,9 +359,10 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_AD_SchedulerLog.java b/base/src/org/compiere/model/X_AD_SchedulerLog.java index 121608fddf..9d110db0f1 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerLog.java +++ b/base/src/org/compiere/model/X_AD_SchedulerLog.java @@ -95,9 +95,10 @@ public class X_AD_SchedulerLog extends PO implements I_AD_SchedulerLog, I_Persis */ public void setAD_Scheduler_ID (int AD_Scheduler_ID) { - if (AD_Scheduler_ID < 1) - throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + if (AD_Scheduler_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); } /** Get Scheduler. @@ -117,9 +118,10 @@ public class X_AD_SchedulerLog extends PO implements I_AD_SchedulerLog, I_Persis */ public void setAD_SchedulerLog_ID (int AD_SchedulerLog_ID) { - if (AD_SchedulerLog_ID < 1) - throw new IllegalArgumentException ("AD_SchedulerLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_SchedulerLog_ID, Integer.valueOf(AD_SchedulerLog_ID)); + if (AD_SchedulerLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_SchedulerLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_SchedulerLog_ID, Integer.valueOf(AD_SchedulerLog_ID)); } /** Get Scheduler Log. diff --git a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java index a87954fe8e..fcbe8b9278 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java +++ b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java @@ -95,7 +95,7 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -134,9 +134,10 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie */ public void setAD_Scheduler_ID (int AD_Scheduler_ID) { - if (AD_Scheduler_ID < 1) - throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + if (AD_Scheduler_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); } /** Get Scheduler. @@ -156,9 +157,10 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie */ public void setAD_SchedulerRecipient_ID (int AD_SchedulerRecipient_ID) { - if (AD_SchedulerRecipient_ID < 1) - throw new IllegalArgumentException ("AD_SchedulerRecipient_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_SchedulerRecipient_ID, Integer.valueOf(AD_SchedulerRecipient_ID)); + if (AD_SchedulerRecipient_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_SchedulerRecipient_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_SchedulerRecipient_ID, Integer.valueOf(AD_SchedulerRecipient_ID)); } /** Get Scheduler Recipient. diff --git a/base/src/org/compiere/model/X_AD_Scheduler_Para.java b/base/src/org/compiere/model/X_AD_Scheduler_Para.java index fc66f96a20..131abee16e 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler_Para.java +++ b/base/src/org/compiere/model/X_AD_Scheduler_Para.java @@ -92,9 +92,10 @@ public class X_AD_Scheduler_Para extends PO implements I_AD_Scheduler_Para, I_Pe @param AD_Process_Para_ID Process Parameter */ public void setAD_Process_Para_ID (int AD_Process_Para_ID) { - if (AD_Process_Para_ID < 1) - throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + if (AD_Process_Para_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); } /** Get Process Parameter. @@ -129,9 +130,10 @@ public class X_AD_Scheduler_Para extends PO implements I_AD_Scheduler_Para, I_Pe */ public void setAD_Scheduler_ID (int AD_Scheduler_ID) { - if (AD_Scheduler_ID < 1) - throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + if (AD_Scheduler_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); } /** Get Scheduler. diff --git a/base/src/org/compiere/model/X_AD_SearchDefinition.java b/base/src/org/compiere/model/X_AD_SearchDefinition.java index b92f28d0a0..43916fd8b6 100644 --- a/base/src/org/compiere/model/X_AD_SearchDefinition.java +++ b/base/src/org/compiere/model/X_AD_SearchDefinition.java @@ -102,9 +102,10 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, @param AD_SearchDefinition_ID AD_SearchDefinition_ID */ public void setAD_SearchDefinition_ID (int AD_SearchDefinition_ID) { - if (AD_SearchDefinition_ID < 1) - throw new IllegalArgumentException ("AD_SearchDefinition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_SearchDefinition_ID, Integer.valueOf(AD_SearchDefinition_ID)); + if (AD_SearchDefinition_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_SearchDefinition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_SearchDefinition_ID, Integer.valueOf(AD_SearchDefinition_ID)); } /** Get AD_SearchDefinition_ID. @@ -123,9 +124,10 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -145,9 +147,10 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @@ -167,8 +170,6 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, */ public void setDataType (String DataType) { - if (DataType == null) - throw new IllegalArgumentException ("DataType is mandatory."); set_Value (COLUMNNAME_DataType, DataType); } @@ -284,8 +285,6 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, */ public void setSearchType (String SearchType) { - if (SearchType == null) - throw new IllegalArgumentException ("SearchType is mandatory."); set_Value (COLUMNNAME_SearchType, SearchType); } diff --git a/base/src/org/compiere/model/X_AD_Sequence.java b/base/src/org/compiere/model/X_AD_Sequence.java index 1ca39e45fa..a3ef56af39 100644 --- a/base/src/org/compiere/model/X_AD_Sequence.java +++ b/base/src/org/compiere/model/X_AD_Sequence.java @@ -86,9 +86,10 @@ public class X_AD_Sequence extends PO implements I_AD_Sequence, I_Persistent */ public void setAD_Sequence_ID (int AD_Sequence_ID) { - if (AD_Sequence_ID < 1) - throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + if (AD_Sequence_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); } /** Get Sequence. @@ -291,8 +292,6 @@ public class X_AD_Sequence extends PO implements I_AD_Sequence, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Sequence_Audit.java b/base/src/org/compiere/model/X_AD_Sequence_Audit.java index d6e056a9fd..1247b9f0bc 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_Audit.java +++ b/base/src/org/compiere/model/X_AD_Sequence_Audit.java @@ -96,9 +96,10 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe */ public void setAD_Sequence_ID (int AD_Sequence_ID) { - if (AD_Sequence_ID < 1) - throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + if (AD_Sequence_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); } /** Get Sequence. @@ -134,9 +135,10 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -156,8 +158,6 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -175,9 +175,10 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_AD_Sequence_No.java b/base/src/org/compiere/model/X_AD_Sequence_No.java index 12474f9d0f..f04658460b 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_No.java +++ b/base/src/org/compiere/model/X_AD_Sequence_No.java @@ -95,9 +95,10 @@ public class X_AD_Sequence_No extends PO implements I_AD_Sequence_No, I_Persiste */ public void setAD_Sequence_ID (int AD_Sequence_ID) { - if (AD_Sequence_ID < 1) - throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + if (AD_Sequence_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); } /** Get Sequence. @@ -117,8 +118,6 @@ public class X_AD_Sequence_No extends PO implements I_AD_Sequence_No, I_Persiste */ public void setCalendarYear (String CalendarYear) { - if (CalendarYear == null) - throw new IllegalArgumentException ("CalendarYear is mandatory."); set_ValueNoCheck (COLUMNNAME_CalendarYear, CalendarYear); } diff --git a/base/src/org/compiere/model/X_AD_Session.java b/base/src/org/compiere/model/X_AD_Session.java index b9514ced4e..e7d9da5862 100644 --- a/base/src/org/compiere/model/X_AD_Session.java +++ b/base/src/org/compiere/model/X_AD_Session.java @@ -96,7 +96,7 @@ public class X_AD_Session extends PO implements I_AD_Session, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -119,9 +119,10 @@ public class X_AD_Session extends PO implements I_AD_Session, I_Persistent */ public void setAD_Session_ID (int AD_Session_ID) { - if (AD_Session_ID < 1) - throw new IllegalArgumentException ("AD_Session_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + if (AD_Session_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); } /** Get Session. diff --git a/base/src/org/compiere/model/X_AD_SysConfig.java b/base/src/org/compiere/model/X_AD_SysConfig.java index 65cc4abd7a..0a6f05f8b2 100644 --- a/base/src/org/compiere/model/X_AD_SysConfig.java +++ b/base/src/org/compiere/model/X_AD_SysConfig.java @@ -78,9 +78,10 @@ public class X_AD_SysConfig extends PO implements I_AD_SysConfig, I_Persistent @param AD_SysConfig_ID System Configurator */ public void setAD_SysConfig_ID (int AD_SysConfig_ID) { - if (AD_SysConfig_ID < 1) - throw new IllegalArgumentException ("AD_SysConfig_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_SysConfig_ID, Integer.valueOf(AD_SysConfig_ID)); + if (AD_SysConfig_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_SysConfig_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_SysConfig_ID, Integer.valueOf(AD_SysConfig_ID)); } /** Get System Configurator. @@ -162,8 +163,6 @@ public class X_AD_SysConfig extends PO implements I_AD_SysConfig, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -189,8 +188,6 @@ public class X_AD_SysConfig extends PO implements I_AD_SysConfig, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_System.java b/base/src/org/compiere/model/X_AD_System.java index 720cfa8547..92b8a5ccc9 100644 --- a/base/src/org/compiere/model/X_AD_System.java +++ b/base/src/org/compiere/model/X_AD_System.java @@ -96,9 +96,10 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setAD_System_ID (int AD_System_ID) { - if (AD_System_ID < 1) - throw new IllegalArgumentException ("AD_System_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); + if (AD_System_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_System_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); } /** Get System. @@ -243,8 +244,6 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setInfo (String Info) { - if (Info == null) - throw new IllegalArgumentException ("Info is mandatory."); set_ValueNoCheck (COLUMNNAME_Info, Info); } @@ -424,8 +423,6 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -485,8 +482,6 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setPassword (String Password) { - if (Password == null) - throw new IllegalArgumentException ("Password is mandatory."); set_Value (COLUMNNAME_Password, Password); } @@ -542,7 +537,7 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); @@ -590,7 +585,7 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setReplicationType (String ReplicationType) { - if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); + set_Value (COLUMNNAME_ReplicationType, ReplicationType); } @@ -704,7 +699,7 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setSystemStatus (String SystemStatus) { - if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); + set_Value (COLUMNNAME_SystemStatus, SystemStatus); } @@ -722,8 +717,6 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setUserName (String UserName) { - if (UserName == null) - throw new IllegalArgumentException ("UserName is mandatory."); set_Value (COLUMNNAME_UserName, UserName); } @@ -741,8 +734,6 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent */ public void setVersion (String Version) { - if (Version == null) - throw new IllegalArgumentException ("Version is mandatory."); set_ValueNoCheck (COLUMNNAME_Version, Version); } diff --git a/base/src/org/compiere/model/X_AD_Tab.java b/base/src/org/compiere/model/X_AD_Tab.java index f745746c86..fa2ba4de66 100644 --- a/base/src/org/compiere/model/X_AD_Tab.java +++ b/base/src/org/compiere/model/X_AD_Tab.java @@ -259,9 +259,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent */ public void setAD_Tab_ID (int AD_Tab_ID) { - if (AD_Tab_ID < 1) - throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + if (AD_Tab_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); } /** Get Tab. @@ -297,9 +298,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -335,9 +337,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @@ -677,8 +680,6 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_Table.java b/base/src/org/compiere/model/X_AD_Table.java index 086e6bca86..d9e8c54e34 100644 --- a/base/src/org/compiere/model/X_AD_Table.java +++ b/base/src/org/compiere/model/X_AD_Table.java @@ -107,7 +107,7 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent */ public void setAccessLevel (String AccessLevel) { - if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + set_Value (COLUMNNAME_AccessLevel, AccessLevel); } @@ -125,9 +125,10 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -447,8 +448,6 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -497,7 +496,7 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent */ public void setReplicationType (String ReplicationType) { - if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); + set_Value (COLUMNNAME_ReplicationType, ReplicationType); } @@ -515,8 +514,6 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent */ public void setTableName (String TableName) { - if (TableName == null) - throw new IllegalArgumentException ("TableName is mandatory."); set_Value (COLUMNNAME_TableName, TableName); } diff --git a/base/src/org/compiere/model/X_AD_Table_Access.java b/base/src/org/compiere/model/X_AD_Table_Access.java index ea2f538590..d37b0121d8 100644 --- a/base/src/org/compiere/model/X_AD_Table_Access.java +++ b/base/src/org/compiere/model/X_AD_Table_Access.java @@ -94,7 +94,7 @@ public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persis */ public void setAccessTypeRule (String AccessTypeRule) { - if (AccessTypeRule == null) throw new IllegalArgumentException ("AccessTypeRule is mandatory"); + set_ValueNoCheck (COLUMNNAME_AccessTypeRule, AccessTypeRule); } @@ -128,9 +128,10 @@ public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persis */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -166,9 +167,10 @@ public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persis */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. diff --git a/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java b/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java index c84ba7c712..34763d50f5 100644 --- a/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java +++ b/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java @@ -97,9 +97,10 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV @param AD_Rule_ID Rule */ public void setAD_Rule_ID (int AD_Rule_ID) { - if (AD_Rule_ID < 1) - throw new IllegalArgumentException ("AD_Rule_ID is mandatory."); - set_Value (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); + if (AD_Rule_ID < 1) + set_Value (COLUMNNAME_AD_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); } /** Get Rule. @@ -134,9 +135,10 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -154,9 +156,10 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV @param AD_Table_ScriptValidator_ID Table Script Validator */ public void setAD_Table_ScriptValidator_ID (int AD_Table_ScriptValidator_ID) { - if (AD_Table_ScriptValidator_ID < 1) - throw new IllegalArgumentException ("AD_Table_ScriptValidator_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ScriptValidator_ID, Integer.valueOf(AD_Table_ScriptValidator_ID)); + if (AD_Table_ScriptValidator_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ScriptValidator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ScriptValidator_ID, Integer.valueOf(AD_Table_ScriptValidator_ID)); } /** Get Table Script Validator. @@ -225,7 +228,7 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV @param EventModelValidator Event Model Validator */ public void setEventModelValidator (String EventModelValidator) { - if (EventModelValidator == null) throw new IllegalArgumentException ("EventModelValidator is mandatory"); + set_Value (COLUMNNAME_EventModelValidator, EventModelValidator); } diff --git a/base/src/org/compiere/model/X_AD_Task.java b/base/src/org/compiere/model/X_AD_Task.java index f54e5ad523..d86908eac6 100644 --- a/base/src/org/compiere/model/X_AD_Task.java +++ b/base/src/org/compiere/model/X_AD_Task.java @@ -97,7 +97,7 @@ public class X_AD_Task extends PO implements I_AD_Task, I_Persistent */ public void setAccessLevel (String AccessLevel) { - if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + set_Value (COLUMNNAME_AccessLevel, AccessLevel); } @@ -115,9 +115,10 @@ public class X_AD_Task extends PO implements I_AD_Task, I_Persistent */ public void setAD_Task_ID (int AD_Task_ID) { - if (AD_Task_ID < 1) - throw new IllegalArgumentException ("AD_Task_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + if (AD_Task_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); } /** Get OS Task. @@ -215,8 +216,6 @@ public class X_AD_Task extends PO implements I_AD_Task, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -242,8 +241,6 @@ public class X_AD_Task extends PO implements I_AD_Task, I_Persistent */ public void setOS_Command (String OS_Command) { - if (OS_Command == null) - throw new IllegalArgumentException ("OS_Command is mandatory."); set_Value (COLUMNNAME_OS_Command, OS_Command); } diff --git a/base/src/org/compiere/model/X_AD_TaskInstance.java b/base/src/org/compiere/model/X_AD_TaskInstance.java index 2a43f1bb80..b20b4c812a 100644 --- a/base/src/org/compiere/model/X_AD_TaskInstance.java +++ b/base/src/org/compiere/model/X_AD_TaskInstance.java @@ -77,9 +77,10 @@ public class X_AD_TaskInstance extends PO implements I_AD_TaskInstance, I_Persis */ public void setAD_Task_ID (int AD_Task_ID) { - if (AD_Task_ID < 1) - throw new IllegalArgumentException ("AD_Task_ID is mandatory."); - set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + if (AD_Task_ID < 1) + set_Value (COLUMNNAME_AD_Task_ID, null); + else + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); } /** Get OS Task. @@ -97,9 +98,10 @@ public class X_AD_TaskInstance extends PO implements I_AD_TaskInstance, I_Persis @param AD_TaskInstance_ID Task Instance */ public void setAD_TaskInstance_ID (int AD_TaskInstance_ID) { - if (AD_TaskInstance_ID < 1) - throw new IllegalArgumentException ("AD_TaskInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_TaskInstance_ID, Integer.valueOf(AD_TaskInstance_ID)); + if (AD_TaskInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_TaskInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_TaskInstance_ID, Integer.valueOf(AD_TaskInstance_ID)); } /** Get Task Instance. diff --git a/base/src/org/compiere/model/X_AD_Task_Access.java b/base/src/org/compiere/model/X_AD_Task_Access.java index e93fd56688..5b82de3cbd 100644 --- a/base/src/org/compiere/model/X_AD_Task_Access.java +++ b/base/src/org/compiere/model/X_AD_Task_Access.java @@ -95,9 +95,10 @@ public class X_AD_Task_Access extends PO implements I_AD_Task_Access, I_Persiste */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -133,9 +134,10 @@ public class X_AD_Task_Access extends PO implements I_AD_Task_Access, I_Persiste */ public void setAD_Task_ID (int AD_Task_ID) { - if (AD_Task_ID < 1) - throw new IllegalArgumentException ("AD_Task_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + if (AD_Task_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); } /** Get OS Task. diff --git a/base/src/org/compiere/model/X_AD_Tree.java b/base/src/org/compiere/model/X_AD_Tree.java index d8194a3cf3..d5961eb560 100644 --- a/base/src/org/compiere/model/X_AD_Tree.java +++ b/base/src/org/compiere/model/X_AD_Tree.java @@ -81,9 +81,10 @@ public class X_AD_Tree extends PO implements I_AD_Tree, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -168,8 +169,6 @@ public class X_AD_Tree extends PO implements I_AD_Tree, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -256,7 +255,7 @@ public class X_AD_Tree extends PO implements I_AD_Tree, I_Persistent */ public void setTreeType (String TreeType) { - if (TreeType == null) throw new IllegalArgumentException ("TreeType is mandatory"); + set_ValueNoCheck (COLUMNNAME_TreeType, TreeType); } diff --git a/base/src/org/compiere/model/X_AD_TreeBar.java b/base/src/org/compiere/model/X_AD_TreeBar.java index 1338f66619..6c33710f4a 100644 --- a/base/src/org/compiere/model/X_AD_TreeBar.java +++ b/base/src/org/compiere/model/X_AD_TreeBar.java @@ -96,9 +96,10 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -134,9 +135,10 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -154,9 +156,10 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_Value (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_Value (COLUMNNAME_Node_ID, null); + else + set_Value (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. diff --git a/base/src/org/compiere/model/X_AD_TreeNode.java b/base/src/org/compiere/model/X_AD_TreeNode.java index 00e869798d..5132f1615d 100644 --- a/base/src/org/compiere/model/X_AD_TreeNode.java +++ b/base/src/org/compiere/model/X_AD_TreeNode.java @@ -95,9 +95,10 @@ public class X_AD_TreeNode extends PO implements I_AD_TreeNode, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -115,9 +116,10 @@ public class X_AD_TreeNode extends PO implements I_AD_TreeNode, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeBP.java b/base/src/org/compiere/model/X_AD_TreeNodeBP.java index d787444432..3f7d838af7 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeBP.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeBP.java @@ -94,9 +94,10 @@ public class X_AD_TreeNodeBP extends PO implements I_AD_TreeNodeBP, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -114,9 +115,10 @@ public class X_AD_TreeNodeBP extends PO implements I_AD_TreeNodeBP, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java index f8d2dee44d..726ae12ade 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeCMC extends PO implements I_AD_TreeNodeCMC, I_Persiste */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeCMC extends PO implements I_AD_TreeNodeCMC, I_Persiste @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeCMC extends PO implements I_AD_TreeNodeCMC, I_Persiste */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java index 777f7e59bc..ce0e50d7e9 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeCMM extends PO implements I_AD_TreeNodeCMM, I_Persiste */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeCMM extends PO implements I_AD_TreeNodeCMM, I_Persiste @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeCMM extends PO implements I_AD_TreeNodeCMM, I_Persiste */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java index 0ab4439f4a..d9be09a2a3 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeCMS extends PO implements I_AD_TreeNodeCMS, I_Persiste */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeCMS extends PO implements I_AD_TreeNodeCMS, I_Persiste @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeCMS extends PO implements I_AD_TreeNodeCMS, I_Persiste */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java index 6150fdd16d..6585ce9604 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeCMT extends PO implements I_AD_TreeNodeCMT, I_Persiste */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeCMT extends PO implements I_AD_TreeNodeCMT, I_Persiste @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeCMT extends PO implements I_AD_TreeNodeCMT, I_Persiste */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeMM.java b/base/src/org/compiere/model/X_AD_TreeNodeMM.java index 6409ac1fca..7d769eb15c 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeMM.java @@ -94,9 +94,10 @@ public class X_AD_TreeNodeMM extends PO implements I_AD_TreeNodeMM, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -114,9 +115,10 @@ public class X_AD_TreeNodeMM extends PO implements I_AD_TreeNodeMM, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. diff --git a/base/src/org/compiere/model/X_AD_TreeNodePR.java b/base/src/org/compiere/model/X_AD_TreeNodePR.java index c6e4c07442..21528c5433 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodePR.java +++ b/base/src/org/compiere/model/X_AD_TreeNodePR.java @@ -94,9 +94,10 @@ public class X_AD_TreeNodePR extends PO implements I_AD_TreeNodePR, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -114,9 +115,10 @@ public class X_AD_TreeNodePR extends PO implements I_AD_TreeNodePR, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU1.java b/base/src/org/compiere/model/X_AD_TreeNodeU1.java index f47ee4c8b7..467dbb6e66 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU1.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU1.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeU1 extends PO implements I_AD_TreeNodeU1, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeU1 extends PO implements I_AD_TreeNodeU1, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeU1 extends PO implements I_AD_TreeNodeU1, I_Persistent */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU2.java b/base/src/org/compiere/model/X_AD_TreeNodeU2.java index c5e40cceb5..bddc33eeed 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU2.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU2.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeU2 extends PO implements I_AD_TreeNodeU2, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeU2 extends PO implements I_AD_TreeNodeU2, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeU2 extends PO implements I_AD_TreeNodeU2, I_Persistent */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU3.java b/base/src/org/compiere/model/X_AD_TreeNodeU3.java index c9884189cc..752d3a84d3 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU3.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU3.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeU3 extends PO implements I_AD_TreeNodeU3, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeU3 extends PO implements I_AD_TreeNodeU3, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeU3 extends PO implements I_AD_TreeNodeU3, I_Persistent */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU4.java b/base/src/org/compiere/model/X_AD_TreeNodeU4.java index 73150415ce..a026cda370 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU4.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU4.java @@ -96,9 +96,10 @@ public class X_AD_TreeNodeU4 extends PO implements I_AD_TreeNodeU4, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -116,9 +117,10 @@ public class X_AD_TreeNodeU4 extends PO implements I_AD_TreeNodeU4, I_Persistent @param Node_ID Node_ID */ public void setNode_ID (int Node_ID) { - if (Node_ID < 0) - throw new IllegalArgumentException ("Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + if (Node_ID < 0) + set_ValueNoCheck (COLUMNNAME_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); } /** Get Node_ID. @@ -137,9 +139,10 @@ public class X_AD_TreeNodeU4 extends PO implements I_AD_TreeNodeU4, I_Persistent */ public void setParent_ID (int Parent_ID) { - if (Parent_ID < 1) - throw new IllegalArgumentException ("Parent_ID is mandatory."); - set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + if (Parent_ID < 1) + set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. diff --git a/base/src/org/compiere/model/X_AD_User.java b/base/src/org/compiere/model/X_AD_User.java index 1a9e1f6976..c9a24436c3 100644 --- a/base/src/org/compiere/model/X_AD_User.java +++ b/base/src/org/compiere/model/X_AD_User.java @@ -107,9 +107,10 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -565,8 +566,6 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -602,7 +601,7 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent */ public void setNotificationType (String NotificationType) { - if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory"); + set_Value (COLUMNNAME_NotificationType, NotificationType); } diff --git a/base/src/org/compiere/model/X_AD_UserBPAccess.java b/base/src/org/compiere/model/X_AD_UserBPAccess.java index 63c8ed165e..636d4ee67e 100644 --- a/base/src/org/compiere/model/X_AD_UserBPAccess.java +++ b/base/src/org/compiere/model/X_AD_UserBPAccess.java @@ -79,9 +79,10 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis */ public void setAD_UserBPAccess_ID (int AD_UserBPAccess_ID) { - if (AD_UserBPAccess_ID < 1) - throw new IllegalArgumentException ("AD_UserBPAccess_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserBPAccess_ID, Integer.valueOf(AD_UserBPAccess_ID)); + if (AD_UserBPAccess_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserBPAccess_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserBPAccess_ID, Integer.valueOf(AD_UserBPAccess_ID)); } /** Get User BP Access. @@ -117,9 +118,10 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -147,7 +149,7 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis */ public void setBPAccessType (String BPAccessType) { - if (BPAccessType == null) throw new IllegalArgumentException ("BPAccessType is mandatory"); + set_Value (COLUMNNAME_BPAccessType, BPAccessType); } diff --git a/base/src/org/compiere/model/X_AD_UserDef_Field.java b/base/src/org/compiere/model/X_AD_UserDef_Field.java index d099c4d204..5902f5c00e 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Field.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Field.java @@ -102,9 +102,10 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers */ public void setAD_Field_ID (int AD_Field_ID) { - if (AD_Field_ID < 1) - throw new IllegalArgumentException ("AD_Field_ID is mandatory."); - set_Value (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); + if (AD_Field_ID < 1) + set_Value (COLUMNNAME_AD_Field_ID, null); + else + set_Value (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); } /** Get Field. @@ -122,9 +123,10 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers @param AD_UserDef_Field_ID User defined Field */ public void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID) { - if (AD_UserDef_Field_ID < 1) - throw new IllegalArgumentException ("AD_UserDef_Field_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserDef_Field_ID, Integer.valueOf(AD_UserDef_Field_ID)); + if (AD_UserDef_Field_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Field_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Field_ID, Integer.valueOf(AD_UserDef_Field_ID)); } /** Get User defined Field. @@ -157,9 +159,10 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers @param AD_UserDef_Tab_ID User defined Tab */ public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) { - if (AD_UserDef_Tab_ID < 1) - throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); + if (AD_UserDef_Tab_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); } /** Get User defined Tab. @@ -178,8 +181,6 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers */ public void setDefaultValue (String DefaultValue) { - if (DefaultValue == null) - throw new IllegalArgumentException ("DefaultValue is mandatory."); set_Value (COLUMNNAME_DefaultValue, DefaultValue); } @@ -364,8 +365,6 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_UserDef_Tab.java b/base/src/org/compiere/model/X_AD_UserDef_Tab.java index 878aded2da..d7bce1e1e5 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Tab.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Tab.java @@ -100,9 +100,10 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste */ public void setAD_Tab_ID (int AD_Tab_ID) { - if (AD_Tab_ID < 1) - throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + if (AD_Tab_ID < 1) + set_Value (COLUMNNAME_AD_Tab_ID, null); + else + set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); } /** Get Tab. @@ -120,9 +121,10 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste @param AD_UserDef_Tab_ID User defined Tab */ public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) { - if (AD_UserDef_Tab_ID < 1) - throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); + if (AD_UserDef_Tab_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); } /** Get User defined Tab. @@ -155,9 +157,10 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste @param AD_UserDef_Win_ID User defined Window */ public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) { - if (AD_UserDef_Win_ID < 1) - throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); + if (AD_UserDef_Win_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); } /** Get User defined Window. @@ -282,8 +285,6 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_UserDef_Win.java b/base/src/org/compiere/model/X_AD_UserDef_Win.java index 95ab0b4c85..7dc650ac24 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Win.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Win.java @@ -120,7 +120,7 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -141,9 +141,10 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste @param AD_UserDef_Win_ID User defined Window */ public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) { - if (AD_UserDef_Win_ID < 1) - throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); + if (AD_UserDef_Win_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); } /** Get User defined Window. @@ -217,9 +218,10 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @@ -345,8 +347,6 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_UserMail.java b/base/src/org/compiere/model/X_AD_UserMail.java index 1577955452..6401225fd8 100644 --- a/base/src/org/compiere/model/X_AD_UserMail.java +++ b/base/src/org/compiere/model/X_AD_UserMail.java @@ -95,9 +95,10 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -125,9 +126,10 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent */ public void setAD_UserMail_ID (int AD_UserMail_ID) { - if (AD_UserMail_ID < 1) - throw new IllegalArgumentException ("AD_UserMail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserMail_ID, Integer.valueOf(AD_UserMail_ID)); + if (AD_UserMail_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserMail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserMail_ID, Integer.valueOf(AD_UserMail_ID)); } /** Get User Mail. diff --git a/base/src/org/compiere/model/X_AD_UserQuery.java b/base/src/org/compiere/model/X_AD_UserQuery.java index ccfa9b3928..ab83304b36 100644 --- a/base/src/org/compiere/model/X_AD_UserQuery.java +++ b/base/src/org/compiere/model/X_AD_UserQuery.java @@ -97,9 +97,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent */ public void setAD_Tab_ID (int AD_Tab_ID) { - if (AD_Tab_ID < 1) - throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + if (AD_Tab_ID < 1) + set_Value (COLUMNNAME_AD_Tab_ID, null); + else + set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); } /** Get Tab. @@ -135,9 +136,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -196,9 +198,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent */ public void setAD_UserQuery_ID (int AD_UserQuery_ID) { - if (AD_UserQuery_ID < 1) - throw new IllegalArgumentException ("AD_UserQuery_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_UserQuery_ID, Integer.valueOf(AD_UserQuery_ID)); + if (AD_UserQuery_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_UserQuery_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_UserQuery_ID, Integer.valueOf(AD_UserQuery_ID)); } /** Get User Query. @@ -252,8 +255,6 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_User_OrgAccess.java b/base/src/org/compiere/model/X_AD_User_OrgAccess.java index d4e8b0cd5a..fce5e30a8b 100644 --- a/base/src/org/compiere/model/X_AD_User_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_User_OrgAccess.java @@ -95,9 +95,10 @@ public class X_AD_User_OrgAccess extends PO implements I_AD_User_OrgAccess, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. diff --git a/base/src/org/compiere/model/X_AD_User_Roles.java b/base/src/org/compiere/model/X_AD_User_Roles.java index dacd4330db..7eb626cfc6 100644 --- a/base/src/org/compiere/model/X_AD_User_Roles.java +++ b/base/src/org/compiere/model/X_AD_User_Roles.java @@ -94,9 +94,10 @@ public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -132,9 +133,10 @@ public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. diff --git a/base/src/org/compiere/model/X_AD_User_Substitute.java b/base/src/org/compiere/model/X_AD_User_Substitute.java index 2cc4023627..9bed0898d7 100644 --- a/base/src/org/compiere/model/X_AD_User_Substitute.java +++ b/base/src/org/compiere/model/X_AD_User_Substitute.java @@ -98,9 +98,10 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -120,9 +121,10 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ */ public void setAD_User_Substitute_ID (int AD_User_Substitute_ID) { - if (AD_User_Substitute_ID < 1) - throw new IllegalArgumentException ("AD_User_Substitute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_Substitute_ID, Integer.valueOf(AD_User_Substitute_ID)); + if (AD_User_Substitute_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_Substitute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_Substitute_ID, Integer.valueOf(AD_User_Substitute_ID)); } /** Get User Substitute. @@ -159,8 +161,6 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -186,9 +186,10 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ */ public void setSubstitute_ID (int Substitute_ID) { - if (Substitute_ID < 1) - throw new IllegalArgumentException ("Substitute_ID is mandatory."); - set_Value (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); + if (Substitute_ID < 1) + set_Value (COLUMNNAME_Substitute_ID, null); + else + set_Value (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); } /** Get Substitute. diff --git a/base/src/org/compiere/model/X_AD_Val_Rule.java b/base/src/org/compiere/model/X_AD_Val_Rule.java index 6c6b8eff8f..b63ea3fd27 100644 --- a/base/src/org/compiere/model/X_AD_Val_Rule.java +++ b/base/src/org/compiere/model/X_AD_Val_Rule.java @@ -80,9 +80,10 @@ public class X_AD_Val_Rule extends PO implements I_AD_Val_Rule, I_Persistent */ public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) { - if (AD_Val_Rule_ID < 1) - throw new IllegalArgumentException ("AD_Val_Rule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + if (AD_Val_Rule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); } /** Get Dynamic Validation. @@ -156,8 +157,6 @@ public class X_AD_Val_Rule extends PO implements I_AD_Val_Rule, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -191,7 +190,7 @@ public class X_AD_Val_Rule extends PO implements I_AD_Val_Rule, I_Persistent */ public void setType (String Type) { - if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); + set_Value (COLUMNNAME_Type, Type); } diff --git a/base/src/org/compiere/model/X_AD_WF_Activity.java b/base/src/org/compiere/model/X_AD_WF_Activity.java index d9e88c8cff..275a67ce6b 100644 --- a/base/src/org/compiere/model/X_AD_WF_Activity.java +++ b/base/src/org/compiere/model/X_AD_WF_Activity.java @@ -141,9 +141,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -186,9 +187,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) { - if (AD_WF_Activity_ID < 1) - throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); + if (AD_WF_Activity_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); } /** Get Workflow Activity. @@ -224,9 +226,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setAD_WF_Node_ID (int AD_WF_Node_ID) { - if (AD_WF_Node_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + if (AD_WF_Node_ID < 1) + set_Value (COLUMNNAME_AD_WF_Node_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); } /** Get Node. @@ -270,9 +273,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setAD_WF_Process_ID (int AD_WF_Process_ID) { - if (AD_WF_Process_ID < 1) - throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + if (AD_WF_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); } /** Get Workflow Process. @@ -347,9 +351,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -488,9 +493,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @@ -541,7 +547,7 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste */ public void setWFState (String WFState) { - if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); + set_Value (COLUMNNAME_WFState, WFState); } diff --git a/base/src/org/compiere/model/X_AD_WF_ActivityResult.java b/base/src/org/compiere/model/X_AD_WF_ActivityResult.java index 15bb1fdba7..f83f7935d5 100644 --- a/base/src/org/compiere/model/X_AD_WF_ActivityResult.java +++ b/base/src/org/compiere/model/X_AD_WF_ActivityResult.java @@ -96,9 +96,10 @@ public class X_AD_WF_ActivityResult extends PO implements I_AD_WF_ActivityResult */ public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) { - if (AD_WF_Activity_ID < 1) - throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); + if (AD_WF_Activity_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); } /** Get Workflow Activity. @@ -126,9 +127,10 @@ public class X_AD_WF_ActivityResult extends PO implements I_AD_WF_ActivityResult */ public void setAD_WF_ActivityResult_ID (int AD_WF_ActivityResult_ID) { - if (AD_WF_ActivityResult_ID < 1) - throw new IllegalArgumentException ("AD_WF_ActivityResult_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_ActivityResult_ID, Integer.valueOf(AD_WF_ActivityResult_ID)); + if (AD_WF_ActivityResult_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_ActivityResult_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_ActivityResult_ID, Integer.valueOf(AD_WF_ActivityResult_ID)); } /** Get Workflow Activity Result. @@ -148,8 +150,6 @@ public class X_AD_WF_ActivityResult extends PO implements I_AD_WF_ActivityResult */ public void setAttributeName (String AttributeName) { - if (AttributeName == null) - throw new IllegalArgumentException ("AttributeName is mandatory."); set_Value (COLUMNNAME_AttributeName, AttributeName); } diff --git a/base/src/org/compiere/model/X_AD_WF_Block.java b/base/src/org/compiere/model/X_AD_WF_Block.java index e42baea838..ecb6dd52bc 100644 --- a/base/src/org/compiere/model/X_AD_WF_Block.java +++ b/base/src/org/compiere/model/X_AD_WF_Block.java @@ -80,9 +80,10 @@ public class X_AD_WF_Block extends PO implements I_AD_WF_Block, I_Persistent */ public void setAD_WF_Block_ID (int AD_WF_Block_ID) { - if (AD_WF_Block_ID < 1) - throw new IllegalArgumentException ("AD_WF_Block_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Block_ID, Integer.valueOf(AD_WF_Block_ID)); + if (AD_WF_Block_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Block_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Block_ID, Integer.valueOf(AD_WF_Block_ID)); } /** Get Workflow Block. @@ -118,9 +119,10 @@ public class X_AD_WF_Block extends PO implements I_AD_WF_Block, I_Persistent */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -157,8 +159,6 @@ public class X_AD_WF_Block extends PO implements I_AD_WF_Block, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_WF_EventAudit.java b/base/src/org/compiere/model/X_AD_WF_EventAudit.java index 8387f4cce9..55197c796b 100644 --- a/base/src/org/compiere/model/X_AD_WF_EventAudit.java +++ b/base/src/org/compiere/model/X_AD_WF_EventAudit.java @@ -104,9 +104,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -149,9 +150,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setAD_WF_EventAudit_ID (int AD_WF_EventAudit_ID) { - if (AD_WF_EventAudit_ID < 1) - throw new IllegalArgumentException ("AD_WF_EventAudit_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_EventAudit_ID, Integer.valueOf(AD_WF_EventAudit_ID)); + if (AD_WF_EventAudit_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_EventAudit_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_EventAudit_ID, Integer.valueOf(AD_WF_EventAudit_ID)); } /** Get Workflow Event Audit. @@ -195,9 +197,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setAD_WF_Node_ID (int AD_WF_Node_ID) { - if (AD_WF_Node_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + if (AD_WF_Node_ID < 1) + set_Value (COLUMNNAME_AD_WF_Node_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); } /** Get Node. @@ -233,9 +236,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setAD_WF_Process_ID (int AD_WF_Process_ID) { - if (AD_WF_Process_ID < 1) - throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + if (AD_WF_Process_ID < 1) + set_Value (COLUMNNAME_AD_WF_Process_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); } /** Get Workflow Process. @@ -271,9 +275,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) { - if (AD_WF_Responsible_ID < 1) - throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + if (AD_WF_Responsible_ID < 1) + set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); } /** Get Workflow Responsible. @@ -327,8 +332,6 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setElapsedTimeMS (BigDecimal ElapsedTimeMS) { - if (ElapsedTimeMS == null) - throw new IllegalArgumentException ("ElapsedTimeMS is mandatory."); set_Value (COLUMNNAME_ElapsedTimeMS, ElapsedTimeMS); } @@ -357,7 +360,7 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setEventType (String EventType) { - if (EventType == null) throw new IllegalArgumentException ("EventType is mandatory"); + set_Value (COLUMNNAME_EventType, EventType); } @@ -409,9 +412,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @@ -462,7 +466,7 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers */ public void setWFState (String WFState) { - if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); + set_Value (COLUMNNAME_WFState, WFState); } diff --git a/base/src/org/compiere/model/X_AD_WF_NextCondition.java b/base/src/org/compiere/model/X_AD_WF_NextCondition.java index 72127b46c2..c717bc418f 100644 --- a/base/src/org/compiere/model/X_AD_WF_NextCondition.java +++ b/base/src/org/compiere/model/X_AD_WF_NextCondition.java @@ -104,9 +104,10 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -126,9 +127,10 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setAD_WF_NextCondition_ID (int AD_WF_NextCondition_ID) { - if (AD_WF_NextCondition_ID < 1) - throw new IllegalArgumentException ("AD_WF_NextCondition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_NextCondition_ID, Integer.valueOf(AD_WF_NextCondition_ID)); + if (AD_WF_NextCondition_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_NextCondition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_NextCondition_ID, Integer.valueOf(AD_WF_NextCondition_ID)); } /** Get Transition Condition. @@ -164,9 +166,10 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) { - if (AD_WF_NodeNext_ID < 1) - throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); + if (AD_WF_NodeNext_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); } /** Get Node Transition. @@ -192,7 +195,7 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setAndOr (String AndOr) { - if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory"); + set_Value (COLUMNNAME_AndOr, AndOr); } @@ -250,7 +253,7 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setOperation (String Operation) { - if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory"); + set_Value (COLUMNNAME_Operation, Operation); } @@ -288,8 +291,6 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_WF_Node.java b/base/src/org/compiere/model/X_AD_WF_Node.java index 8cab00fea5..e0130a13d2 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node.java +++ b/base/src/org/compiere/model/X_AD_WF_Node.java @@ -126,7 +126,7 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setAction (String Action) { - if (Action == null) throw new IllegalArgumentException ("Action is mandatory"); + set_Value (COLUMNNAME_Action, Action); } @@ -378,9 +378,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setAD_WF_Node_ID (int AD_WF_Node_ID) { - if (AD_WF_Node_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + if (AD_WF_Node_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); } /** Get Node. @@ -494,9 +495,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -589,8 +591,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setCost (BigDecimal Cost) { - if (Cost == null) - throw new IllegalArgumentException ("Cost is mandatory."); set_Value (COLUMNNAME_Cost, Cost); } @@ -918,7 +918,7 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setJoinElement (String JoinElement) { - if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory"); + set_Value (COLUMNNAME_JoinElement, JoinElement); } @@ -973,8 +973,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -1122,7 +1120,7 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setSplitElement (String SplitElement) { - if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory"); + set_Value (COLUMNNAME_SplitElement, SplitElement); } @@ -1281,8 +1279,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_AD_WF_NodeNext.java b/base/src/org/compiere/model/X_AD_WF_NodeNext.java index 3aea65f89d..d0e7560ea3 100644 --- a/base/src/org/compiere/model/X_AD_WF_NodeNext.java +++ b/base/src/org/compiere/model/X_AD_WF_NodeNext.java @@ -85,9 +85,10 @@ public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persiste */ public void setAD_WF_Next_ID (int AD_WF_Next_ID) { - if (AD_WF_Next_ID < 1) - throw new IllegalArgumentException ("AD_WF_Next_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Next_ID, Integer.valueOf(AD_WF_Next_ID)); + if (AD_WF_Next_ID < 1) + set_Value (COLUMNNAME_AD_WF_Next_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Next_ID, Integer.valueOf(AD_WF_Next_ID)); } /** Get Next Node. @@ -123,9 +124,10 @@ public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persiste */ public void setAD_WF_Node_ID (int AD_WF_Node_ID) { - if (AD_WF_Node_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + if (AD_WF_Node_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); } /** Get Node. @@ -153,9 +155,10 @@ public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persiste */ public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) { - if (AD_WF_NodeNext_ID < 1) - throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); + if (AD_WF_NodeNext_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); } /** Get Node Transition. diff --git a/base/src/org/compiere/model/X_AD_WF_Node_Para.java b/base/src/org/compiere/model/X_AD_WF_Node_Para.java index 201591b058..be41f5dbb8 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node_Para.java +++ b/base/src/org/compiere/model/X_AD_WF_Node_Para.java @@ -133,9 +133,10 @@ public class X_AD_WF_Node_Para extends PO implements I_AD_WF_Node_Para, I_Persis */ public void setAD_WF_Node_ID (int AD_WF_Node_ID) { - if (AD_WF_Node_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + if (AD_WF_Node_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); } /** Get Node. @@ -163,9 +164,10 @@ public class X_AD_WF_Node_Para extends PO implements I_AD_WF_Node_Para, I_Persis */ public void setAD_WF_Node_Para_ID (int AD_WF_Node_Para_ID) { - if (AD_WF_Node_Para_ID < 1) - throw new IllegalArgumentException ("AD_WF_Node_Para_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Node_Para_ID, Integer.valueOf(AD_WF_Node_Para_ID)); + if (AD_WF_Node_Para_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_Para_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_Para_ID, Integer.valueOf(AD_WF_Node_Para_ID)); } /** Get Workflow Node Parameter. diff --git a/base/src/org/compiere/model/X_AD_WF_Process.java b/base/src/org/compiere/model/X_AD_WF_Process.java index c65c536e14..b21a4a240b 100644 --- a/base/src/org/compiere/model/X_AD_WF_Process.java +++ b/base/src/org/compiere/model/X_AD_WF_Process.java @@ -139,9 +139,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -184,9 +185,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setAD_WF_Process_ID (int AD_WF_Process_ID) { - if (AD_WF_Process_ID < 1) - throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + if (AD_WF_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); } /** Get Workflow Process. @@ -222,9 +224,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) { - if (AD_WF_Responsible_ID < 1) - throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); - set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + if (AD_WF_Responsible_ID < 1) + set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); } /** Get Workflow Responsible. @@ -260,9 +263,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -355,9 +359,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @@ -408,7 +413,7 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent */ public void setWFState (String WFState) { - if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); + set_Value (COLUMNNAME_WFState, WFState); } diff --git a/base/src/org/compiere/model/X_AD_WF_ProcessData.java b/base/src/org/compiere/model/X_AD_WF_ProcessData.java index 83294c864e..c8526ec2ea 100644 --- a/base/src/org/compiere/model/X_AD_WF_ProcessData.java +++ b/base/src/org/compiere/model/X_AD_WF_ProcessData.java @@ -80,9 +80,10 @@ public class X_AD_WF_ProcessData extends PO implements I_AD_WF_ProcessData, I_Pe */ public void setAD_WF_ProcessData_ID (int AD_WF_ProcessData_ID) { - if (AD_WF_ProcessData_ID < 1) - throw new IllegalArgumentException ("AD_WF_ProcessData_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_ProcessData_ID, Integer.valueOf(AD_WF_ProcessData_ID)); + if (AD_WF_ProcessData_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_ProcessData_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_ProcessData_ID, Integer.valueOf(AD_WF_ProcessData_ID)); } /** Get Workflow Process Data. @@ -118,9 +119,10 @@ public class X_AD_WF_ProcessData extends PO implements I_AD_WF_ProcessData, I_Pe */ public void setAD_WF_Process_ID (int AD_WF_Process_ID) { - if (AD_WF_Process_ID < 1) - throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + if (AD_WF_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); } /** Get Workflow Process. @@ -148,8 +150,6 @@ public class X_AD_WF_ProcessData extends PO implements I_AD_WF_ProcessData, I_Pe */ public void setAttributeName (String AttributeName) { - if (AttributeName == null) - throw new IllegalArgumentException ("AttributeName is mandatory."); set_Value (COLUMNNAME_AttributeName, AttributeName); } diff --git a/base/src/org/compiere/model/X_AD_WF_Responsible.java b/base/src/org/compiere/model/X_AD_WF_Responsible.java index 9c886066f7..a052eadfef 100644 --- a/base/src/org/compiere/model/X_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/X_AD_WF_Responsible.java @@ -99,9 +99,10 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -144,9 +145,10 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe */ public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) { - if (AD_WF_Responsible_ID < 1) - throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + if (AD_WF_Responsible_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); } /** Get Workflow Responsible. @@ -203,8 +205,6 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -240,7 +240,7 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe */ public void setResponsibleType (String ResponsibleType) { - if (ResponsibleType == null) throw new IllegalArgumentException ("ResponsibleType is mandatory"); + set_Value (COLUMNNAME_ResponsibleType, ResponsibleType); } diff --git a/base/src/org/compiere/model/X_AD_Window.java b/base/src/org/compiere/model/X_AD_Window.java index 3fc8b61056..c7a1797864 100644 --- a/base/src/org/compiere/model/X_AD_Window.java +++ b/base/src/org/compiere/model/X_AD_Window.java @@ -165,9 +165,10 @@ public class X_AD_Window extends PO implements I_AD_Window, I_Persistent */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @@ -313,8 +314,6 @@ public class X_AD_Window extends PO implements I_AD_Window, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -371,7 +370,7 @@ public class X_AD_Window extends PO implements I_AD_Window, I_Persistent */ public void setWindowType (String WindowType) { - if (WindowType == null) throw new IllegalArgumentException ("WindowType is mandatory"); + set_Value (COLUMNNAME_WindowType, WindowType); } diff --git a/base/src/org/compiere/model/X_AD_Window_Access.java b/base/src/org/compiere/model/X_AD_Window_Access.java index 456bc179c8..080e3d2f0d 100644 --- a/base/src/org/compiere/model/X_AD_Window_Access.java +++ b/base/src/org/compiere/model/X_AD_Window_Access.java @@ -95,9 +95,10 @@ public class X_AD_Window_Access extends PO implements I_AD_Window_Access, I_Pers */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -133,9 +134,10 @@ public class X_AD_Window_Access extends PO implements I_AD_Window_Access, I_Pers */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. diff --git a/base/src/org/compiere/model/X_AD_Workbench.java b/base/src/org/compiere/model/X_AD_Workbench.java index 11268c8cec..8677861d33 100644 --- a/base/src/org/compiere/model/X_AD_Workbench.java +++ b/base/src/org/compiere/model/X_AD_Workbench.java @@ -103,9 +103,10 @@ public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent */ public void setAD_Column_ID (int AD_Column_ID) { - if (AD_Column_ID < 1) - throw new IllegalArgumentException ("AD_Column_ID is mandatory."); - set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); } /** Get Column. @@ -148,9 +149,10 @@ public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent */ public void setAD_Workbench_ID (int AD_Workbench_ID) { - if (AD_Workbench_ID < 1) - throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + if (AD_Workbench_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); } /** Get Workbench. @@ -224,8 +226,6 @@ public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java index acfcecd2e5..3bc734104f 100644 --- a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java +++ b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java @@ -255,9 +255,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ */ public void setAD_Workbench_ID (int AD_Workbench_ID) { - if (AD_Workbench_ID < 1) - throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + if (AD_Workbench_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); } /** Get Workbench. @@ -275,9 +276,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ @param AD_WorkbenchWindow_ID Workbench Window */ public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID) { - if (AD_WorkbenchWindow_ID < 1) - throw new IllegalArgumentException ("AD_WorkbenchWindow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, Integer.valueOf(AD_WorkbenchWindow_ID)); + if (AD_WorkbenchWindow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, Integer.valueOf(AD_WorkbenchWindow_ID)); } /** Get Workbench Window. diff --git a/base/src/org/compiere/model/X_AD_Workflow.java b/base/src/org/compiere/model/X_AD_Workflow.java index 13e0387672..11f3784ebe 100644 --- a/base/src/org/compiere/model/X_AD_Workflow.java +++ b/base/src/org/compiere/model/X_AD_Workflow.java @@ -114,7 +114,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setAccessLevel (String AccessLevel) { - if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + set_Value (COLUMNNAME_AccessLevel, AccessLevel); } @@ -249,9 +249,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -310,8 +311,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setAuthor (String Author) { - if (Author == null) - throw new IllegalArgumentException ("Author is mandatory."); set_Value (COLUMNNAME_Author, Author); } @@ -329,8 +328,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setCost (BigDecimal Cost) { - if (Cost == null) - throw new IllegalArgumentException ("Cost is mandatory."); set_Value (COLUMNNAME_Cost, Cost); } @@ -600,8 +597,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -706,7 +701,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setPublishStatus (String PublishStatus) { - if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); + set_Value (COLUMNNAME_PublishStatus, PublishStatus); } @@ -885,8 +880,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } @@ -956,7 +949,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent */ public void setWorkflowType (String WorkflowType) { - if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory"); + set_Value (COLUMNNAME_WorkflowType, WorkflowType); } diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java index 1927ddc321..d81baf9b21 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java @@ -83,9 +83,10 @@ public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor */ public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) { - if (AD_WorkflowProcessor_ID < 1) - throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + if (AD_WorkflowProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); } /** Get Workflow Processor. @@ -204,7 +205,7 @@ public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -262,8 +263,6 @@ public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -330,9 +329,10 @@ public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java index db85817e06..b7422424ed 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java @@ -95,9 +95,10 @@ public class X_AD_WorkflowProcessorLog extends PO implements I_AD_WorkflowProces */ public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) { - if (AD_WorkflowProcessor_ID < 1) - throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + if (AD_WorkflowProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); } /** Get Workflow Processor. @@ -117,9 +118,10 @@ public class X_AD_WorkflowProcessorLog extends PO implements I_AD_WorkflowProces */ public void setAD_WorkflowProcessorLog_ID (int AD_WorkflowProcessorLog_ID) { - if (AD_WorkflowProcessorLog_ID < 1) - throw new IllegalArgumentException ("AD_WorkflowProcessorLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessorLog_ID, Integer.valueOf(AD_WorkflowProcessorLog_ID)); + if (AD_WorkflowProcessorLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessorLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessorLog_ID, Integer.valueOf(AD_WorkflowProcessorLog_ID)); } /** Get Workflow Processorl Log. diff --git a/base/src/org/compiere/model/X_AD_Workflow_Access.java b/base/src/org/compiere/model/X_AD_Workflow_Access.java index 188248dc6e..60b3d1d6c4 100644 --- a/base/src/org/compiere/model/X_AD_Workflow_Access.java +++ b/base/src/org/compiere/model/X_AD_Workflow_Access.java @@ -95,9 +95,10 @@ public class X_AD_Workflow_Access extends PO implements I_AD_Workflow_Access, I_ */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -133,9 +134,10 @@ public class X_AD_Workflow_Access extends PO implements I_AD_Workflow_Access, I_ */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. diff --git a/base/src/org/compiere/model/X_ASP_ClientException.java b/base/src/org/compiere/model/X_ASP_ClientException.java index b178491a8a..6572517b47 100644 --- a/base/src/org/compiere/model/X_ASP_ClientException.java +++ b/base/src/org/compiere/model/X_ASP_ClientException.java @@ -425,9 +425,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, @param ASP_ClientException_ID Client Exception */ public void setASP_ClientException_ID (int ASP_ClientException_ID) { - if (ASP_ClientException_ID < 1) - throw new IllegalArgumentException ("ASP_ClientException_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_ClientException_ID, Integer.valueOf(ASP_ClientException_ID)); + if (ASP_ClientException_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_ClientException_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_ClientException_ID, Integer.valueOf(ASP_ClientException_ID)); } /** Get Client Exception. @@ -452,7 +453,7 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_ClientLevel.java b/base/src/org/compiere/model/X_ASP_ClientLevel.java index d5541afa0a..a6a669922b 100644 --- a/base/src/org/compiere/model/X_ASP_ClientLevel.java +++ b/base/src/org/compiere/model/X_ASP_ClientLevel.java @@ -77,9 +77,10 @@ public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persis @param ASP_ClientLevel_ID Client Level */ public void setASP_ClientLevel_ID (int ASP_ClientLevel_ID) { - if (ASP_ClientLevel_ID < 1) - throw new IllegalArgumentException ("ASP_ClientLevel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_ClientLevel_ID, Integer.valueOf(ASP_ClientLevel_ID)); + if (ASP_ClientLevel_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_ClientLevel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_ClientLevel_ID, Integer.valueOf(ASP_ClientLevel_ID)); } /** Get Client Level. @@ -112,9 +113,10 @@ public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persis @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_Value (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_Value (COLUMNNAME_ASP_Level_ID, null); + else + set_Value (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -147,9 +149,10 @@ public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persis @param ASP_Module_ID ASP Module */ public void setASP_Module_ID (int ASP_Module_ID) { - if (ASP_Module_ID < 1) - throw new IllegalArgumentException ("ASP_Module_ID is mandatory."); - set_Value (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); + if (ASP_Module_ID < 1) + set_Value (COLUMNNAME_ASP_Module_ID, null); + else + set_Value (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); } /** Get ASP Module. diff --git a/base/src/org/compiere/model/X_ASP_Field.java b/base/src/org/compiere/model/X_ASP_Field.java index cfd0abd21e..a01a13796b 100644 --- a/base/src/org/compiere/model/X_ASP_Field.java +++ b/base/src/org/compiere/model/X_ASP_Field.java @@ -143,7 +143,7 @@ public class X_ASP_Field extends PO implements I_ASP_Field, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Form.java b/base/src/org/compiere/model/X_ASP_Form.java index 34cd20838f..f04318249a 100644 --- a/base/src/org/compiere/model/X_ASP_Form.java +++ b/base/src/org/compiere/model/X_ASP_Form.java @@ -96,9 +96,10 @@ public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent */ public void setAD_Form_ID (int AD_Form_ID) { - if (AD_Form_ID < 1) - throw new IllegalArgumentException ("AD_Form_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + if (AD_Form_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); } /** Get Special Form. @@ -152,9 +153,10 @@ public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -179,7 +181,7 @@ public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Level.java b/base/src/org/compiere/model/X_ASP_Level.java index 491484e333..ccf3bc1b29 100644 --- a/base/src/org/compiere/model/X_ASP_Level.java +++ b/base/src/org/compiere/model/X_ASP_Level.java @@ -79,9 +79,10 @@ public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -114,9 +115,10 @@ public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent @param ASP_Module_ID ASP Module */ public void setASP_Module_ID (int ASP_Module_ID) { - if (ASP_Module_ID < 1) - throw new IllegalArgumentException ("ASP_Module_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); + if (ASP_Module_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); } /** Get ASP Module. @@ -169,8 +171,6 @@ public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -217,8 +217,6 @@ public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_ASP_Module.java b/base/src/org/compiere/model/X_ASP_Module.java index 585e00d7ba..d7c9c352ff 100644 --- a/base/src/org/compiere/model/X_ASP_Module.java +++ b/base/src/org/compiere/model/X_ASP_Module.java @@ -76,9 +76,10 @@ public class X_ASP_Module extends PO implements I_ASP_Module, I_Persistent @param ASP_Module_ID ASP Module */ public void setASP_Module_ID (int ASP_Module_ID) { - if (ASP_Module_ID < 1) - throw new IllegalArgumentException ("ASP_Module_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); + if (ASP_Module_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID)); } /** Get ASP Module. @@ -131,8 +132,6 @@ public class X_ASP_Module extends PO implements I_ASP_Module, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -158,8 +157,6 @@ public class X_ASP_Module extends PO implements I_ASP_Module, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_ASP_Process.java b/base/src/org/compiere/model/X_ASP_Process.java index fa9e68fcda..819fd9ae73 100644 --- a/base/src/org/compiere/model/X_ASP_Process.java +++ b/base/src/org/compiere/model/X_ASP_Process.java @@ -97,9 +97,10 @@ public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent */ public void setAD_Process_ID (int AD_Process_ID) { - if (AD_Process_ID < 1) - throw new IllegalArgumentException ("AD_Process_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + if (AD_Process_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @@ -133,9 +134,10 @@ public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -188,7 +190,7 @@ public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Process_Para.java b/base/src/org/compiere/model/X_ASP_Process_Para.java index 69147159dc..db86ca5dce 100644 --- a/base/src/org/compiere/model/X_ASP_Process_Para.java +++ b/base/src/org/compiere/model/X_ASP_Process_Para.java @@ -176,7 +176,7 @@ public class X_ASP_Process_Para extends PO implements I_ASP_Process_Para, I_Pers @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Tab.java b/base/src/org/compiere/model/X_ASP_Tab.java index c2c23c7d63..553572b746 100644 --- a/base/src/org/compiere/model/X_ASP_Tab.java +++ b/base/src/org/compiere/model/X_ASP_Tab.java @@ -96,9 +96,10 @@ public class X_ASP_Tab extends PO implements I_ASP_Tab, I_Persistent */ public void setAD_Tab_ID (int AD_Tab_ID) { - if (AD_Tab_ID < 1) - throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + if (AD_Tab_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); } /** Get Tab. @@ -145,7 +146,7 @@ public class X_ASP_Tab extends PO implements I_ASP_Tab, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Task.java b/base/src/org/compiere/model/X_ASP_Task.java index 6bd429b417..7f491eebaa 100644 --- a/base/src/org/compiere/model/X_ASP_Task.java +++ b/base/src/org/compiere/model/X_ASP_Task.java @@ -96,9 +96,10 @@ public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent */ public void setAD_Task_ID (int AD_Task_ID) { - if (AD_Task_ID < 1) - throw new IllegalArgumentException ("AD_Task_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + if (AD_Task_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); } /** Get OS Task. @@ -132,9 +133,10 @@ public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -159,7 +161,7 @@ public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Window.java b/base/src/org/compiere/model/X_ASP_Window.java index 80ac7be68f..1ff4a07784 100644 --- a/base/src/org/compiere/model/X_ASP_Window.java +++ b/base/src/org/compiere/model/X_ASP_Window.java @@ -97,9 +97,10 @@ public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent */ public void setAD_Window_ID (int AD_Window_ID) { - if (AD_Window_ID < 1) - throw new IllegalArgumentException ("AD_Window_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + if (AD_Window_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @@ -133,9 +134,10 @@ public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -168,7 +170,7 @@ public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_ASP_Workflow.java b/base/src/org/compiere/model/X_ASP_Workflow.java index 4d5c52d134..83096ee192 100644 --- a/base/src/org/compiere/model/X_ASP_Workflow.java +++ b/base/src/org/compiere/model/X_ASP_Workflow.java @@ -96,9 +96,10 @@ public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent */ public void setAD_Workflow_ID (int AD_Workflow_ID) { - if (AD_Workflow_ID < 1) - throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + if (AD_Workflow_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @@ -132,9 +133,10 @@ public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent @param ASP_Level_ID ASP Level */ public void setASP_Level_ID (int ASP_Level_ID) { - if (ASP_Level_ID < 1) - throw new IllegalArgumentException ("ASP_Level_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); + if (ASP_Level_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID)); } /** Get ASP Level. @@ -159,7 +161,7 @@ public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent @param ASP_Status ASP Status */ public void setASP_Status (String ASP_Status) { - if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory"); + set_Value (COLUMNNAME_ASP_Status, ASP_Status); } diff --git a/base/src/org/compiere/model/X_A_Asset.java b/base/src/org/compiere/model/X_A_Asset.java index ba664a3cfc..d543f6835b 100644 --- a/base/src/org/compiere/model/X_A_Asset.java +++ b/base/src/org/compiere/model/X_A_Asset.java @@ -121,9 +121,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent */ public void setA_Asset_Group_ID (int A_Asset_Group_ID) { - if (A_Asset_Group_ID < 1) - throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); - set_Value (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + if (A_Asset_Group_ID < 1) + set_Value (COLUMNNAME_A_Asset_Group_ID, null); + else + set_Value (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); } /** Get Asset Group. @@ -143,9 +144,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -821,9 +823,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -960,8 +963,6 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -1142,8 +1143,6 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_A_Asset_Acct.java b/base/src/org/compiere/model/X_A_Asset_Acct.java index e744ef21ec..2aff3a327c 100644 --- a/base/src/org/compiere/model/X_A_Asset_Acct.java +++ b/base/src/org/compiere/model/X_A_Asset_Acct.java @@ -121,9 +121,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Asset_Acct_ID A_Asset_Acct_ID */ public void setA_Asset_Acct_ID (int A_Asset_Acct_ID) { - if (A_Asset_Acct_ID < 1) - throw new IllegalArgumentException ("A_Asset_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Acct_ID, Integer.valueOf(A_Asset_Acct_ID)); + if (A_Asset_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Acct_ID, Integer.valueOf(A_Asset_Acct_ID)); } /** Get A_Asset_Acct_ID. @@ -208,9 +209,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Depreciation_Conv_ID Convention Type */ public void setA_Depreciation_Conv_ID (int A_Depreciation_Conv_ID) { - if (A_Depreciation_Conv_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Conv_ID is mandatory."); - set_Value (COLUMNNAME_A_Depreciation_Conv_ID, Integer.valueOf(A_Depreciation_Conv_ID)); + if (A_Depreciation_Conv_ID < 1) + set_Value (COLUMNNAME_A_Depreciation_Conv_ID, null); + else + set_Value (COLUMNNAME_A_Depreciation_Conv_ID, Integer.valueOf(A_Depreciation_Conv_ID)); } /** Get Convention Type. @@ -227,9 +229,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Depreciation_ID Depreciation Type */ public void setA_Depreciation_ID (int A_Depreciation_ID) { - if (A_Depreciation_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_ID is mandatory."); - set_Value (COLUMNNAME_A_Depreciation_ID, Integer.valueOf(A_Depreciation_ID)); + if (A_Depreciation_ID < 1) + set_Value (COLUMNNAME_A_Depreciation_ID, null); + else + set_Value (COLUMNNAME_A_Depreciation_ID, Integer.valueOf(A_Depreciation_ID)); } /** Get Depreciation Type. @@ -284,9 +287,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Depreciation_Method_ID Depreciation Calculation Type */ public void setA_Depreciation_Method_ID (int A_Depreciation_Method_ID) { - if (A_Depreciation_Method_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Method_ID is mandatory."); - set_Value (COLUMNNAME_A_Depreciation_Method_ID, Integer.valueOf(A_Depreciation_Method_ID)); + if (A_Depreciation_Method_ID < 1) + set_Value (COLUMNNAME_A_Depreciation_Method_ID, null); + else + set_Value (COLUMNNAME_A_Depreciation_Method_ID, Integer.valueOf(A_Depreciation_Method_ID)); } /** Get Depreciation Calculation Type. @@ -533,8 +537,6 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Salvage_Value Salvage Value */ public void setA_Salvage_Value (BigDecimal A_Salvage_Value) { - if (A_Salvage_Value == null) - throw new IllegalArgumentException ("A_Salvage_Value is mandatory."); set_Value (COLUMNNAME_A_Salvage_Value, A_Salvage_Value); } @@ -552,8 +554,6 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent @param A_Split_Percent Split Percentage */ public void setA_Split_Percent (BigDecimal A_Split_Percent) { - if (A_Split_Percent == null) - throw new IllegalArgumentException ("A_Split_Percent is mandatory."); set_Value (COLUMNNAME_A_Split_Percent, A_Split_Percent); } @@ -589,9 +589,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -623,7 +624,7 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Asset_Addition.java b/base/src/org/compiere/model/X_A_Asset_Addition.java index e8b5736147..d7500cdc88 100644 --- a/base/src/org/compiere/model/X_A_Asset_Addition.java +++ b/base/src/org/compiere/model/X_A_Asset_Addition.java @@ -80,9 +80,10 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers @param A_Asset_Addition_ID A_Asset_Addition_ID */ public void setA_Asset_Addition_ID (int A_Asset_Addition_ID) { - if (A_Asset_Addition_ID < 1) - throw new IllegalArgumentException ("A_Asset_Addition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Addition_ID, Integer.valueOf(A_Asset_Addition_ID)); + if (A_Asset_Addition_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Addition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Addition_ID, Integer.valueOf(A_Asset_Addition_ID)); } /** Get A_Asset_Addition_ID. @@ -109,9 +110,10 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -194,8 +196,6 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers */ public void setAssetValueAmt (BigDecimal AssetValueAmt) { - if (AssetValueAmt == null) - throw new IllegalArgumentException ("AssetValueAmt is mandatory."); set_Value (COLUMNNAME_AssetValueAmt, AssetValueAmt); } diff --git a/base/src/org/compiere/model/X_A_Asset_Change.java b/base/src/org/compiere/model/X_A_Asset_Change.java index fa2e8e5925..3ea58c9861 100644 --- a/base/src/org/compiere/model/X_A_Asset_Change.java +++ b/base/src/org/compiere/model/X_A_Asset_Change.java @@ -156,9 +156,10 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste @param A_Asset_Change_ID A_Asset_Change_ID */ public void setA_Asset_Change_ID (int A_Asset_Change_ID) { - if (A_Asset_Change_ID < 1) - throw new IllegalArgumentException ("A_Asset_Change_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Change_ID, Integer.valueOf(A_Asset_Change_ID)); + if (A_Asset_Change_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Change_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Change_ID, Integer.valueOf(A_Asset_Change_ID)); } /** Get A_Asset_Change_ID. @@ -199,9 +200,10 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -937,7 +939,7 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste @param ChangeType ChangeType */ public void setChangeType (String ChangeType) { - if (ChangeType == null) throw new IllegalArgumentException ("ChangeType is mandatory"); + set_ValueNoCheck (COLUMNNAME_ChangeType, ChangeType); } @@ -1250,8 +1252,6 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste @param TextDetails Details */ public void setTextDetails (String TextDetails) { - if (TextDetails == null) - throw new IllegalArgumentException ("TextDetails is mandatory."); set_ValueNoCheck (COLUMNNAME_TextDetails, TextDetails); } diff --git a/base/src/org/compiere/model/X_A_Asset_Delivery.java b/base/src/org/compiere/model/X_A_Asset_Delivery.java index 2554bb2f7e..c04ee776c7 100644 --- a/base/src/org/compiere/model/X_A_Asset_Delivery.java +++ b/base/src/org/compiere/model/X_A_Asset_Delivery.java @@ -81,9 +81,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers */ public void setA_Asset_Delivery_ID (int A_Asset_Delivery_ID) { - if (A_Asset_Delivery_ID < 1) - throw new IllegalArgumentException ("A_Asset_Delivery_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Delivery_ID, Integer.valueOf(A_Asset_Delivery_ID)); + if (A_Asset_Delivery_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Delivery_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Delivery_ID, Integer.valueOf(A_Asset_Delivery_ID)); } /** Get Asset Delivery. @@ -119,9 +120,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -304,8 +306,6 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_ValueNoCheck (COLUMNNAME_MovementDate, MovementDate); } diff --git a/base/src/org/compiere/model/X_A_Asset_Disposed.java b/base/src/org/compiere/model/X_A_Asset_Disposed.java index 718a68989d..16fd302833 100644 --- a/base/src/org/compiere/model/X_A_Asset_Disposed.java +++ b/base/src/org/compiere/model/X_A_Asset_Disposed.java @@ -88,9 +88,10 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers @param A_Asset_Disposed_ID A_Asset_Disposed_ID */ public void setA_Asset_Disposed_ID (int A_Asset_Disposed_ID) { - if (A_Asset_Disposed_ID < 1) - throw new IllegalArgumentException ("A_Asset_Disposed_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Disposed_ID, Integer.valueOf(A_Asset_Disposed_ID)); + if (A_Asset_Disposed_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Disposed_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Disposed_ID, Integer.valueOf(A_Asset_Disposed_ID)); } /** Get A_Asset_Disposed_ID. @@ -117,9 +118,10 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -157,8 +159,6 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers @param A_Disposed_Date Disposed Date */ public void setA_Disposed_Date (Timestamp A_Disposed_Date) { - if (A_Disposed_Date == null) - throw new IllegalArgumentException ("A_Disposed_Date is mandatory."); set_Value (COLUMNNAME_A_Disposed_Date, A_Disposed_Date); } @@ -183,7 +183,7 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers @param A_Disposed_Method Disposal Method */ public void setA_Disposed_Method (String A_Disposed_Method) { - if (A_Disposed_Method == null) throw new IllegalArgumentException ("A_Disposed_Method is mandatory"); + set_Value (COLUMNNAME_A_Disposed_Method, A_Disposed_Method); } @@ -212,7 +212,7 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers @param A_Disposed_Reason Disposed Reason Code */ public void setA_Disposed_Reason (String A_Disposed_Reason) { - if (A_Disposed_Reason == null) throw new IllegalArgumentException ("A_Disposed_Reason is mandatory"); + set_Value (COLUMNNAME_A_Disposed_Reason, A_Disposed_Reason); } @@ -246,9 +246,10 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -268,8 +269,6 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -287,8 +286,6 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } diff --git a/base/src/org/compiere/model/X_A_Asset_Group.java b/base/src/org/compiere/model/X_A_Asset_Group.java index 3797919a20..b1b60f24c6 100644 --- a/base/src/org/compiere/model/X_A_Asset_Group.java +++ b/base/src/org/compiere/model/X_A_Asset_Group.java @@ -82,9 +82,10 @@ public class X_A_Asset_Group extends PO implements I_A_Asset_Group, I_Persistent */ public void setA_Asset_Group_ID (int A_Asset_Group_ID) { - if (A_Asset_Group_ID < 1) - throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + if (A_Asset_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); } /** Get Asset Group. @@ -266,8 +267,6 @@ public class X_A_Asset_Group extends PO implements I_A_Asset_Group, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_A_Asset_Group_Acct.java b/base/src/org/compiere/model/X_A_Asset_Group_Acct.java index 156339b68b..b7cbf29f8b 100644 --- a/base/src/org/compiere/model/X_A_Asset_Group_Acct.java +++ b/base/src/org/compiere/model/X_A_Asset_Group_Acct.java @@ -119,9 +119,10 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ @param A_Asset_Group_Acct_ID A_Asset_Group_Acct_ID */ public void setA_Asset_Group_Acct_ID (int A_Asset_Group_Acct_ID) { - if (A_Asset_Group_Acct_ID < 1) - throw new IllegalArgumentException ("A_Asset_Group_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Group_Acct_ID, Integer.valueOf(A_Asset_Group_Acct_ID)); + if (A_Asset_Group_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_Acct_ID, Integer.valueOf(A_Asset_Group_Acct_ID)); } /** Get A_Asset_Group_Acct_ID. @@ -164,9 +165,10 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ */ public void setA_Asset_Group_ID (int A_Asset_Group_ID) { - if (A_Asset_Group_ID < 1) - throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + if (A_Asset_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); } /** Get Asset Group. @@ -489,8 +491,6 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ @param A_Split_Percent Split Percentage */ public void setA_Split_Percent (BigDecimal A_Split_Percent) { - if (A_Split_Percent == null) - throw new IllegalArgumentException ("A_Split_Percent is mandatory."); set_Value (COLUMNNAME_A_Split_Percent, A_Split_Percent); } @@ -526,9 +526,10 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -594,7 +595,7 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Asset_Info_Fin.java b/base/src/org/compiere/model/X_A_Asset_Info_Fin.java index 279d46eddd..ebcfb9bbc6 100644 --- a/base/src/org/compiere/model/X_A_Asset_Info_Fin.java +++ b/base/src/org/compiere/model/X_A_Asset_Info_Fin.java @@ -80,9 +80,10 @@ public class X_A_Asset_Info_Fin extends PO implements I_A_Asset_Info_Fin, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -100,9 +101,10 @@ public class X_A_Asset_Info_Fin extends PO implements I_A_Asset_Info_Fin, I_Pers @param A_Asset_Info_Fin_ID A_Asset_Info_Fin_ID */ public void setA_Asset_Info_Fin_ID (int A_Asset_Info_Fin_ID) { - if (A_Asset_Info_Fin_ID < 1) - throw new IllegalArgumentException ("A_Asset_Info_Fin_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Fin_ID, Integer.valueOf(A_Asset_Info_Fin_ID)); + if (A_Asset_Info_Fin_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Fin_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Fin_ID, Integer.valueOf(A_Asset_Info_Fin_ID)); } /** Get A_Asset_Info_Fin_ID. diff --git a/base/src/org/compiere/model/X_A_Asset_Info_Ins.java b/base/src/org/compiere/model/X_A_Asset_Info_Ins.java index 9f650a7491..61d0cc602f 100644 --- a/base/src/org/compiere/model/X_A_Asset_Info_Ins.java +++ b/base/src/org/compiere/model/X_A_Asset_Info_Ins.java @@ -80,9 +80,10 @@ public class X_A_Asset_Info_Ins extends PO implements I_A_Asset_Info_Ins, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -100,9 +101,10 @@ public class X_A_Asset_Info_Ins extends PO implements I_A_Asset_Info_Ins, I_Pers @param A_Asset_Info_Ins_ID A_Asset_Info_Ins_ID */ public void setA_Asset_Info_Ins_ID (int A_Asset_Info_Ins_ID) { - if (A_Asset_Info_Ins_ID < 1) - throw new IllegalArgumentException ("A_Asset_Info_Ins_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Ins_ID, Integer.valueOf(A_Asset_Info_Ins_ID)); + if (A_Asset_Info_Ins_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Ins_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Ins_ID, Integer.valueOf(A_Asset_Info_Ins_ID)); } /** Get A_Asset_Info_Ins_ID. diff --git a/base/src/org/compiere/model/X_A_Asset_Info_Lic.java b/base/src/org/compiere/model/X_A_Asset_Info_Lic.java index 7dbfcab28a..e23fafc606 100644 --- a/base/src/org/compiere/model/X_A_Asset_Info_Lic.java +++ b/base/src/org/compiere/model/X_A_Asset_Info_Lic.java @@ -80,9 +80,10 @@ public class X_A_Asset_Info_Lic extends PO implements I_A_Asset_Info_Lic, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -100,9 +101,10 @@ public class X_A_Asset_Info_Lic extends PO implements I_A_Asset_Info_Lic, I_Pers @param A_Asset_Info_Lic_ID A_Asset_Info_Lic_ID */ public void setA_Asset_Info_Lic_ID (int A_Asset_Info_Lic_ID) { - if (A_Asset_Info_Lic_ID < 1) - throw new IllegalArgumentException ("A_Asset_Info_Lic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Lic_ID, Integer.valueOf(A_Asset_Info_Lic_ID)); + if (A_Asset_Info_Lic_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Lic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Lic_ID, Integer.valueOf(A_Asset_Info_Lic_ID)); } /** Get A_Asset_Info_Lic_ID. diff --git a/base/src/org/compiere/model/X_A_Asset_Info_Oth.java b/base/src/org/compiere/model/X_A_Asset_Info_Oth.java index c1e51b10e9..fc9d55bf94 100644 --- a/base/src/org/compiere/model/X_A_Asset_Info_Oth.java +++ b/base/src/org/compiere/model/X_A_Asset_Info_Oth.java @@ -76,9 +76,10 @@ public class X_A_Asset_Info_Oth extends PO implements I_A_Asset_Info_Oth, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -96,9 +97,10 @@ public class X_A_Asset_Info_Oth extends PO implements I_A_Asset_Info_Oth, I_Pers @param A_Asset_Info_Oth_ID A_Asset_Info_Oth_ID */ public void setA_Asset_Info_Oth_ID (int A_Asset_Info_Oth_ID) { - if (A_Asset_Info_Oth_ID < 1) - throw new IllegalArgumentException ("A_Asset_Info_Oth_ID is mandatory."); - set_Value (COLUMNNAME_A_Asset_Info_Oth_ID, Integer.valueOf(A_Asset_Info_Oth_ID)); + if (A_Asset_Info_Oth_ID < 1) + set_Value (COLUMNNAME_A_Asset_Info_Oth_ID, null); + else + set_Value (COLUMNNAME_A_Asset_Info_Oth_ID, Integer.valueOf(A_Asset_Info_Oth_ID)); } /** Get A_Asset_Info_Oth_ID. diff --git a/base/src/org/compiere/model/X_A_Asset_Info_Tax.java b/base/src/org/compiere/model/X_A_Asset_Info_Tax.java index 0f5be607a2..76a1dfdd8b 100644 --- a/base/src/org/compiere/model/X_A_Asset_Info_Tax.java +++ b/base/src/org/compiere/model/X_A_Asset_Info_Tax.java @@ -77,9 +77,10 @@ public class X_A_Asset_Info_Tax extends PO implements I_A_Asset_Info_Tax, I_Pers */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -97,9 +98,10 @@ public class X_A_Asset_Info_Tax extends PO implements I_A_Asset_Info_Tax, I_Pers @param A_Asset_Info_Tax_ID A_Asset_Info_Tax_ID */ public void setA_Asset_Info_Tax_ID (int A_Asset_Info_Tax_ID) { - if (A_Asset_Info_Tax_ID < 1) - throw new IllegalArgumentException ("A_Asset_Info_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Tax_ID, Integer.valueOf(A_Asset_Info_Tax_ID)); + if (A_Asset_Info_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Info_Tax_ID, Integer.valueOf(A_Asset_Info_Tax_ID)); } /** Get A_Asset_Info_Tax_ID. diff --git a/base/src/org/compiere/model/X_A_Asset_Retirement.java b/base/src/org/compiere/model/X_A_Asset_Retirement.java index e118e069ef..7e75e6099e 100644 --- a/base/src/org/compiere/model/X_A_Asset_Retirement.java +++ b/base/src/org/compiere/model/X_A_Asset_Retirement.java @@ -99,9 +99,10 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -121,9 +122,10 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ */ public void setA_Asset_Retirement_ID (int A_Asset_Retirement_ID) { - if (A_Asset_Retirement_ID < 1) - throw new IllegalArgumentException ("A_Asset_Retirement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Retirement_ID, Integer.valueOf(A_Asset_Retirement_ID)); + if (A_Asset_Retirement_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Retirement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Retirement_ID, Integer.valueOf(A_Asset_Retirement_ID)); } /** Get Asset Retirement. @@ -151,8 +153,6 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ */ public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt) { - if (AssetMarketValueAmt == null) - throw new IllegalArgumentException ("AssetMarketValueAmt is mandatory."); set_Value (COLUMNNAME_AssetMarketValueAmt, AssetMarketValueAmt); } @@ -173,8 +173,6 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ */ public void setAssetValueAmt (BigDecimal AssetValueAmt) { - if (AssetValueAmt == null) - throw new IllegalArgumentException ("AssetValueAmt is mandatory."); set_Value (COLUMNNAME_AssetValueAmt, AssetValueAmt); } diff --git a/base/src/org/compiere/model/X_A_Asset_Reval_Entry.java b/base/src/org/compiere/model/X_A_Asset_Reval_Entry.java index b8b08e90bb..23fca9d68f 100644 --- a/base/src/org/compiere/model/X_A_Asset_Reval_Entry.java +++ b/base/src/org/compiere/model/X_A_Asset_Reval_Entry.java @@ -88,9 +88,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Asset_Reval_Entry_ID A_Asset_Reval_Entry_ID */ public void setA_Asset_Reval_Entry_ID (int A_Asset_Reval_Entry_ID) { - if (A_Asset_Reval_Entry_ID < 1) - throw new IllegalArgumentException ("A_Asset_Reval_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Entry_ID, Integer.valueOf(A_Asset_Reval_Entry_ID)); + if (A_Asset_Reval_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Entry_ID, Integer.valueOf(A_Asset_Reval_Entry_ID)); } /** Get A_Asset_Reval_Entry_ID. @@ -115,8 +116,6 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Effective_Date A_Effective_Date */ public void setA_Effective_Date (Timestamp A_Effective_Date) { - if (A_Effective_Date == null) - throw new IllegalArgumentException ("A_Effective_Date is mandatory."); set_Value (COLUMNNAME_A_Effective_Date, A_Effective_Date); } @@ -139,7 +138,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Reval_Cal_Method Revaluation Calculation Method */ public void setA_Reval_Cal_Method (String A_Reval_Cal_Method) { - if (A_Reval_Cal_Method == null) throw new IllegalArgumentException ("A_Reval_Cal_Method is mandatory"); + set_Value (COLUMNNAME_A_Reval_Cal_Method, A_Reval_Cal_Method); } @@ -162,7 +161,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Reval_Effective_Date A_Reval_Effective_Date */ public void setA_Reval_Effective_Date (String A_Reval_Effective_Date) { - if (A_Reval_Effective_Date == null) throw new IllegalArgumentException ("A_Reval_Effective_Date is mandatory"); + set_Value (COLUMNNAME_A_Reval_Effective_Date, A_Reval_Effective_Date); } @@ -183,7 +182,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Reval_Multiplier A_Reval_Multiplier */ public void setA_Reval_Multiplier (String A_Reval_Multiplier) { - if (A_Reval_Multiplier == null) throw new IllegalArgumentException ("A_Reval_Multiplier is mandatory"); + set_Value (COLUMNNAME_A_Reval_Multiplier, A_Reval_Multiplier); } @@ -206,7 +205,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, @param A_Rev_Code A_Rev_Code */ public void setA_Rev_Code (String A_Rev_Code) { - if (A_Rev_Code == null) throw new IllegalArgumentException ("A_Rev_Code is mandatory"); + set_Value (COLUMNNAME_A_Rev_Code, A_Rev_Code); } @@ -278,9 +277,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -316,7 +316,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -396,8 +396,6 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -415,8 +413,6 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -485,7 +481,7 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Asset_Reval_Index.java b/base/src/org/compiere/model/X_A_Asset_Reval_Index.java index e935f378cb..89e8ee7f39 100644 --- a/base/src/org/compiere/model/X_A_Asset_Reval_Index.java +++ b/base/src/org/compiere/model/X_A_Asset_Reval_Index.java @@ -81,9 +81,10 @@ public class X_A_Asset_Reval_Index extends PO implements I_A_Asset_Reval_Index, @param A_Asset_Reval_Index_ID A_Asset_Reval_Index_ID */ public void setA_Asset_Reval_Index_ID (int A_Asset_Reval_Index_ID) { - if (A_Asset_Reval_Index_ID < 1) - throw new IllegalArgumentException ("A_Asset_Reval_Index_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Index_ID, Integer.valueOf(A_Asset_Reval_Index_ID)); + if (A_Asset_Reval_Index_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Index_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Index_ID, Integer.valueOf(A_Asset_Reval_Index_ID)); } /** Get A_Asset_Reval_Index_ID. @@ -108,8 +109,6 @@ public class X_A_Asset_Reval_Index extends PO implements I_A_Asset_Reval_Index, @param A_Effective_Date A_Effective_Date */ public void setA_Effective_Date (Timestamp A_Effective_Date) { - if (A_Effective_Date == null) - throw new IllegalArgumentException ("A_Effective_Date is mandatory."); set_Value (COLUMNNAME_A_Effective_Date, A_Effective_Date); } @@ -132,7 +131,7 @@ public class X_A_Asset_Reval_Index extends PO implements I_A_Asset_Reval_Index, @param A_Reval_Code A_Reval_Code */ public void setA_Reval_Code (String A_Reval_Code) { - if (A_Reval_Code == null) throw new IllegalArgumentException ("A_Reval_Code is mandatory"); + set_Value (COLUMNNAME_A_Reval_Code, A_Reval_Code); } @@ -153,7 +152,7 @@ public class X_A_Asset_Reval_Index extends PO implements I_A_Asset_Reval_Index, @param A_Reval_Multiplier A_Reval_Multiplier */ public void setA_Reval_Multiplier (String A_Reval_Multiplier) { - if (A_Reval_Multiplier == null) throw new IllegalArgumentException ("A_Reval_Multiplier is mandatory"); + set_Value (COLUMNNAME_A_Reval_Multiplier, A_Reval_Multiplier); } @@ -168,8 +167,6 @@ public class X_A_Asset_Reval_Index extends PO implements I_A_Asset_Reval_Index, @param A_Reval_Rate A_Reval_Rate */ public void setA_Reval_Rate (BigDecimal A_Reval_Rate) { - if (A_Reval_Rate == null) - throw new IllegalArgumentException ("A_Reval_Rate is mandatory."); set_Value (COLUMNNAME_A_Reval_Rate, A_Reval_Rate); } diff --git a/base/src/org/compiere/model/X_A_Asset_Split.java b/base/src/org/compiere/model/X_A_Asset_Split.java index 08193d04c0..5d9c0a9a19 100644 --- a/base/src/org/compiere/model/X_A_Asset_Split.java +++ b/base/src/org/compiere/model/X_A_Asset_Split.java @@ -112,9 +112,10 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent @param A_Asset_Acct_ID A_Asset_Acct_ID */ public void setA_Asset_Acct_ID (int A_Asset_Acct_ID) { - if (A_Asset_Acct_ID < 1) - throw new IllegalArgumentException ("A_Asset_Acct_ID is mandatory."); - set_Value (COLUMNNAME_A_Asset_Acct_ID, Integer.valueOf(A_Asset_Acct_ID)); + if (A_Asset_Acct_ID < 1) + set_Value (COLUMNNAME_A_Asset_Acct_ID, null); + else + set_Value (COLUMNNAME_A_Asset_Acct_ID, Integer.valueOf(A_Asset_Acct_ID)); } /** Get A_Asset_Acct_ID. @@ -150,9 +151,10 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -187,9 +189,10 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent @param A_Asset_Split_ID A_Asset_Split_ID */ public void setA_Asset_Split_ID (int A_Asset_Split_ID) { - if (A_Asset_Split_ID < 1) - throw new IllegalArgumentException ("A_Asset_Split_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Split_ID, Integer.valueOf(A_Asset_Split_ID)); + if (A_Asset_Split_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Split_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Split_ID, Integer.valueOf(A_Asset_Split_ID)); } /** Get A_Asset_Split_ID. @@ -214,9 +217,10 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent @param A_Depreciation_Workfile_ID A_Depreciation_Workfile_ID */ public void setA_Depreciation_Workfile_ID (int A_Depreciation_Workfile_ID) { - if (A_Depreciation_Workfile_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Workfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, Integer.valueOf(A_Depreciation_Workfile_ID)); + if (A_Depreciation_Workfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, Integer.valueOf(A_Depreciation_Workfile_ID)); } /** Get A_Depreciation_Workfile_ID. @@ -267,8 +271,6 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent @param A_QTY_Current Quantity */ public void setA_QTY_Current (BigDecimal A_QTY_Current) { - if (A_QTY_Current == null) - throw new IllegalArgumentException ("A_QTY_Current is mandatory."); set_Value (COLUMNNAME_A_QTY_Current, A_QTY_Current); } @@ -311,7 +313,7 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent @param A_Split_Type Split Type */ public void setA_Split_Type (String A_Split_Type) { - if (A_Split_Type == null) throw new IllegalArgumentException ("A_Split_Type is mandatory"); + set_Value (COLUMNNAME_A_Split_Type, A_Split_Type); } @@ -349,9 +351,10 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -371,8 +374,6 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -402,7 +403,7 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_ValueNoCheck (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Asset_Spread.java b/base/src/org/compiere/model/X_A_Asset_Spread.java index 36a07dd34c..7dd963d6bc 100644 --- a/base/src/org/compiere/model/X_A_Asset_Spread.java +++ b/base/src/org/compiere/model/X_A_Asset_Spread.java @@ -90,9 +90,10 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Asset_Spread_ID A_Asset_Spread_ID */ public void setA_Asset_Spread_ID (int A_Asset_Spread_ID) { - if (A_Asset_Spread_ID < 1) - throw new IllegalArgumentException ("A_Asset_Spread_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Spread_ID, Integer.valueOf(A_Asset_Spread_ID)); + if (A_Asset_Spread_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Spread_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Spread_ID, Integer.valueOf(A_Asset_Spread_ID)); } /** Get A_Asset_Spread_ID. @@ -131,8 +132,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_1 A_Period_1 */ public void setA_Period_1 (BigDecimal A_Period_1) { - if (A_Period_1 == null) - throw new IllegalArgumentException ("A_Period_1 is mandatory."); set_Value (COLUMNNAME_A_Period_1, A_Period_1); } @@ -150,8 +149,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_10 A_Period_10 */ public void setA_Period_10 (BigDecimal A_Period_10) { - if (A_Period_10 == null) - throw new IllegalArgumentException ("A_Period_10 is mandatory."); set_Value (COLUMNNAME_A_Period_10, A_Period_10); } @@ -169,8 +166,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_11 A_Period_11 */ public void setA_Period_11 (BigDecimal A_Period_11) { - if (A_Period_11 == null) - throw new IllegalArgumentException ("A_Period_11 is mandatory."); set_Value (COLUMNNAME_A_Period_11, A_Period_11); } @@ -188,8 +183,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_12 A_Period_12 */ public void setA_Period_12 (BigDecimal A_Period_12) { - if (A_Period_12 == null) - throw new IllegalArgumentException ("A_Period_12 is mandatory."); set_Value (COLUMNNAME_A_Period_12, A_Period_12); } @@ -207,8 +200,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_13 A_Period_13 */ public void setA_Period_13 (BigDecimal A_Period_13) { - if (A_Period_13 == null) - throw new IllegalArgumentException ("A_Period_13 is mandatory."); set_Value (COLUMNNAME_A_Period_13, A_Period_13); } @@ -226,8 +217,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_14 A_Period_14 */ public void setA_Period_14 (BigDecimal A_Period_14) { - if (A_Period_14 == null) - throw new IllegalArgumentException ("A_Period_14 is mandatory."); set_Value (COLUMNNAME_A_Period_14, A_Period_14); } @@ -245,8 +234,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_2 A_Period_2 */ public void setA_Period_2 (BigDecimal A_Period_2) { - if (A_Period_2 == null) - throw new IllegalArgumentException ("A_Period_2 is mandatory."); set_Value (COLUMNNAME_A_Period_2, A_Period_2); } @@ -264,8 +251,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_3 A_Period_3 */ public void setA_Period_3 (BigDecimal A_Period_3) { - if (A_Period_3 == null) - throw new IllegalArgumentException ("A_Period_3 is mandatory."); set_Value (COLUMNNAME_A_Period_3, A_Period_3); } @@ -283,8 +268,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_4 A_Period_4 */ public void setA_Period_4 (BigDecimal A_Period_4) { - if (A_Period_4 == null) - throw new IllegalArgumentException ("A_Period_4 is mandatory."); set_Value (COLUMNNAME_A_Period_4, A_Period_4); } @@ -302,8 +285,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_5 A_Period_5 */ public void setA_Period_5 (BigDecimal A_Period_5) { - if (A_Period_5 == null) - throw new IllegalArgumentException ("A_Period_5 is mandatory."); set_Value (COLUMNNAME_A_Period_5, A_Period_5); } @@ -321,8 +302,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_6 A_Period_6 */ public void setA_Period_6 (BigDecimal A_Period_6) { - if (A_Period_6 == null) - throw new IllegalArgumentException ("A_Period_6 is mandatory."); set_Value (COLUMNNAME_A_Period_6, A_Period_6); } @@ -340,8 +319,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_7 A_Period_7 */ public void setA_Period_7 (BigDecimal A_Period_7) { - if (A_Period_7 == null) - throw new IllegalArgumentException ("A_Period_7 is mandatory."); set_Value (COLUMNNAME_A_Period_7, A_Period_7); } @@ -359,8 +336,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_8 A_Period_8 */ public void setA_Period_8 (BigDecimal A_Period_8) { - if (A_Period_8 == null) - throw new IllegalArgumentException ("A_Period_8 is mandatory."); set_Value (COLUMNNAME_A_Period_8, A_Period_8); } @@ -378,8 +353,6 @@ public class X_A_Asset_Spread extends PO implements I_A_Asset_Spread, I_Persiste @param A_Period_9 A_Period_9 */ public void setA_Period_9 (BigDecimal A_Period_9) { - if (A_Period_9 == null) - throw new IllegalArgumentException ("A_Period_9 is mandatory."); set_Value (COLUMNNAME_A_Period_9, A_Period_9); } diff --git a/base/src/org/compiere/model/X_A_Asset_Transfer.java b/base/src/org/compiere/model/X_A_Asset_Transfer.java index f7d0d78098..c38b866aff 100644 --- a/base/src/org/compiere/model/X_A_Asset_Transfer.java +++ b/base/src/org/compiere/model/X_A_Asset_Transfer.java @@ -234,9 +234,10 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers @param A_Asset_Transfer_ID A_Asset_Transfer_ID */ public void setA_Asset_Transfer_ID (int A_Asset_Transfer_ID) { - if (A_Asset_Transfer_ID < 1) - throw new IllegalArgumentException ("A_Asset_Transfer_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Transfer_ID, Integer.valueOf(A_Asset_Transfer_ID)); + if (A_Asset_Transfer_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Transfer_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Transfer_ID, Integer.valueOf(A_Asset_Transfer_ID)); } /** Get A_Asset_Transfer_ID. @@ -439,8 +440,6 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers @param A_Split_Percent Split Percentage */ public void setA_Split_Percent (BigDecimal A_Split_Percent) { - if (A_Split_Percent == null) - throw new IllegalArgumentException ("A_Split_Percent is mandatory."); set_Value (COLUMNNAME_A_Split_Percent, A_Split_Percent); } @@ -548,8 +547,6 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } diff --git a/base/src/org/compiere/model/X_A_Asset_Use.java b/base/src/org/compiere/model/X_A_Asset_Use.java index 3fca677ff4..367929603f 100644 --- a/base/src/org/compiere/model/X_A_Asset_Use.java +++ b/base/src/org/compiere/model/X_A_Asset_Use.java @@ -80,9 +80,10 @@ public class X_A_Asset_Use extends PO implements I_A_Asset_Use, I_Persistent */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -100,9 +101,10 @@ public class X_A_Asset_Use extends PO implements I_A_Asset_Use, I_Persistent @param A_Asset_Use_ID A_Asset_Use_ID */ public void setA_Asset_Use_ID (int A_Asset_Use_ID) { - if (A_Asset_Use_ID < 1) - throw new IllegalArgumentException ("A_Asset_Use_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_Use_ID, Integer.valueOf(A_Asset_Use_ID)); + if (A_Asset_Use_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_Use_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_Use_ID, Integer.valueOf(A_Asset_Use_ID)); } /** Get A_Asset_Use_ID. @@ -144,8 +146,6 @@ public class X_A_Asset_Use extends PO implements I_A_Asset_Use, I_Persistent @param UseDate UseDate */ public void setUseDate (Timestamp UseDate) { - if (UseDate == null) - throw new IllegalArgumentException ("UseDate is mandatory."); set_Value (COLUMNNAME_UseDate, UseDate); } diff --git a/base/src/org/compiere/model/X_A_Depreciation.java b/base/src/org/compiere/model/X_A_Depreciation.java index c271bf432d..e37d036c84 100644 --- a/base/src/org/compiere/model/X_A_Depreciation.java +++ b/base/src/org/compiere/model/X_A_Depreciation.java @@ -77,9 +77,10 @@ public class X_A_Depreciation extends PO implements I_A_Depreciation, I_Persiste @param A_Depreciation_ID Depreciation Type */ public void setA_Depreciation_ID (int A_Depreciation_ID) { - if (A_Depreciation_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_ID, Integer.valueOf(A_Depreciation_ID)); + if (A_Depreciation_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_ID, Integer.valueOf(A_Depreciation_ID)); } /** Get Depreciation Type. @@ -96,8 +97,6 @@ public class X_A_Depreciation extends PO implements I_A_Depreciation, I_Persiste @param DepreciationType DepreciationType */ public void setDepreciationType (String DepreciationType) { - if (DepreciationType == null) - throw new IllegalArgumentException ("DepreciationType is mandatory."); set_Value (COLUMNNAME_DepreciationType, DepreciationType); } @@ -131,8 +130,6 @@ public class X_A_Depreciation extends PO implements I_A_Depreciation, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_A_Depreciation_Build.java b/base/src/org/compiere/model/X_A_Depreciation_Build.java index 385cb2e8a3..7c1013a60d 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Build.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Build.java @@ -75,9 +75,10 @@ public class X_A_Depreciation_Build extends PO implements I_A_Depreciation_Build @param A_Depreciation_Build_ID A_Depreciation_Build_ID */ public void setA_Depreciation_Build_ID (int A_Depreciation_Build_ID) { - if (A_Depreciation_Build_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Build_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Build_ID, Integer.valueOf(A_Depreciation_Build_ID)); + if (A_Depreciation_Build_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Build_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Build_ID, Integer.valueOf(A_Depreciation_Build_ID)); } /** Get A_Depreciation_Build_ID. diff --git a/base/src/org/compiere/model/X_A_Depreciation_Convention.java b/base/src/org/compiere/model/X_A_Depreciation_Convention.java index 9ce3280d74..4947f45684 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Convention.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Convention.java @@ -75,9 +75,10 @@ public class X_A_Depreciation_Convention extends PO implements I_A_Depreciation_ @param A_Depreciation_Convention_ID A_Depreciation_Convention_ID */ public void setA_Depreciation_Convention_ID (int A_Depreciation_Convention_ID) { - if (A_Depreciation_Convention_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Convention_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Convention_ID, Integer.valueOf(A_Depreciation_Convention_ID)); + if (A_Depreciation_Convention_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Convention_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Convention_ID, Integer.valueOf(A_Depreciation_Convention_ID)); } /** Get A_Depreciation_Convention_ID. diff --git a/base/src/org/compiere/model/X_A_Depreciation_Entry.java b/base/src/org/compiere/model/X_A_Depreciation_Entry.java index ea602808d3..f1036814b4 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Entry.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Entry.java @@ -94,9 +94,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry @param A_Depreciation_Entry_ID A_Depreciation_Entry_ID */ public void setA_Depreciation_Entry_ID (int A_Depreciation_Entry_ID) { - if (A_Depreciation_Entry_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Entry_ID, Integer.valueOf(A_Depreciation_Entry_ID)); + if (A_Depreciation_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Entry_ID, Integer.valueOf(A_Depreciation_Entry_ID)); } /** Get A_Depreciation_Entry_ID. @@ -135,7 +136,7 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry @param A_Entry_Type Entry Type */ public void setA_Entry_Type (String A_Entry_Type) { - if (A_Entry_Type == null) throw new IllegalArgumentException ("A_Entry_Type is mandatory"); + set_Value (COLUMNNAME_A_Entry_Type, A_Entry_Type); } @@ -168,9 +169,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -206,9 +208,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -244,9 +247,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -266,9 +270,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -288,8 +293,6 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -307,8 +310,6 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } @@ -326,8 +327,6 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -345,8 +344,6 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -380,9 +377,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setGL_Category_ID (int GL_Category_ID) { - if (GL_Category_ID < 1) - throw new IllegalArgumentException ("GL_Category_ID is mandatory."); - set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + if (GL_Category_ID < 1) + set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @@ -414,7 +412,7 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Depreciation_Exp.java b/base/src/org/compiere/model/X_A_Depreciation_Exp.java index 8c9f396692..c55fe495a6 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Exp.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Exp.java @@ -104,9 +104,10 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -124,9 +125,10 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ @param A_Depreciation_Exp_ID A_Depreciation_Exp_ID */ public void setA_Depreciation_Exp_ID (int A_Depreciation_Exp_ID) { - if (A_Depreciation_Exp_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Exp_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Exp_ID, Integer.valueOf(A_Depreciation_Exp_ID)); + if (A_Depreciation_Exp_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Exp_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Exp_ID, Integer.valueOf(A_Depreciation_Exp_ID)); } /** Get A_Depreciation_Exp_ID. @@ -165,7 +167,7 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ @param A_Entry_Type Entry Type */ public void setA_Entry_Type (String A_Entry_Type) { - if (A_Entry_Type == null) throw new IllegalArgumentException ("A_Entry_Type is mandatory"); + set_Value (COLUMNNAME_A_Entry_Type, A_Entry_Type); } @@ -216,8 +218,6 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -233,8 +233,6 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ @param Expense Expense */ public void setExpense (BigDecimal Expense) { - if (Expense == null) - throw new IllegalArgumentException ("Expense is mandatory."); set_Value (COLUMNNAME_Expense, Expense); } diff --git a/base/src/org/compiere/model/X_A_Depreciation_Forecast.java b/base/src/org/compiere/model/X_A_Depreciation_Forecast.java index 2b88b5dbf5..82481cf528 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Forecast.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Forecast.java @@ -79,9 +79,10 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo @param A_Depreciation_Forecast_ID A_Depreciation_Forecast_ID */ public void setA_Depreciation_Forecast_ID (int A_Depreciation_Forecast_ID) { - if (A_Depreciation_Forecast_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Forecast_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Forecast_ID, Integer.valueOf(A_Depreciation_Forecast_ID)); + if (A_Depreciation_Forecast_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Forecast_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Forecast_ID, Integer.valueOf(A_Depreciation_Forecast_ID)); } /** Get A_Depreciation_Forecast_ID. @@ -106,9 +107,10 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo @param A_End_Asset_ID End Aset ID */ public void setA_End_Asset_ID (int A_End_Asset_ID) { - if (A_End_Asset_ID < 1) - throw new IllegalArgumentException ("A_End_Asset_ID is mandatory."); - set_Value (COLUMNNAME_A_End_Asset_ID, Integer.valueOf(A_End_Asset_ID)); + if (A_End_Asset_ID < 1) + set_Value (COLUMNNAME_A_End_Asset_ID, null); + else + set_Value (COLUMNNAME_A_End_Asset_ID, Integer.valueOf(A_End_Asset_ID)); } /** Get End Aset ID. @@ -125,9 +127,10 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo @param A_Start_Asset_ID A_Start_Asset_ID */ public void setA_Start_Asset_ID (int A_Start_Asset_ID) { - if (A_Start_Asset_ID < 1) - throw new IllegalArgumentException ("A_Start_Asset_ID is mandatory."); - set_Value (COLUMNNAME_A_Start_Asset_ID, Integer.valueOf(A_Start_Asset_ID)); + if (A_Start_Asset_ID < 1) + set_Value (COLUMNNAME_A_Start_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Start_Asset_ID, Integer.valueOf(A_Start_Asset_ID)); } /** Get A_Start_Asset_ID. @@ -146,8 +149,6 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } @@ -177,7 +178,7 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_A_Depreciation_Method.java b/base/src/org/compiere/model/X_A_Depreciation_Method.java index 63cfb0b098..5d5604c2c9 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Method.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Method.java @@ -76,9 +76,10 @@ public class X_A_Depreciation_Method extends PO implements I_A_Depreciation_Meth @param A_Depreciation_Method_ID Depreciation Calculation Type */ public void setA_Depreciation_Method_ID (int A_Depreciation_Method_ID) { - if (A_Depreciation_Method_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Method_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Method_ID, Integer.valueOf(A_Depreciation_Method_ID)); + if (A_Depreciation_Method_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Method_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Method_ID, Integer.valueOf(A_Depreciation_Method_ID)); } /** Get Depreciation Calculation Type. diff --git a/base/src/org/compiere/model/X_A_Depreciation_Table_Detail.java b/base/src/org/compiere/model/X_A_Depreciation_Table_Detail.java index 7ae1d1a86a..9879e541a1 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Table_Detail.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Table_Detail.java @@ -80,8 +80,6 @@ public class X_A_Depreciation_Table_Detail extends PO implements I_A_Depreciatio @param A_Depreciation_Rate Rate */ public void setA_Depreciation_Rate (BigDecimal A_Depreciation_Rate) { - if (A_Depreciation_Rate == null) - throw new IllegalArgumentException ("A_Depreciation_Rate is mandatory."); set_Value (COLUMNNAME_A_Depreciation_Rate, A_Depreciation_Rate); } @@ -99,8 +97,6 @@ public class X_A_Depreciation_Table_Detail extends PO implements I_A_Depreciatio @param A_Depreciation_Table_Code Depreciation Code */ public void setA_Depreciation_Table_Code (String A_Depreciation_Table_Code) { - if (A_Depreciation_Table_Code == null) - throw new IllegalArgumentException ("A_Depreciation_Table_Code is mandatory."); set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Code, A_Depreciation_Table_Code); } @@ -115,9 +111,10 @@ public class X_A_Depreciation_Table_Detail extends PO implements I_A_Depreciatio @param A_Depreciation_Table_Detail_ID A_Depreciation_Table_Detail_ID */ public void setA_Depreciation_Table_Detail_ID (int A_Depreciation_Table_Detail_ID) { - if (A_Depreciation_Table_Detail_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Table_Detail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Detail_ID, Integer.valueOf(A_Depreciation_Table_Detail_ID)); + if (A_Depreciation_Table_Detail_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Detail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Detail_ID, Integer.valueOf(A_Depreciation_Table_Detail_ID)); } /** Get A_Depreciation_Table_Detail_ID. diff --git a/base/src/org/compiere/model/X_A_Depreciation_Table_Header.java b/base/src/org/compiere/model/X_A_Depreciation_Table_Header.java index fb14b008aa..74b3bf4826 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Table_Header.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Table_Header.java @@ -79,8 +79,6 @@ public class X_A_Depreciation_Table_Header extends PO implements I_A_Depreciatio @param A_Depreciation_Table_Code Depreciation Code */ public void setA_Depreciation_Table_Code (String A_Depreciation_Table_Code) { - if (A_Depreciation_Table_Code == null) - throw new IllegalArgumentException ("A_Depreciation_Table_Code is mandatory."); set_Value (COLUMNNAME_A_Depreciation_Table_Code, A_Depreciation_Table_Code); } @@ -95,9 +93,10 @@ public class X_A_Depreciation_Table_Header extends PO implements I_A_Depreciatio @param A_Depreciation_Table_Header_ID A_Depreciation_Table_Header_ID */ public void setA_Depreciation_Table_Header_ID (int A_Depreciation_Table_Header_ID) { - if (A_Depreciation_Table_Header_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Table_Header_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Header_ID, Integer.valueOf(A_Depreciation_Table_Header_ID)); + if (A_Depreciation_Table_Header_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Header_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Table_Header_ID, Integer.valueOf(A_Depreciation_Table_Header_ID)); } /** Get A_Depreciation_Table_Header_ID. @@ -128,7 +127,7 @@ public class X_A_Depreciation_Table_Header extends PO implements I_A_Depreciatio @param A_Table_Rate_Type Type */ public void setA_Table_Rate_Type (String A_Table_Rate_Type) { - if (A_Table_Rate_Type == null) throw new IllegalArgumentException ("A_Table_Rate_Type is mandatory"); + set_Value (COLUMNNAME_A_Table_Rate_Type, A_Table_Rate_Type); } @@ -149,7 +148,7 @@ public class X_A_Depreciation_Table_Header extends PO implements I_A_Depreciatio @param A_Term Period/Yearly */ public void setA_Term (String A_Term) { - if (A_Term == null) throw new IllegalArgumentException ("A_Term is mandatory"); + set_Value (COLUMNNAME_A_Term, A_Term); } @@ -166,8 +165,6 @@ public class X_A_Depreciation_Table_Header extends PO implements I_A_Depreciatio */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } diff --git a/base/src/org/compiere/model/X_A_Depreciation_Workfile.java b/base/src/org/compiere/model/X_A_Depreciation_Workfile.java index f531cd7846..af55a678d9 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Workfile.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Workfile.java @@ -116,9 +116,10 @@ public class X_A_Depreciation_Workfile extends PO implements I_A_Depreciation_Wo */ public void setA_Asset_ID (int A_Asset_ID) { - if (A_Asset_ID < 1) - throw new IllegalArgumentException ("A_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + if (A_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @@ -238,9 +239,10 @@ public class X_A_Depreciation_Workfile extends PO implements I_A_Depreciation_Wo @param A_Depreciation_Workfile_ID A_Depreciation_Workfile_ID */ public void setA_Depreciation_Workfile_ID (int A_Depreciation_Workfile_ID) { - if (A_Depreciation_Workfile_ID < 1) - throw new IllegalArgumentException ("A_Depreciation_Workfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, Integer.valueOf(A_Depreciation_Workfile_ID)); + if (A_Depreciation_Workfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Depreciation_Workfile_ID, Integer.valueOf(A_Depreciation_Workfile_ID)); } /** Get A_Depreciation_Workfile_ID. @@ -333,8 +335,6 @@ public class X_A_Depreciation_Workfile extends PO implements I_A_Depreciation_Wo @param A_QTY_Current Quantity */ public void setA_QTY_Current (BigDecimal A_QTY_Current) { - if (A_QTY_Current == null) - throw new IllegalArgumentException ("A_QTY_Current is mandatory."); set_Value (COLUMNNAME_A_QTY_Current, A_QTY_Current); } diff --git a/base/src/org/compiere/model/X_A_Registration.java b/base/src/org/compiere/model/X_A_Registration.java index 8fbae2924a..d15bff01e7 100644 --- a/base/src/org/compiere/model/X_A_Registration.java +++ b/base/src/org/compiere/model/X_A_Registration.java @@ -162,9 +162,10 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste */ public void setA_Registration_ID (int A_Registration_ID) { - if (A_Registration_ID < 1) - throw new IllegalArgumentException ("A_Registration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); + if (A_Registration_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); } /** Get Registration. @@ -184,8 +185,6 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste */ public void setAssetServiceDate (Timestamp AssetServiceDate) { - if (AssetServiceDate == null) - throw new IllegalArgumentException ("AssetServiceDate is mandatory."); set_ValueNoCheck (COLUMNNAME_AssetServiceDate, AssetServiceDate); } @@ -387,8 +386,6 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_A_RegistrationAttribute.java b/base/src/org/compiere/model/X_A_RegistrationAttribute.java index 8073beb927..eecc66db75 100644 --- a/base/src/org/compiere/model/X_A_RegistrationAttribute.java +++ b/base/src/org/compiere/model/X_A_RegistrationAttribute.java @@ -81,9 +81,10 @@ public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAtt */ public void setAD_Reference_ID (int AD_Reference_ID) { - if (AD_Reference_ID < 1) - throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); - set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + if (AD_Reference_ID < 1) + set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); } /** Get Reference. @@ -126,9 +127,10 @@ public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAtt */ public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) { - if (A_RegistrationAttribute_ID < 1) - throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + if (A_RegistrationAttribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); } /** Get Registration Attribute. @@ -206,8 +208,6 @@ public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAtt */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_A_RegistrationProduct.java b/base/src/org/compiere/model/X_A_RegistrationProduct.java index 89405911a3..142deaba10 100644 --- a/base/src/org/compiere/model/X_A_RegistrationProduct.java +++ b/base/src/org/compiere/model/X_A_RegistrationProduct.java @@ -94,9 +94,10 @@ public class X_A_RegistrationProduct extends PO implements I_A_RegistrationProdu */ public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) { - if (A_RegistrationAttribute_ID < 1) - throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + if (A_RegistrationAttribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); } /** Get Registration Attribute. @@ -149,9 +150,10 @@ public class X_A_RegistrationProduct extends PO implements I_A_RegistrationProdu */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_A_RegistrationValue.java b/base/src/org/compiere/model/X_A_RegistrationValue.java index 54ed596635..3844f5120c 100644 --- a/base/src/org/compiere/model/X_A_RegistrationValue.java +++ b/base/src/org/compiere/model/X_A_RegistrationValue.java @@ -96,9 +96,10 @@ public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, */ public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) { - if (A_RegistrationAttribute_ID < 1) - throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + if (A_RegistrationAttribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); } /** Get Registration Attribute. @@ -142,9 +143,10 @@ public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, */ public void setA_Registration_ID (int A_Registration_ID) { - if (A_Registration_ID < 1) - throw new IllegalArgumentException ("A_Registration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); + if (A_Registration_ID < 1) + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); } /** Get Registration. @@ -181,8 +183,6 @@ public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_B_Bid.java b/base/src/org/compiere/model/X_B_Bid.java index 1e8f41b879..86a27cdef9 100644 --- a/base/src/org/compiere/model/X_B_Bid.java +++ b/base/src/org/compiere/model/X_B_Bid.java @@ -99,9 +99,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -121,9 +122,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent */ public void setB_Bid_ID (int B_Bid_ID) { - if (B_Bid_ID < 1) - throw new IllegalArgumentException ("B_Bid_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_Bid_ID, Integer.valueOf(B_Bid_ID)); + if (B_Bid_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_Bid_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_Bid_ID, Integer.valueOf(B_Bid_ID)); } /** Get Bid. @@ -159,9 +161,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent */ public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) { - if (B_BuyerFunds_ID < 1) - throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); - set_Value (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); + if (B_BuyerFunds_ID < 1) + set_Value (COLUMNNAME_B_BuyerFunds_ID, null); + else + set_Value (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); } /** Get Buyer Funds. @@ -197,9 +200,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent */ public void setB_Topic_ID (int B_Topic_ID) { - if (B_Topic_ID < 1) - throw new IllegalArgumentException ("B_Topic_ID is mandatory."); - set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + if (B_Topic_ID < 1) + set_Value (COLUMNNAME_B_Topic_ID, null); + else + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); } /** Get Topic. @@ -240,8 +244,6 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_B_BidComment.java b/base/src/org/compiere/model/X_B_BidComment.java index bc9da6996f..f354c4c11e 100644 --- a/base/src/org/compiere/model/X_B_BidComment.java +++ b/base/src/org/compiere/model/X_B_BidComment.java @@ -96,9 +96,10 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -118,9 +119,10 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent */ public void setB_BidComment_ID (int B_BidComment_ID) { - if (B_BidComment_ID < 1) - throw new IllegalArgumentException ("B_BidComment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_BidComment_ID, Integer.valueOf(B_BidComment_ID)); + if (B_BidComment_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_BidComment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_BidComment_ID, Integer.valueOf(B_BidComment_ID)); } /** Get Bid Comment. @@ -156,9 +158,10 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent */ public void setB_Topic_ID (int B_Topic_ID) { - if (B_Topic_ID < 1) - throw new IllegalArgumentException ("B_Topic_ID is mandatory."); - set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + if (B_Topic_ID < 1) + set_Value (COLUMNNAME_B_Topic_ID, null); + else + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); } /** Get Topic. @@ -178,8 +181,6 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent */ public void setTextMsg (String TextMsg) { - if (TextMsg == null) - throw new IllegalArgumentException ("TextMsg is mandatory."); set_Value (COLUMNNAME_TextMsg, TextMsg); } diff --git a/base/src/org/compiere/model/X_B_Buyer.java b/base/src/org/compiere/model/X_B_Buyer.java index 8518a801e7..6f3bf86dbe 100644 --- a/base/src/org/compiere/model/X_B_Buyer.java +++ b/base/src/org/compiere/model/X_B_Buyer.java @@ -97,9 +97,10 @@ public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -136,8 +137,6 @@ public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -163,8 +162,6 @@ public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent */ public void setValidTo (Timestamp ValidTo) { - if (ValidTo == null) - throw new IllegalArgumentException ("ValidTo is mandatory."); set_Value (COLUMNNAME_ValidTo, ValidTo); } diff --git a/base/src/org/compiere/model/X_B_BuyerFunds.java b/base/src/org/compiere/model/X_B_BuyerFunds.java index a7f7904390..d99ff23e28 100644 --- a/base/src/org/compiere/model/X_B_BuyerFunds.java +++ b/base/src/org/compiere/model/X_B_BuyerFunds.java @@ -99,9 +99,10 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -129,9 +130,10 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent */ public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) { - if (B_BuyerFunds_ID < 1) - throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); + if (B_BuyerFunds_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_BuyerFunds_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); } /** Get Buyer Funds. @@ -151,8 +153,6 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent */ public void setCommittedAmt (BigDecimal CommittedAmt) { - if (CommittedAmt == null) - throw new IllegalArgumentException ("CommittedAmt is mandatory."); set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); } @@ -251,8 +251,6 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent */ public void setNonCommittedAmt (BigDecimal NonCommittedAmt) { - if (NonCommittedAmt == null) - throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); } diff --git a/base/src/org/compiere/model/X_B_Offer.java b/base/src/org/compiere/model/X_B_Offer.java index efa291c558..7441548e94 100644 --- a/base/src/org/compiere/model/X_B_Offer.java +++ b/base/src/org/compiere/model/X_B_Offer.java @@ -99,9 +99,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -121,9 +122,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent */ public void setB_Offer_ID (int B_Offer_ID) { - if (B_Offer_ID < 1) - throw new IllegalArgumentException ("B_Offer_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_Offer_ID, Integer.valueOf(B_Offer_ID)); + if (B_Offer_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_Offer_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_Offer_ID, Integer.valueOf(B_Offer_ID)); } /** Get Offer. @@ -159,9 +161,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent */ public void setB_SellerFunds_ID (int B_SellerFunds_ID) { - if (B_SellerFunds_ID < 1) - throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); - set_Value (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); + if (B_SellerFunds_ID < 1) + set_Value (COLUMNNAME_B_SellerFunds_ID, null); + else + set_Value (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); } /** Get Seller Funds. @@ -197,9 +200,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent */ public void setB_Topic_ID (int B_Topic_ID) { - if (B_Topic_ID < 1) - throw new IllegalArgumentException ("B_Topic_ID is mandatory."); - set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + if (B_Topic_ID < 1) + set_Value (COLUMNNAME_B_Topic_ID, null); + else + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); } /** Get Topic. @@ -240,8 +244,6 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_B_Seller.java b/base/src/org/compiere/model/X_B_Seller.java index 6efeb8142b..ce3fcdbffc 100644 --- a/base/src/org/compiere/model/X_B_Seller.java +++ b/base/src/org/compiere/model/X_B_Seller.java @@ -98,9 +98,10 @@ public class X_B_Seller extends PO implements I_B_Seller, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -161,8 +162,6 @@ public class X_B_Seller extends PO implements I_B_Seller, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -188,8 +187,6 @@ public class X_B_Seller extends PO implements I_B_Seller, I_Persistent */ public void setValidTo (Timestamp ValidTo) { - if (ValidTo == null) - throw new IllegalArgumentException ("ValidTo is mandatory."); set_Value (COLUMNNAME_ValidTo, ValidTo); } diff --git a/base/src/org/compiere/model/X_B_SellerFunds.java b/base/src/org/compiere/model/X_B_SellerFunds.java index a3babf558c..71f4de9489 100644 --- a/base/src/org/compiere/model/X_B_SellerFunds.java +++ b/base/src/org/compiere/model/X_B_SellerFunds.java @@ -99,9 +99,10 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -129,9 +130,10 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent */ public void setB_SellerFunds_ID (int B_SellerFunds_ID) { - if (B_SellerFunds_ID < 1) - throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); + if (B_SellerFunds_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_SellerFunds_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); } /** Get Seller Funds. @@ -151,8 +153,6 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent */ public void setCommittedAmt (BigDecimal CommittedAmt) { - if (CommittedAmt == null) - throw new IllegalArgumentException ("CommittedAmt is mandatory."); set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); } @@ -251,8 +251,6 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent */ public void setNonCommittedAmt (BigDecimal NonCommittedAmt) { - if (NonCommittedAmt == null) - throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); } diff --git a/base/src/org/compiere/model/X_B_Topic.java b/base/src/org/compiere/model/X_B_Topic.java index 3dd5c431a4..8c71efaee3 100644 --- a/base/src/org/compiere/model/X_B_Topic.java +++ b/base/src/org/compiere/model/X_B_Topic.java @@ -104,9 +104,10 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent */ public void setB_TopicCategory_ID (int B_TopicCategory_ID) { - if (B_TopicCategory_ID < 1) - throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); + if (B_TopicCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); } /** Get Topic Category. @@ -126,9 +127,10 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent */ public void setB_Topic_ID (int B_Topic_ID) { - if (B_Topic_ID < 1) - throw new IllegalArgumentException ("B_Topic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + if (B_Topic_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_Topic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); } /** Get Topic. @@ -164,9 +166,10 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent */ public void setB_TopicType_ID (int B_TopicType_ID) { - if (B_TopicType_ID < 1) - throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + if (B_TopicType_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); } /** Get Topic Type. @@ -184,8 +187,6 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent @param DecisionDate Decision date */ public void setDecisionDate (Timestamp DecisionDate) { - if (DecisionDate == null) - throw new IllegalArgumentException ("DecisionDate is mandatory."); set_Value (COLUMNNAME_DecisionDate, DecisionDate); } @@ -219,8 +220,6 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -262,8 +261,6 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -363,8 +360,6 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent @param TopicAction Topic Action */ public void setTopicAction (String TopicAction) { - if (TopicAction == null) - throw new IllegalArgumentException ("TopicAction is mandatory."); set_Value (COLUMNNAME_TopicAction, TopicAction); } @@ -379,8 +374,6 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent @param TopicStatus Topic Status */ public void setTopicStatus (String TopicStatus) { - if (TopicStatus == null) - throw new IllegalArgumentException ("TopicStatus is mandatory."); set_Value (COLUMNNAME_TopicStatus, TopicStatus); } diff --git a/base/src/org/compiere/model/X_B_TopicCategory.java b/base/src/org/compiere/model/X_B_TopicCategory.java index be0a904fd8..760ed9bba2 100644 --- a/base/src/org/compiere/model/X_B_TopicCategory.java +++ b/base/src/org/compiere/model/X_B_TopicCategory.java @@ -80,9 +80,10 @@ public class X_B_TopicCategory extends PO implements I_B_TopicCategory, I_Persis */ public void setB_TopicCategory_ID (int B_TopicCategory_ID) { - if (B_TopicCategory_ID < 1) - throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); + if (B_TopicCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); } /** Get Topic Category. @@ -118,9 +119,10 @@ public class X_B_TopicCategory extends PO implements I_B_TopicCategory, I_Persis */ public void setB_TopicType_ID (int B_TopicType_ID) { - if (B_TopicType_ID < 1) - throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + if (B_TopicType_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); } /** Get Topic Type. @@ -157,8 +159,6 @@ public class X_B_TopicCategory extends PO implements I_B_TopicCategory, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_B_TopicType.java b/base/src/org/compiere/model/X_B_TopicType.java index 6e29cca53a..976d6d0d66 100644 --- a/base/src/org/compiere/model/X_B_TopicType.java +++ b/base/src/org/compiere/model/X_B_TopicType.java @@ -81,8 +81,6 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent @param AuctionType Auction Type */ public void setAuctionType (String AuctionType) { - if (AuctionType == null) - throw new IllegalArgumentException ("AuctionType is mandatory."); set_Value (COLUMNNAME_AuctionType, AuctionType); } @@ -99,9 +97,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent */ public void setB_TopicType_ID (int B_TopicType_ID) { - if (B_TopicType_ID < 1) - throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + if (B_TopicType_ID < 1) + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); } /** Get Topic Type. @@ -171,9 +170,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -209,9 +209,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -231,9 +232,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent */ public void setM_ProductMember_ID (int M_ProductMember_ID) { - if (M_ProductMember_ID < 1) - throw new IllegalArgumentException ("M_ProductMember_ID is mandatory."); - set_Value (COLUMNNAME_M_ProductMember_ID, Integer.valueOf(M_ProductMember_ID)); + if (M_ProductMember_ID < 1) + set_Value (COLUMNNAME_M_ProductMember_ID, null); + else + set_Value (COLUMNNAME_M_ProductMember_ID, Integer.valueOf(M_ProductMember_ID)); } /** Get Membership. @@ -253,8 +255,6 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_AccessContainer.java b/base/src/org/compiere/model/X_CM_AccessContainer.java index 0cb5145a54..c303a7c5c3 100644 --- a/base/src/org/compiere/model/X_CM_AccessContainer.java +++ b/base/src/org/compiere/model/X_CM_AccessContainer.java @@ -94,9 +94,10 @@ public class X_CM_AccessContainer extends PO implements I_CM_AccessContainer, I_ */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @@ -132,9 +133,10 @@ public class X_CM_AccessContainer extends PO implements I_CM_AccessContainer, I_ */ public void setCM_Container_ID (int CM_Container_ID) { - if (CM_Container_ID < 1) - throw new IllegalArgumentException ("CM_Container_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + if (CM_Container_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); } /** Get Web Container. diff --git a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java index 064ba8468e..413fb9e3b3 100644 --- a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java +++ b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java @@ -94,9 +94,10 @@ public class X_CM_AccessListBPGroup extends PO implements I_CM_AccessListBPGroup */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. @@ -132,9 +133,10 @@ public class X_CM_AccessListBPGroup extends PO implements I_CM_AccessListBPGroup */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. diff --git a/base/src/org/compiere/model/X_CM_AccessListRole.java b/base/src/org/compiere/model/X_CM_AccessListRole.java index 0fc027b7e1..ff060755cb 100644 --- a/base/src/org/compiere/model/X_CM_AccessListRole.java +++ b/base/src/org/compiere/model/X_CM_AccessListRole.java @@ -94,9 +94,10 @@ public class X_CM_AccessListRole extends PO implements I_CM_AccessListRole, I_Pe */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -132,9 +133,10 @@ public class X_CM_AccessListRole extends PO implements I_CM_AccessListRole, I_Pe */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. diff --git a/base/src/org/compiere/model/X_CM_AccessMedia.java b/base/src/org/compiere/model/X_CM_AccessMedia.java index d16c8c6a09..804174fb05 100644 --- a/base/src/org/compiere/model/X_CM_AccessMedia.java +++ b/base/src/org/compiere/model/X_CM_AccessMedia.java @@ -94,9 +94,10 @@ public class X_CM_AccessMedia extends PO implements I_CM_AccessMedia, I_Persiste */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @@ -132,9 +133,10 @@ public class X_CM_AccessMedia extends PO implements I_CM_AccessMedia, I_Persiste */ public void setCM_Media_ID (int CM_Media_ID) { - if (CM_Media_ID < 1) - throw new IllegalArgumentException ("CM_Media_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + if (CM_Media_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); } /** Get Media Item. diff --git a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java index 259b6efc2d..092d52ed37 100644 --- a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java +++ b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java @@ -94,9 +94,10 @@ public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @@ -132,9 +133,10 @@ public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel */ public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) { - if (CM_NewsChannel_ID < 1) - throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + if (CM_NewsChannel_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); } /** Get News Channel. diff --git a/base/src/org/compiere/model/X_CM_AccessProfile.java b/base/src/org/compiere/model/X_CM_AccessProfile.java index 7e0edcbc8c..54e79c1670 100644 --- a/base/src/org/compiere/model/X_CM_AccessProfile.java +++ b/base/src/org/compiere/model/X_CM_AccessProfile.java @@ -79,9 +79,10 @@ public class X_CM_AccessProfile extends PO implements I_CM_AccessProfile, I_Pers */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @@ -159,8 +160,6 @@ public class X_CM_AccessProfile extends PO implements I_CM_AccessProfile, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_AccessStage.java b/base/src/org/compiere/model/X_CM_AccessStage.java index ca00c00578..80d6a44fe6 100644 --- a/base/src/org/compiere/model/X_CM_AccessStage.java +++ b/base/src/org/compiere/model/X_CM_AccessStage.java @@ -94,9 +94,10 @@ public class X_CM_AccessStage extends PO implements I_CM_AccessStage, I_Persiste */ public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) { - if (CM_AccessProfile_ID < 1) - throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + if (CM_AccessProfile_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @@ -132,9 +133,10 @@ public class X_CM_AccessStage extends PO implements I_CM_AccessStage, I_Persiste */ public void setCM_CStage_ID (int CM_CStage_ID) { - if (CM_CStage_ID < 1) - throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + if (CM_CStage_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); } /** Get Web Container Stage. diff --git a/base/src/org/compiere/model/X_CM_Ad.java b/base/src/org/compiere/model/X_CM_Ad.java index c6cdd827c8..576391f82f 100644 --- a/base/src/org/compiere/model/X_CM_Ad.java +++ b/base/src/org/compiere/model/X_CM_Ad.java @@ -147,9 +147,10 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) { - if (CM_Ad_Cat_ID < 1) - throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + if (CM_Ad_Cat_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); } /** Get Advertisement Category. @@ -169,9 +170,10 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setCM_Ad_ID (int CM_Ad_ID) { - if (CM_Ad_ID < 1) - throw new IllegalArgumentException ("CM_Ad_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Ad_ID, Integer.valueOf(CM_Ad_ID)); + if (CM_Ad_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Ad_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Ad_ID, Integer.valueOf(CM_Ad_ID)); } /** Get Advertisement. @@ -207,9 +209,10 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setCM_Media_ID (int CM_Media_ID) { - if (CM_Media_ID < 1) - throw new IllegalArgumentException ("CM_Media_ID is mandatory."); - set_Value (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + if (CM_Media_ID < 1) + set_Value (COLUMNNAME_CM_Media_ID, null); + else + set_Value (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); } /** Get Media Item. @@ -385,8 +388,6 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -412,8 +413,6 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setStartDate (Timestamp StartDate) { - if (StartDate == null) - throw new IllegalArgumentException ("StartDate is mandatory."); set_Value (COLUMNNAME_StartDate, StartDate); } @@ -451,8 +450,6 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent */ public void setTarget_Frame (String Target_Frame) { - if (Target_Frame == null) - throw new IllegalArgumentException ("Target_Frame is mandatory."); set_Value (COLUMNNAME_Target_Frame, Target_Frame); } diff --git a/base/src/org/compiere/model/X_CM_Ad_Cat.java b/base/src/org/compiere/model/X_CM_Ad_Cat.java index 77f02c6725..963490ea5a 100644 --- a/base/src/org/compiere/model/X_CM_Ad_Cat.java +++ b/base/src/org/compiere/model/X_CM_Ad_Cat.java @@ -80,9 +80,10 @@ public class X_CM_Ad_Cat extends PO implements I_CM_Ad_Cat, I_Persistent */ public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) { - if (CM_Ad_Cat_ID < 1) - throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + if (CM_Ad_Cat_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); } /** Get Advertisement Category. @@ -118,9 +119,10 @@ public class X_CM_Ad_Cat extends PO implements I_CM_Ad_Cat, I_Persistent */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_Value (COLUMNNAME_CM_WebProject_ID, null); + else + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -174,8 +176,6 @@ public class X_CM_Ad_Cat extends PO implements I_CM_Ad_Cat, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_BroadcastServer.java b/base/src/org/compiere/model/X_CM_BroadcastServer.java index b792987ee2..22e26b7d7a 100644 --- a/base/src/org/compiere/model/X_CM_BroadcastServer.java +++ b/base/src/org/compiere/model/X_CM_BroadcastServer.java @@ -81,9 +81,10 @@ public class X_CM_BroadcastServer extends PO implements I_CM_BroadcastServer, I_ */ public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID) { - if (CM_BroadcastServer_ID < 1) - throw new IllegalArgumentException ("CM_BroadcastServer_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_BroadcastServer_ID, Integer.valueOf(CM_BroadcastServer_ID)); + if (CM_BroadcastServer_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_BroadcastServer_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_BroadcastServer_ID, Integer.valueOf(CM_BroadcastServer_ID)); } /** Get Broadcast Server. @@ -176,8 +177,6 @@ public class X_CM_BroadcastServer extends PO implements I_CM_BroadcastServer, I_ */ public void setIP_Address (String IP_Address) { - if (IP_Address == null) - throw new IllegalArgumentException ("IP_Address is mandatory."); set_Value (COLUMNNAME_IP_Address, IP_Address); } @@ -212,8 +211,6 @@ public class X_CM_BroadcastServer extends PO implements I_CM_BroadcastServer, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_CStage.java b/base/src/org/compiere/model/X_CM_CStage.java index db249bd527..e12d5f2130 100644 --- a/base/src/org/compiere/model/X_CM_CStage.java +++ b/base/src/org/compiere/model/X_CM_CStage.java @@ -92,9 +92,10 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setCM_CStage_ID (int CM_CStage_ID) { - if (CM_CStage_ID < 1) - throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + if (CM_CStage_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); } /** Get Web Container Stage. @@ -192,9 +193,10 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -239,7 +241,7 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setContainerType (String ContainerType) { - if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory"); + set_Value (COLUMNNAME_ContainerType, ContainerType); } @@ -479,8 +481,6 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setMeta_Description (String Meta_Description) { - if (Meta_Description == null) - throw new IllegalArgumentException ("Meta_Description is mandatory."); set_Value (COLUMNNAME_Meta_Description, Meta_Description); } @@ -498,8 +498,6 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setMeta_Keywords (String Meta_Keywords) { - if (Meta_Keywords == null) - throw new IllegalArgumentException ("Meta_Keywords is mandatory."); set_Value (COLUMNNAME_Meta_Keywords, Meta_Keywords); } @@ -568,8 +566,6 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -595,8 +591,6 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setNotice (String Notice) { - if (Notice == null) - throw new IllegalArgumentException ("Notice is mandatory."); set_Value (COLUMNNAME_Notice, Notice); } @@ -655,8 +649,6 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent */ public void setRelativeURL (String RelativeURL) { - if (RelativeURL == null) - throw new IllegalArgumentException ("RelativeURL is mandatory."); set_Value (COLUMNNAME_RelativeURL, RelativeURL); } diff --git a/base/src/org/compiere/model/X_CM_CStageTTable.java b/base/src/org/compiere/model/X_CM_CStageTTable.java index d547da4a3b..31e7f56159 100644 --- a/base/src/org/compiere/model/X_CM_CStageTTable.java +++ b/base/src/org/compiere/model/X_CM_CStageTTable.java @@ -97,9 +97,10 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis */ public void setCM_CStage_ID (int CM_CStage_ID) { - if (CM_CStage_ID < 1) - throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + if (CM_CStage_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); } /** Get Web Container Stage. @@ -119,9 +120,10 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis */ public void setCM_CStageTTable_ID (int CM_CStageTTable_ID) { - if (CM_CStageTTable_ID < 1) - throw new IllegalArgumentException ("CM_CStageTTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStageTTable_ID, Integer.valueOf(CM_CStageTTable_ID)); + if (CM_CStageTTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStageTTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStageTTable_ID, Integer.valueOf(CM_CStageTTable_ID)); } /** Get Stage T.Table. @@ -157,9 +159,10 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis */ public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) { - if (CM_TemplateTable_ID < 1) - throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + if (CM_TemplateTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); } /** Get Template Table. @@ -196,8 +199,6 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -240,7 +241,7 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_CM_CStage_Element.java b/base/src/org/compiere/model/X_CM_CStage_Element.java index 81254475a2..215fe5ef5c 100644 --- a/base/src/org/compiere/model/X_CM_CStage_Element.java +++ b/base/src/org/compiere/model/X_CM_CStage_Element.java @@ -80,9 +80,10 @@ public class X_CM_CStage_Element extends PO implements I_CM_CStage_Element, I_Pe */ public void setCM_CStage_Element_ID (int CM_CStage_Element_ID) { - if (CM_CStage_Element_ID < 1) - throw new IllegalArgumentException ("CM_CStage_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStage_Element_ID, Integer.valueOf(CM_CStage_Element_ID)); + if (CM_CStage_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStage_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStage_Element_ID, Integer.valueOf(CM_CStage_Element_ID)); } /** Get Container Stage Element. @@ -118,9 +119,10 @@ public class X_CM_CStage_Element extends PO implements I_CM_CStage_Element, I_Pe */ public void setCM_CStage_ID (int CM_CStage_ID) { - if (CM_CStage_ID < 1) - throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + if (CM_CStage_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); } /** Get Web Container Stage. @@ -215,8 +217,6 @@ public class X_CM_CStage_Element extends PO implements I_CM_CStage_Element, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_Chat.java b/base/src/org/compiere/model/X_CM_Chat.java index d80b6b168b..6e48f8f517 100644 --- a/base/src/org/compiere/model/X_CM_Chat.java +++ b/base/src/org/compiere/model/X_CM_Chat.java @@ -98,9 +98,10 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -120,9 +121,10 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent */ public void setCM_Chat_ID (int CM_Chat_ID) { - if (CM_Chat_ID < 1) - throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + if (CM_Chat_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); } /** Get Chat. @@ -191,7 +193,7 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent */ public void setConfidentialType (String ConfidentialType) { - if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); } @@ -209,8 +211,6 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -262,9 +262,10 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_CM_ChatEntry.java b/base/src/org/compiere/model/X_CM_ChatEntry.java index 3dadf7f652..efe3c139d2 100644 --- a/base/src/org/compiere/model/X_CM_ChatEntry.java +++ b/base/src/org/compiere/model/X_CM_ChatEntry.java @@ -122,8 +122,6 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent */ public void setCharacterData (String CharacterData) { - if (CharacterData == null) - throw new IllegalArgumentException ("CharacterData is mandatory."); set_ValueNoCheck (COLUMNNAME_CharacterData, CharacterData); } @@ -149,7 +147,7 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent */ public void setChatEntryType (String ChatEntryType) { - if (ChatEntryType == null) throw new IllegalArgumentException ("ChatEntryType is mandatory"); + set_Value (COLUMNNAME_ChatEntryType, ChatEntryType); } @@ -190,9 +188,10 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent */ public void setCM_ChatEntry_ID (int CM_ChatEntry_ID) { - if (CM_ChatEntry_ID < 1) - throw new IllegalArgumentException ("CM_ChatEntry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_ChatEntry_ID, Integer.valueOf(CM_ChatEntry_ID)); + if (CM_ChatEntry_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_ChatEntry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_ChatEntry_ID, Integer.valueOf(CM_ChatEntry_ID)); } /** Get Chat Entry. @@ -259,9 +258,10 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent */ public void setCM_Chat_ID (int CM_Chat_ID) { - if (CM_Chat_ID < 1) - throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + if (CM_Chat_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); } /** Get Chat. @@ -291,7 +291,7 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent */ public void setConfidentialType (String ConfidentialType) { - if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); } diff --git a/base/src/org/compiere/model/X_CM_ChatType.java b/base/src/org/compiere/model/X_CM_ChatType.java index cbab3fdd8d..571735202a 100644 --- a/base/src/org/compiere/model/X_CM_ChatType.java +++ b/base/src/org/compiere/model/X_CM_ChatType.java @@ -96,9 +96,10 @@ public class X_CM_ChatType extends PO implements I_CM_ChatType, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -118,9 +119,10 @@ public class X_CM_ChatType extends PO implements I_CM_ChatType, I_Persistent */ public void setCM_ChatType_ID (int CM_ChatType_ID) { - if (CM_ChatType_ID < 1) - throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); + if (CM_ChatType_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); } /** Get Chat Type. @@ -183,8 +185,6 @@ public class X_CM_ChatType extends PO implements I_CM_ChatType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java index 80c160afb2..5284c6a5d6 100644 --- a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java @@ -95,9 +95,10 @@ public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -133,9 +134,10 @@ public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Pe */ public void setCM_ChatType_ID (int CM_ChatType_ID) { - if (CM_ChatType_ID < 1) - throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); + if (CM_ChatType_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); } /** Get Chat Type. diff --git a/base/src/org/compiere/model/X_CM_ChatUpdate.java b/base/src/org/compiere/model/X_CM_ChatUpdate.java index 32c0609099..2a89cc9076 100644 --- a/base/src/org/compiere/model/X_CM_ChatUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatUpdate.java @@ -95,9 +95,10 @@ public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -133,9 +134,10 @@ public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent */ public void setCM_Chat_ID (int CM_Chat_ID) { - if (CM_Chat_ID < 1) - throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + if (CM_Chat_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); } /** Get Chat. diff --git a/base/src/org/compiere/model/X_CM_Container.java b/base/src/org/compiere/model/X_CM_Container.java index 20daace340..05356aca1d 100644 --- a/base/src/org/compiere/model/X_CM_Container.java +++ b/base/src/org/compiere/model/X_CM_Container.java @@ -90,9 +90,10 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setCM_Container_ID (int CM_Container_ID) { - if (CM_Container_ID < 1) - throw new IllegalArgumentException ("CM_Container_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + if (CM_Container_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); } /** Get Web Container. @@ -151,9 +152,10 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setCM_Template_ID (int CM_Template_ID) { - if (CM_Template_ID < 1) - throw new IllegalArgumentException ("CM_Template_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + if (CM_Template_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); } /** Get Template. @@ -189,9 +191,10 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -236,7 +239,7 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setContainerType (String ContainerType) { - if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory"); + set_Value (COLUMNNAME_ContainerType, ContainerType); } @@ -452,8 +455,6 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setMeta_Description (String Meta_Description) { - if (Meta_Description == null) - throw new IllegalArgumentException ("Meta_Description is mandatory."); set_Value (COLUMNNAME_Meta_Description, Meta_Description); } @@ -471,8 +472,6 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setMeta_Keywords (String Meta_Keywords) { - if (Meta_Keywords == null) - throw new IllegalArgumentException ("Meta_Keywords is mandatory."); set_Value (COLUMNNAME_Meta_Keywords, Meta_Keywords); } @@ -541,8 +540,6 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -568,8 +565,6 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent */ public void setNotice (String Notice) { - if (Notice == null) - throw new IllegalArgumentException ("Notice is mandatory."); set_Value (COLUMNNAME_Notice, Notice); } diff --git a/base/src/org/compiere/model/X_CM_ContainerTTable.java b/base/src/org/compiere/model/X_CM_ContainerTTable.java index cca5e4b623..b88315f8fa 100644 --- a/base/src/org/compiere/model/X_CM_ContainerTTable.java +++ b/base/src/org/compiere/model/X_CM_ContainerTTable.java @@ -97,9 +97,10 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ */ public void setCM_Container_ID (int CM_Container_ID) { - if (CM_Container_ID < 1) - throw new IllegalArgumentException ("CM_Container_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + if (CM_Container_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); } /** Get Web Container. @@ -119,9 +120,10 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ */ public void setCM_ContainerTTable_ID (int CM_ContainerTTable_ID) { - if (CM_ContainerTTable_ID < 1) - throw new IllegalArgumentException ("CM_ContainerTTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_ContainerTTable_ID, Integer.valueOf(CM_ContainerTTable_ID)); + if (CM_ContainerTTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_ContainerTTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_ContainerTTable_ID, Integer.valueOf(CM_ContainerTTable_ID)); } /** Get Container T.Table. @@ -157,9 +159,10 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ */ public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) { - if (CM_TemplateTable_ID < 1) - throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + if (CM_TemplateTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); } /** Get Template Table. @@ -196,8 +199,6 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -240,7 +241,7 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_CM_Container_Element.java b/base/src/org/compiere/model/X_CM_Container_Element.java index 24d4ead139..b2e94e940e 100644 --- a/base/src/org/compiere/model/X_CM_Container_Element.java +++ b/base/src/org/compiere/model/X_CM_Container_Element.java @@ -80,9 +80,10 @@ public class X_CM_Container_Element extends PO implements I_CM_Container_Element */ public void setCM_Container_Element_ID (int CM_Container_Element_ID) { - if (CM_Container_Element_ID < 1) - throw new IllegalArgumentException ("CM_Container_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_Element_ID, Integer.valueOf(CM_Container_Element_ID)); + if (CM_Container_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_Element_ID, Integer.valueOf(CM_Container_Element_ID)); } /** Get Container Element. @@ -118,9 +119,10 @@ public class X_CM_Container_Element extends PO implements I_CM_Container_Element */ public void setCM_Container_ID (int CM_Container_ID) { - if (CM_Container_ID < 1) - throw new IllegalArgumentException ("CM_Container_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + if (CM_Container_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); } /** Get Web Container. @@ -215,8 +217,6 @@ public class X_CM_Container_Element extends PO implements I_CM_Container_Element */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_Container_URL.java b/base/src/org/compiere/model/X_CM_Container_URL.java index 9d2c73b472..da827a9445 100644 --- a/base/src/org/compiere/model/X_CM_Container_URL.java +++ b/base/src/org/compiere/model/X_CM_Container_URL.java @@ -82,8 +82,6 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers */ public void setChecked (Timestamp Checked) { - if (Checked == null) - throw new IllegalArgumentException ("Checked is mandatory."); set_Value (COLUMNNAME_Checked, Checked); } @@ -117,9 +115,10 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers */ public void setCM_Container_ID (int CM_Container_ID) { - if (CM_Container_ID < 1) - throw new IllegalArgumentException ("CM_Container_ID is mandatory."); - set_Value (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + if (CM_Container_ID < 1) + set_Value (COLUMNNAME_CM_Container_ID, null); + else + set_Value (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); } /** Get Web Container. @@ -139,9 +138,10 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers */ public void setCM_Container_URL_ID (int CM_Container_URL_ID) { - if (CM_Container_URL_ID < 1) - throw new IllegalArgumentException ("CM_Container_URL_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Container_URL_ID, Integer.valueOf(CM_Container_URL_ID)); + if (CM_Container_URL_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Container_URL_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Container_URL_ID, Integer.valueOf(CM_Container_URL_ID)); } /** Get Container URL. @@ -161,8 +161,6 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers */ public void setLast_Result (String Last_Result) { - if (Last_Result == null) - throw new IllegalArgumentException ("Last_Result is mandatory."); set_Value (COLUMNNAME_Last_Result, Last_Result); } @@ -180,8 +178,6 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers */ public void setStatus (String Status) { - if (Status == null) - throw new IllegalArgumentException ("Status is mandatory."); set_Value (COLUMNNAME_Status, Status); } diff --git a/base/src/org/compiere/model/X_CM_Media.java b/base/src/org/compiere/model/X_CM_Media.java index 00615df530..e9d8c65bdf 100644 --- a/base/src/org/compiere/model/X_CM_Media.java +++ b/base/src/org/compiere/model/X_CM_Media.java @@ -104,9 +104,10 @@ public class X_CM_Media extends PO implements I_CM_Media, I_Persistent */ public void setCM_Media_ID (int CM_Media_ID) { - if (CM_Media_ID < 1) - throw new IllegalArgumentException ("CM_Media_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + if (CM_Media_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); } /** Get Media Item. @@ -142,9 +143,10 @@ public class X_CM_Media extends PO implements I_CM_Media, I_Persistent */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -282,8 +284,6 @@ public class X_CM_Media extends PO implements I_CM_Media, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_MediaDeploy.java b/base/src/org/compiere/model/X_CM_MediaDeploy.java index b6bc835e72..15f0fa8691 100644 --- a/base/src/org/compiere/model/X_CM_MediaDeploy.java +++ b/base/src/org/compiere/model/X_CM_MediaDeploy.java @@ -81,9 +81,10 @@ public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persiste */ public void setCM_MediaDeploy_ID (int CM_MediaDeploy_ID) { - if (CM_MediaDeploy_ID < 1) - throw new IllegalArgumentException ("CM_MediaDeploy_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_MediaDeploy_ID, Integer.valueOf(CM_MediaDeploy_ID)); + if (CM_MediaDeploy_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_MediaDeploy_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_MediaDeploy_ID, Integer.valueOf(CM_MediaDeploy_ID)); } /** Get Media Deploy. @@ -119,9 +120,10 @@ public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persiste */ public void setCM_Media_ID (int CM_Media_ID) { - if (CM_Media_ID < 1) - throw new IllegalArgumentException ("CM_Media_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + if (CM_Media_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); } /** Get Media Item. @@ -157,9 +159,10 @@ public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persiste */ public void setCM_Media_Server_ID (int CM_Media_Server_ID) { - if (CM_Media_Server_ID < 1) - throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); + if (CM_Media_Server_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); } /** Get Media Server. diff --git a/base/src/org/compiere/model/X_CM_Media_Server.java b/base/src/org/compiere/model/X_CM_Media_Server.java index f093dfa5ff..39a7789e32 100644 --- a/base/src/org/compiere/model/X_CM_Media_Server.java +++ b/base/src/org/compiere/model/X_CM_Media_Server.java @@ -81,9 +81,10 @@ public class X_CM_Media_Server extends PO implements I_CM_Media_Server, I_Persis */ public void setCM_Media_Server_ID (int CM_Media_Server_ID) { - if (CM_Media_Server_ID < 1) - throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); + if (CM_Media_Server_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); } /** Get Media Server. @@ -119,9 +120,10 @@ public class X_CM_Media_Server extends PO implements I_CM_Media_Server, I_Persis */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -233,8 +235,6 @@ public class X_CM_Media_Server extends PO implements I_CM_Media_Server, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_NewsChannel.java b/base/src/org/compiere/model/X_CM_NewsChannel.java index f27fbc1e71..ab43218088 100644 --- a/base/src/org/compiere/model/X_CM_NewsChannel.java +++ b/base/src/org/compiere/model/X_CM_NewsChannel.java @@ -101,9 +101,10 @@ public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persiste */ public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) { - if (CM_NewsChannel_ID < 1) - throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + if (CM_NewsChannel_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); } /** Get News Channel. @@ -139,9 +140,10 @@ public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persiste */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_Value (COLUMNNAME_CM_WebProject_ID, null); + else + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -161,8 +163,6 @@ public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persiste */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -214,8 +214,6 @@ public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_NewsItem.java b/base/src/org/compiere/model/X_CM_NewsItem.java index d06e3de9b3..0a49f23e1d 100644 --- a/base/src/org/compiere/model/X_CM_NewsItem.java +++ b/base/src/org/compiere/model/X_CM_NewsItem.java @@ -112,9 +112,10 @@ public class X_CM_NewsItem extends PO implements I_CM_NewsItem, I_Persistent */ public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) { - if (CM_NewsChannel_ID < 1) - throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); - set_Value (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + if (CM_NewsChannel_ID < 1) + set_Value (COLUMNNAME_CM_NewsChannel_ID, null); + else + set_Value (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); } /** Get News Channel. @@ -134,9 +135,10 @@ public class X_CM_NewsItem extends PO implements I_CM_NewsItem, I_Persistent */ public void setCM_NewsItem_ID (int CM_NewsItem_ID) { - if (CM_NewsItem_ID < 1) - throw new IllegalArgumentException ("CM_NewsItem_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_NewsItem_ID, Integer.valueOf(CM_NewsItem_ID)); + if (CM_NewsItem_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_NewsItem_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_NewsItem_ID, Integer.valueOf(CM_NewsItem_ID)); } /** Get News Item / Article. diff --git a/base/src/org/compiere/model/X_CM_Template.java b/base/src/org/compiere/model/X_CM_Template.java index fe4183e99f..e3ade72630 100644 --- a/base/src/org/compiere/model/X_CM_Template.java +++ b/base/src/org/compiere/model/X_CM_Template.java @@ -85,9 +85,10 @@ public class X_CM_Template extends PO implements I_CM_Template, I_Persistent */ public void setCM_Template_ID (int CM_Template_ID) { - if (CM_Template_ID < 1) - throw new IllegalArgumentException ("CM_Template_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + if (CM_Template_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); } /** Get Template. @@ -317,8 +318,6 @@ public class X_CM_Template extends PO implements I_CM_Template, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -382,8 +381,6 @@ public class X_CM_Template extends PO implements I_CM_Template, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_CM_TemplateTable.java b/base/src/org/compiere/model/X_CM_TemplateTable.java index c2946f5b38..cba65a0c29 100644 --- a/base/src/org/compiere/model/X_CM_TemplateTable.java +++ b/base/src/org/compiere/model/X_CM_TemplateTable.java @@ -97,9 +97,10 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -135,9 +136,10 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers */ public void setCM_Template_ID (int CM_Template_ID) { - if (CM_Template_ID < 1) - throw new IllegalArgumentException ("CM_Template_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + if (CM_Template_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); } /** Get Template. @@ -157,9 +159,10 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers */ public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) { - if (CM_TemplateTable_ID < 1) - throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + if (CM_TemplateTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); } /** Get Template Table. @@ -196,8 +199,6 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_Template_Ad_Cat.java b/base/src/org/compiere/model/X_CM_Template_Ad_Cat.java index 6993ac9fff..5e399821b5 100644 --- a/base/src/org/compiere/model/X_CM_Template_Ad_Cat.java +++ b/base/src/org/compiere/model/X_CM_Template_Ad_Cat.java @@ -96,9 +96,10 @@ public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_ */ public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) { - if (CM_Ad_Cat_ID < 1) - throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); - set_Value (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + if (CM_Ad_Cat_ID < 1) + set_Value (COLUMNNAME_CM_Ad_Cat_ID, null); + else + set_Value (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); } /** Get Advertisement Category. @@ -134,9 +135,10 @@ public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_ */ public void setCM_Template_ID (int CM_Template_ID) { - if (CM_Template_ID < 1) - throw new IllegalArgumentException ("CM_Template_ID is mandatory."); - set_Value (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + if (CM_Template_ID < 1) + set_Value (COLUMNNAME_CM_Template_ID, null); + else + set_Value (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); } /** Get Template. @@ -173,8 +175,6 @@ public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_WebAccessLog.java b/base/src/org/compiere/model/X_CM_WebAccessLog.java index 8b04980f43..27a1a02e32 100644 --- a/base/src/org/compiere/model/X_CM_WebAccessLog.java +++ b/base/src/org/compiere/model/X_CM_WebAccessLog.java @@ -217,9 +217,10 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis */ public void setCM_WebAccessLog_ID (int CM_WebAccessLog_ID) { - if (CM_WebAccessLog_ID < 1) - throw new IllegalArgumentException ("CM_WebAccessLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebAccessLog_ID, Integer.valueOf(CM_WebAccessLog_ID)); + if (CM_WebAccessLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebAccessLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebAccessLog_ID, Integer.valueOf(CM_WebAccessLog_ID)); } /** Get Web Access Log. @@ -312,8 +313,6 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis */ public void setIP_Address (String IP_Address) { - if (IP_Address == null) - throw new IllegalArgumentException ("IP_Address is mandatory."); set_Value (COLUMNNAME_IP_Address, IP_Address); } @@ -339,7 +338,7 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis */ public void setLogType (String LogType) { - if (LogType == null) throw new IllegalArgumentException ("LogType is mandatory"); + set_Value (COLUMNNAME_LogType, LogType); } @@ -371,8 +370,6 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis */ public void setProtocol (String Protocol) { - if (Protocol == null) - throw new IllegalArgumentException ("Protocol is mandatory."); set_Value (COLUMNNAME_Protocol, Protocol); } @@ -439,8 +436,6 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis @param RequestType Request Type */ public void setRequestType (String RequestType) { - if (RequestType == null) - throw new IllegalArgumentException ("RequestType is mandatory."); set_Value (COLUMNNAME_RequestType, RequestType); } diff --git a/base/src/org/compiere/model/X_CM_WebProject.java b/base/src/org/compiere/model/X_CM_WebProject.java index e246462bb5..9f8508226a 100644 --- a/base/src/org/compiere/model/X_CM_WebProject.java +++ b/base/src/org/compiere/model/X_CM_WebProject.java @@ -179,9 +179,10 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -235,8 +236,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setMeta_Author (String Meta_Author) { - if (Meta_Author == null) - throw new IllegalArgumentException ("Meta_Author is mandatory."); set_Value (COLUMNNAME_Meta_Author, Meta_Author); } @@ -254,8 +253,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setMeta_Content (String Meta_Content) { - if (Meta_Content == null) - throw new IllegalArgumentException ("Meta_Content is mandatory."); set_Value (COLUMNNAME_Meta_Content, Meta_Content); } @@ -273,8 +270,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setMeta_Copyright (String Meta_Copyright) { - if (Meta_Copyright == null) - throw new IllegalArgumentException ("Meta_Copyright is mandatory."); set_Value (COLUMNNAME_Meta_Copyright, Meta_Copyright); } @@ -292,8 +287,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setMeta_Publisher (String Meta_Publisher) { - if (Meta_Publisher == null) - throw new IllegalArgumentException ("Meta_Publisher is mandatory."); set_Value (COLUMNNAME_Meta_Publisher, Meta_Publisher); } @@ -311,8 +304,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setMeta_RobotsTag (String Meta_RobotsTag) { - if (Meta_RobotsTag == null) - throw new IllegalArgumentException ("Meta_RobotsTag is mandatory."); set_Value (COLUMNNAME_Meta_RobotsTag, Meta_RobotsTag); } @@ -330,8 +321,6 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_WebProject_Domain.java b/base/src/org/compiere/model/X_CM_WebProject_Domain.java index 26fe96882b..29e1b96e09 100644 --- a/base/src/org/compiere/model/X_CM_WebProject_Domain.java +++ b/base/src/org/compiere/model/X_CM_WebProject_Domain.java @@ -120,9 +120,10 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain */ public void setCM_WebProject_Domain_ID (int CM_WebProject_Domain_ID) { - if (CM_WebProject_Domain_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_Domain_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_Domain_ID, Integer.valueOf(CM_WebProject_Domain_ID)); + if (CM_WebProject_Domain_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_Domain_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_Domain_ID, Integer.valueOf(CM_WebProject_Domain_ID)); } /** Get WebProject Domain. @@ -158,9 +159,10 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain */ public void setCM_WebProject_ID (int CM_WebProject_ID) { - if (CM_WebProject_ID < 1) - throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + if (CM_WebProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); } /** Get Web Project. @@ -197,8 +199,6 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain */ public void setFQDN (String FQDN) { - if (FQDN == null) - throw new IllegalArgumentException ("FQDN is mandatory."); set_Value (COLUMNNAME_FQDN, FQDN); } @@ -233,8 +233,6 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_CM_WikiToken.java b/base/src/org/compiere/model/X_CM_WikiToken.java index 916a0e4c40..fd58c4e228 100755 --- a/base/src/org/compiere/model/X_CM_WikiToken.java +++ b/base/src/org/compiere/model/X_CM_WikiToken.java @@ -120,9 +120,10 @@ public class X_CM_WikiToken extends PO implements I_CM_WikiToken, I_Persistent */ public void setCM_WikiToken_ID (int CM_WikiToken_ID) { - if (CM_WikiToken_ID < 1) - throw new IllegalArgumentException ("CM_WikiToken_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_CM_WikiToken_ID, Integer.valueOf(CM_WikiToken_ID)); + if (CM_WikiToken_ID < 1) + set_ValueNoCheck (COLUMNNAME_CM_WikiToken_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WikiToken_ID, Integer.valueOf(CM_WikiToken_ID)); } /** Get Wiki Token. @@ -176,8 +177,6 @@ public class X_CM_WikiToken extends PO implements I_CM_WikiToken, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -230,7 +229,7 @@ public class X_CM_WikiToken extends PO implements I_CM_WikiToken, I_Persistent */ public void setTokenType (String TokenType) { - if (TokenType == null) throw new IllegalArgumentException ("TokenType is mandatory"); + set_Value (COLUMNNAME_TokenType, TokenType); } diff --git a/base/src/org/compiere/model/X_C_AcctProcessor.java b/base/src/org/compiere/model/X_C_AcctProcessor.java index c55b6f1a54..42eb5bc19a 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessor.java +++ b/base/src/org/compiere/model/X_C_AcctProcessor.java @@ -124,9 +124,10 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis */ public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) { - if (C_AcctProcessor_ID < 1) - throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); + if (C_AcctProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); } /** Get Accounting Processor. @@ -264,7 +265,7 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -302,8 +303,6 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -350,9 +349,10 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_C_AcctProcessorLog.java b/base/src/org/compiere/model/X_C_AcctProcessorLog.java index b10be0cd51..d98c10511c 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessorLog.java +++ b/base/src/org/compiere/model/X_C_AcctProcessorLog.java @@ -112,9 +112,10 @@ public class X_C_AcctProcessorLog extends PO implements I_C_AcctProcessorLog, I_ */ public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) { - if (C_AcctProcessor_ID < 1) - throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); + if (C_AcctProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); } /** Get Accounting Processor. @@ -134,9 +135,10 @@ public class X_C_AcctProcessorLog extends PO implements I_C_AcctProcessorLog, I_ */ public void setC_AcctProcessorLog_ID (int C_AcctProcessorLog_ID) { - if (C_AcctProcessorLog_ID < 1) - throw new IllegalArgumentException ("C_AcctProcessorLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctProcessorLog_ID, Integer.valueOf(C_AcctProcessorLog_ID)); + if (C_AcctProcessorLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctProcessorLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctProcessorLog_ID, Integer.valueOf(C_AcctProcessorLog_ID)); } /** Get Accounting Processor Log. diff --git a/base/src/org/compiere/model/X_C_AcctSchema.java b/base/src/org/compiere/model/X_C_AcctSchema.java index 45b0ab9c9a..32ee447788 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema.java +++ b/base/src/org/compiere/model/X_C_AcctSchema.java @@ -150,9 +150,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -188,9 +189,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -224,7 +226,7 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setCommitmentType (String CommitmentType) { - if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); + set_Value (COLUMNNAME_CommitmentType, CommitmentType); } @@ -250,7 +252,7 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setCostingLevel (String CostingLevel) { - if (CostingLevel == null) throw new IllegalArgumentException ("CostingLevel is mandatory"); + set_Value (COLUMNNAME_CostingLevel, CostingLevel); } @@ -288,7 +290,7 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setCostingMethod (String CostingMethod) { - if (CostingMethod == null) throw new IllegalArgumentException ("CostingMethod is mandatory"); + set_Value (COLUMNNAME_CostingMethod, CostingMethod); } @@ -374,7 +376,7 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setGAAP (String GAAP) { - if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory"); + set_Value (COLUMNNAME_GAAP, GAAP); } @@ -648,9 +650,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setM_CostType_ID (int M_CostType_ID) { - if (M_CostType_ID < 1) - throw new IllegalArgumentException ("M_CostType_ID is mandatory."); - set_Value (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + if (M_CostType_ID < 1) + set_Value (COLUMNNAME_M_CostType_ID, null); + else + set_Value (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); } /** Get Cost Type. @@ -670,8 +673,6 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -758,8 +759,6 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setSeparator (String Separator) { - if (Separator == null) - throw new IllegalArgumentException ("Separator is mandatory."); set_Value (COLUMNNAME_Separator, Separator); } @@ -787,7 +786,7 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent */ public void setTaxCorrectionType (String TaxCorrectionType) { - if (TaxCorrectionType == null) throw new IllegalArgumentException ("TaxCorrectionType is mandatory"); + set_Value (COLUMNNAME_TaxCorrectionType, TaxCorrectionType); } diff --git a/base/src/org/compiere/model/X_C_AcctSchema_Default.java b/base/src/org/compiere/model/X_C_AcctSchema_Default.java index f911b40b70..5722af6525 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Default.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Default.java @@ -406,9 +406,10 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. diff --git a/base/src/org/compiere/model/X_C_AcctSchema_Element.java b/base/src/org/compiere/model/X_C_AcctSchema_Element.java index 61cd189ec2..f52dfe9304 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Element.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Element.java @@ -124,9 +124,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element @param C_AcctSchema_Element_ID Acct.Schema Element */ public void setC_AcctSchema_Element_ID (int C_AcctSchema_Element_ID) { - if (C_AcctSchema_Element_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_Element_ID, Integer.valueOf(C_AcctSchema_Element_ID)); + if (C_AcctSchema_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_Element_ID, Integer.valueOf(C_AcctSchema_Element_ID)); } /** Get Acct.Schema Element. @@ -161,9 +162,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -316,9 +318,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element */ public void setC_Element_ID (int C_Element_ID) { - if (C_Element_ID < 1) - throw new IllegalArgumentException ("C_Element_ID is mandatory."); - set_Value (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + if (C_Element_ID < 1) + set_Value (COLUMNNAME_C_Element_ID, null); + else + set_Value (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); } /** Get Element. @@ -512,7 +515,7 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element */ public void setElementType (String ElementType) { - if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); + set_Value (COLUMNNAME_ElementType, ElementType); } @@ -614,8 +617,6 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -641,9 +642,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element */ public void setOrg_ID (int Org_ID) { - if (Org_ID < 1) - throw new IllegalArgumentException ("Org_ID is mandatory."); - set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + if (Org_ID < 1) + set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); } /** Get Organization. diff --git a/base/src/org/compiere/model/X_C_AcctSchema_GL.java b/base/src/org/compiere/model/X_C_AcctSchema_GL.java index b2134ddd69..0ff3b81256 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_GL.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_GL.java @@ -104,9 +104,10 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. diff --git a/base/src/org/compiere/model/X_C_Activity.java b/base/src/org/compiere/model/X_C_Activity.java index 5f0f6ece4e..01bd014085 100644 --- a/base/src/org/compiere/model/X_C_Activity.java +++ b/base/src/org/compiere/model/X_C_Activity.java @@ -79,9 +79,10 @@ public class X_C_Activity extends PO implements I_C_Activity, I_Persistent */ public void setC_Activity_ID (int C_Activity_ID) { - if (C_Activity_ID < 1) - throw new IllegalArgumentException ("C_Activity_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + if (C_Activity_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); } /** Get Activity. @@ -159,8 +160,6 @@ public class X_C_Activity extends PO implements I_C_Activity, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -186,8 +185,6 @@ public class X_C_Activity extends PO implements I_C_Activity, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_AllocationHdr.java b/base/src/org/compiere/model/X_C_AllocationHdr.java index 53c1f68b4c..40b338bddc 100644 --- a/base/src/org/compiere/model/X_C_AllocationHdr.java +++ b/base/src/org/compiere/model/X_C_AllocationHdr.java @@ -94,8 +94,6 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setApprovalAmt (BigDecimal ApprovalAmt) { - if (ApprovalAmt == null) - throw new IllegalArgumentException ("ApprovalAmt is mandatory."); set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); } @@ -116,9 +114,10 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) { - if (C_AllocationHdr_ID < 1) - throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); + if (C_AllocationHdr_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); } /** Get Allocation. @@ -154,9 +153,10 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -176,8 +176,6 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -195,8 +193,6 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_Value (COLUMNNAME_DateTrx, DateTrx); } @@ -261,7 +257,7 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -305,7 +301,7 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -323,8 +319,6 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } diff --git a/base/src/org/compiere/model/X_C_AllocationLine.java b/base/src/org/compiere/model/X_C_AllocationLine.java index 860c07fb56..d4c4c7a58b 100644 --- a/base/src/org/compiere/model/X_C_AllocationLine.java +++ b/base/src/org/compiere/model/X_C_AllocationLine.java @@ -85,8 +85,6 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers */ public void setAmount (BigDecimal Amount) { - if (Amount == null) - throw new IllegalArgumentException ("Amount is mandatory."); set_ValueNoCheck (COLUMNNAME_Amount, Amount); } @@ -123,9 +121,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers */ public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) { - if (C_AllocationHdr_ID < 1) - throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); + if (C_AllocationHdr_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); } /** Get Allocation. @@ -145,9 +144,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers */ public void setC_AllocationLine_ID (int C_AllocationLine_ID) { - if (C_AllocationLine_ID < 1) - throw new IllegalArgumentException ("C_AllocationLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, Integer.valueOf(C_AllocationLine_ID)); + if (C_AllocationLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, Integer.valueOf(C_AllocationLine_ID)); } /** Get Allocation Line. @@ -387,8 +387,6 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers */ public void setDiscountAmt (BigDecimal DiscountAmt) { - if (DiscountAmt == null) - throw new IllegalArgumentException ("DiscountAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_DiscountAmt, DiscountAmt); } @@ -453,8 +451,6 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers */ public void setWriteOffAmt (BigDecimal WriteOffAmt) { - if (WriteOffAmt == null) - throw new IllegalArgumentException ("WriteOffAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_WriteOffAmt, WriteOffAmt); } diff --git a/base/src/org/compiere/model/X_C_BP_BankAccount.java b/base/src/org/compiere/model/X_C_BP_BankAccount.java index bdad26e572..d91340bfd6 100644 --- a/base/src/org/compiere/model/X_C_BP_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BP_BankAccount.java @@ -222,8 +222,6 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers */ public void setA_Name (String A_Name) { - if (A_Name == null) - throw new IllegalArgumentException ("A_Name is mandatory."); set_Value (COLUMNNAME_A_Name, A_Name); } @@ -407,9 +405,10 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -429,9 +428,10 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers */ public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) { - if (C_BP_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BP_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); + if (C_BP_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); } /** Get Partner Bank Account. diff --git a/base/src/org/compiere/model/X_C_BP_Customer_Acct.java b/base/src/org/compiere/model/X_C_BP_Customer_Acct.java index 2bca1486a5..0eb405c2f0 100644 --- a/base/src/org/compiere/model/X_C_BP_Customer_Acct.java +++ b/base/src/org/compiere/model/X_C_BP_Customer_Acct.java @@ -97,9 +97,10 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -135,9 +136,10 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . diff --git a/base/src/org/compiere/model/X_C_BP_EDI.java b/base/src/org/compiere/model/X_C_BP_EDI.java index d15227df5e..cf93e687d3 100644 --- a/base/src/org/compiere/model/X_C_BP_EDI.java +++ b/base/src/org/compiere/model/X_C_BP_EDI.java @@ -92,9 +92,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setAD_Sequence_ID (int AD_Sequence_ID) { - if (AD_Sequence_ID < 1) - throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); - set_Value (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + if (AD_Sequence_ID < 1) + set_Value (COLUMNNAME_AD_Sequence_ID, null); + else + set_Value (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); } /** Get Sequence. @@ -130,9 +131,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -152,9 +154,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setC_BP_EDI_ID (int C_BP_EDI_ID) { - if (C_BP_EDI_ID < 1) - throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_EDI_ID, Integer.valueOf(C_BP_EDI_ID)); + if (C_BP_EDI_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_EDI_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_EDI_ID, Integer.valueOf(C_BP_EDI_ID)); } /** Get EDI Definition. @@ -174,8 +177,6 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setCustomerNo (String CustomerNo) { - if (CustomerNo == null) - throw new IllegalArgumentException ("CustomerNo is mandatory."); set_Value (COLUMNNAME_CustomerNo, CustomerNo); } @@ -216,7 +217,7 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent @param EDIType EDI Type */ public void setEDIType (String EDIType) { - if (EDIType == null) throw new IllegalArgumentException ("EDIType is mandatory"); + set_Value (COLUMNNAME_EDIType, EDIType); } @@ -233,8 +234,6 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setEMail_Error_To (String EMail_Error_To) { - if (EMail_Error_To == null) - throw new IllegalArgumentException ("EMail_Error_To is mandatory."); set_Value (COLUMNNAME_EMail_Error_To, EMail_Error_To); } @@ -303,8 +302,6 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setEMail_Info_To (String EMail_Info_To) { - if (EMail_Info_To == null) - throw new IllegalArgumentException ("EMail_Info_To is mandatory."); set_Value (COLUMNNAME_EMail_Info_To, EMail_Info_To); } @@ -403,9 +400,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -425,8 +423,6 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_BP_Employee_Acct.java b/base/src/org/compiere/model/X_C_BP_Employee_Acct.java index 6016c12fe8..fd2b4606a9 100644 --- a/base/src/org/compiere/model/X_C_BP_Employee_Acct.java +++ b/base/src/org/compiere/model/X_C_BP_Employee_Acct.java @@ -96,9 +96,10 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -134,9 +135,10 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . diff --git a/base/src/org/compiere/model/X_C_BP_Group.java b/base/src/org/compiere/model/X_C_BP_Group.java index 451b3c6bbc..e9c334e4b8 100644 --- a/base/src/org/compiere/model/X_C_BP_Group.java +++ b/base/src/org/compiere/model/X_C_BP_Group.java @@ -124,9 +124,10 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. @@ -332,8 +333,6 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -451,8 +450,6 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_BP_Group_Acct.java b/base/src/org/compiere/model/X_C_BP_Group_Acct.java index 2862b418c9..cc99e294ea 100644 --- a/base/src/org/compiere/model/X_C_BP_Group_Acct.java +++ b/base/src/org/compiere/model/X_C_BP_Group_Acct.java @@ -108,9 +108,10 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -146,9 +147,10 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. diff --git a/base/src/org/compiere/model/X_C_BP_Relation.java b/base/src/org/compiere/model/X_C_BP_Relation.java index 0481b7b963..671a8f3f87 100644 --- a/base/src/org/compiere/model/X_C_BP_Relation.java +++ b/base/src/org/compiere/model/X_C_BP_Relation.java @@ -103,9 +103,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -164,9 +165,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent */ public void setC_BPartnerRelation_ID (int C_BPartnerRelation_ID) { - if (C_BPartnerRelation_ID < 1) - throw new IllegalArgumentException ("C_BPartnerRelation_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartnerRelation_ID, Integer.valueOf(C_BPartnerRelation_ID)); + if (C_BPartnerRelation_ID < 1) + set_Value (COLUMNNAME_C_BPartnerRelation_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerRelation_ID, Integer.valueOf(C_BPartnerRelation_ID)); } /** Get Related Partner. @@ -186,9 +188,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent */ public void setC_BPartnerRelation_Location_ID (int C_BPartnerRelation_Location_ID) { - if (C_BPartnerRelation_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartnerRelation_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartnerRelation_Location_ID, Integer.valueOf(C_BPartnerRelation_Location_ID)); + if (C_BPartnerRelation_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartnerRelation_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerRelation_Location_ID, Integer.valueOf(C_BPartnerRelation_Location_ID)); } /** Get Related Partner Location. @@ -208,9 +211,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent */ public void setC_BP_Relation_ID (int C_BP_Relation_ID) { - if (C_BP_Relation_ID < 1) - throw new IllegalArgumentException ("C_BP_Relation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_Relation_ID, Integer.valueOf(C_BP_Relation_ID)); + if (C_BP_Relation_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_Relation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_Relation_ID, Integer.valueOf(C_BP_Relation_ID)); } /** Get Partner Relation. @@ -343,8 +347,6 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_BP_Vendor_Acct.java b/base/src/org/compiere/model/X_C_BP_Vendor_Acct.java index dfeb4b5948..ab7d3505ca 100644 --- a/base/src/org/compiere/model/X_C_BP_Vendor_Acct.java +++ b/base/src/org/compiere/model/X_C_BP_Vendor_Acct.java @@ -96,9 +96,10 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -134,9 +135,10 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . diff --git a/base/src/org/compiere/model/X_C_BP_Withholding.java b/base/src/org/compiere/model/X_C_BP_Withholding.java index caeaffb385..53d276977c 100644 --- a/base/src/org/compiere/model/X_C_BP_Withholding.java +++ b/base/src/org/compiere/model/X_C_BP_Withholding.java @@ -96,9 +96,10 @@ public class X_C_BP_Withholding extends PO implements I_C_BP_Withholding, I_Pers */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -134,9 +135,10 @@ public class X_C_BP_Withholding extends PO implements I_C_BP_Withholding, I_Pers */ public void setC_Withholding_ID (int C_Withholding_ID) { - if (C_Withholding_ID < 1) - throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + if (C_Withholding_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); } /** Get Withholding. diff --git a/base/src/org/compiere/model/X_C_BPartner.java b/base/src/org/compiere/model/X_C_BPartner.java index 2eb6ea23f8..ed1f40ef92 100644 --- a/base/src/org/compiere/model/X_C_BPartner.java +++ b/base/src/org/compiere/model/X_C_BPartner.java @@ -194,9 +194,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -232,9 +233,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. @@ -980,8 +982,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -1359,8 +1359,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setSO_CreditLimit (BigDecimal SO_CreditLimit) { - if (SO_CreditLimit == null) - throw new IllegalArgumentException ("SO_CreditLimit is mandatory."); set_Value (COLUMNNAME_SO_CreditLimit, SO_CreditLimit); } @@ -1411,8 +1409,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setSO_CreditUsed (BigDecimal SO_CreditUsed) { - if (SO_CreditUsed == null) - throw new IllegalArgumentException ("SO_CreditUsed is mandatory."); set_ValueNoCheck (COLUMNNAME_SO_CreditUsed, SO_CreditUsed); } @@ -1504,8 +1500,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_BPartner_Location.java b/base/src/org/compiere/model/X_C_BPartner_Location.java index 0d1fd850ac..0e65470690 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Location.java +++ b/base/src/org/compiere/model/X_C_BPartner_Location.java @@ -106,9 +106,10 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -128,9 +129,10 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -150,9 +152,10 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, */ public void setC_Location_ID (int C_Location_ID) { - if (C_Location_ID < 1) - throw new IllegalArgumentException ("C_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + if (C_Location_ID < 1) + set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); } /** Get Address. @@ -341,8 +344,6 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_BPartner_Product.java b/base/src/org/compiere/model/X_C_BPartner_Product.java index 79fc44b349..21102c70df 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Product.java +++ b/base/src/org/compiere/model/X_C_BPartner_Product.java @@ -98,9 +98,10 @@ public class X_C_BPartner_Product extends PO implements I_C_BPartner_Product, I_ */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -170,9 +171,10 @@ public class X_C_BPartner_Product extends PO implements I_C_BPartner_Product, I_ */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_C_Bank.java b/base/src/org/compiere/model/X_C_Bank.java index 4a3beb3af2..5af46f1776 100644 --- a/base/src/org/compiere/model/X_C_Bank.java +++ b/base/src/org/compiere/model/X_C_Bank.java @@ -80,9 +80,10 @@ public class X_C_Bank extends PO implements I_C_Bank, I_Persistent */ public void setC_Bank_ID (int C_Bank_ID) { - if (C_Bank_ID < 1) - throw new IllegalArgumentException ("C_Bank_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); + if (C_Bank_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); } /** Get Bank. @@ -166,8 +167,6 @@ public class X_C_Bank extends PO implements I_C_Bank, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -193,8 +192,6 @@ public class X_C_Bank extends PO implements I_C_Bank, I_Persistent */ public void setRoutingNo (String RoutingNo) { - if (RoutingNo == null) - throw new IllegalArgumentException ("RoutingNo is mandatory."); set_Value (COLUMNNAME_RoutingNo, RoutingNo); } diff --git a/base/src/org/compiere/model/X_C_BankAccount.java b/base/src/org/compiere/model/X_C_BankAccount.java index 3e1934982a..0a2cb4c05a 100644 --- a/base/src/org/compiere/model/X_C_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BankAccount.java @@ -87,8 +87,6 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setAccountNo (String AccountNo) { - if (AccountNo == null) - throw new IllegalArgumentException ("AccountNo is mandatory."); set_Value (COLUMNNAME_AccountNo, AccountNo); } @@ -112,7 +110,7 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setBankAccountType (String BankAccountType) { - if (BankAccountType == null) throw new IllegalArgumentException ("BankAccountType is mandatory"); + set_Value (COLUMNNAME_BankAccountType, BankAccountType); } @@ -147,9 +145,10 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -185,9 +184,10 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setC_Bank_ID (int C_Bank_ID) { - if (C_Bank_ID < 1) - throw new IllegalArgumentException ("C_Bank_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); + if (C_Bank_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); } /** Get Bank. @@ -231,9 +231,10 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -253,8 +254,6 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setCreditLimit (BigDecimal CreditLimit) { - if (CreditLimit == null) - throw new IllegalArgumentException ("CreditLimit is mandatory."); set_Value (COLUMNNAME_CreditLimit, CreditLimit); } @@ -275,8 +274,6 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent */ public void setCurrentBalance (BigDecimal CurrentBalance) { - if (CurrentBalance == null) - throw new IllegalArgumentException ("CurrentBalance is mandatory."); set_Value (COLUMNNAME_CurrentBalance, CurrentBalance); } diff --git a/base/src/org/compiere/model/X_C_BankAccountDoc.java b/base/src/org/compiere/model/X_C_BankAccountDoc.java index e9aa03b5eb..db3d16be67 100644 --- a/base/src/org/compiere/model/X_C_BankAccountDoc.java +++ b/base/src/org/compiere/model/X_C_BankAccountDoc.java @@ -82,9 +82,10 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers */ public void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID) { - if (C_BankAccountDoc_ID < 1) - throw new IllegalArgumentException ("C_BankAccountDoc_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccountDoc_ID, Integer.valueOf(C_BankAccountDoc_ID)); + if (C_BankAccountDoc_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccountDoc_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccountDoc_ID, Integer.valueOf(C_BankAccountDoc_ID)); } /** Get Bank Account Document. @@ -120,9 +121,10 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -202,8 +204,6 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -245,7 +245,7 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers */ public void setPaymentRule (String PaymentRule) { - if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + set_Value (COLUMNNAME_PaymentRule, PaymentRule); } diff --git a/base/src/org/compiere/model/X_C_BankAccount_Acct.java b/base/src/org/compiere/model/X_C_BankAccount_Acct.java index 815937cc14..05239dc5fb 100644 --- a/base/src/org/compiere/model/X_C_BankAccount_Acct.java +++ b/base/src/org/compiere/model/X_C_BankAccount_Acct.java @@ -346,9 +346,10 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -384,9 +385,10 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. diff --git a/base/src/org/compiere/model/X_C_BankStatement.java b/base/src/org/compiere/model/X_C_BankStatement.java index 1083505731..776872df88 100644 --- a/base/src/org/compiere/model/X_C_BankStatement.java +++ b/base/src/org/compiere/model/X_C_BankStatement.java @@ -134,9 +134,10 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -156,9 +157,10 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setC_BankStatement_ID (int C_BankStatement_ID) { - if (C_BankStatement_ID < 1) - throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); + if (C_BankStatement_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); } /** Get Bank Statement. @@ -242,7 +244,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -286,7 +288,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -338,8 +340,6 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setEndingBalance (BigDecimal EndingBalance) { - if (EndingBalance == null) - throw new IllegalArgumentException ("EndingBalance is mandatory."); set_Value (COLUMNNAME_EndingBalance, EndingBalance); } @@ -422,8 +422,6 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -518,8 +516,6 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis */ public void setStatementDate (Timestamp StatementDate) { - if (StatementDate == null) - throw new IllegalArgumentException ("StatementDate is mandatory."); set_Value (COLUMNNAME_StatementDate, StatementDate); } diff --git a/base/src/org/compiere/model/X_C_BankStatementLine.java b/base/src/org/compiere/model/X_C_BankStatementLine.java index e46f2339c9..cf2bfefb51 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLine.java +++ b/base/src/org/compiere/model/X_C_BankStatementLine.java @@ -117,9 +117,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setC_BankStatement_ID (int C_BankStatement_ID) { - if (C_BankStatement_ID < 1) - throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); + if (C_BankStatement_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); } /** Get Bank Statement. @@ -139,9 +140,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) { - if (C_BankStatementLine_ID < 1) - throw new IllegalArgumentException ("C_BankStatementLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankStatementLine_ID, Integer.valueOf(C_BankStatementLine_ID)); + if (C_BankStatementLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankStatementLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankStatementLine_ID, Integer.valueOf(C_BankStatementLine_ID)); } /** Get Bank statement line. @@ -216,9 +218,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) - throw new IllegalArgumentException ("C_Charge_ID is mandatory."); - set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. @@ -254,9 +257,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -276,8 +280,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setChargeAmt (BigDecimal ChargeAmt) { - if (ChargeAmt == null) - throw new IllegalArgumentException ("ChargeAmt is mandatory."); set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); } @@ -390,8 +392,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -616,8 +616,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setInterestAmt (BigDecimal InterestAmt) { - if (InterestAmt == null) - throw new IllegalArgumentException ("InterestAmt is mandatory."); set_Value (COLUMNNAME_InterestAmt, InterestAmt); } @@ -786,8 +784,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setStatementLineDate (Timestamp StatementLineDate) { - if (StatementLineDate == null) - throw new IllegalArgumentException ("StatementLineDate is mandatory."); set_Value (COLUMNNAME_StatementLineDate, StatementLineDate); } @@ -805,8 +801,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setStmtAmt (BigDecimal StmtAmt) { - if (StmtAmt == null) - throw new IllegalArgumentException ("StmtAmt is mandatory."); set_Value (COLUMNNAME_StmtAmt, StmtAmt); } @@ -827,8 +821,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setTrxAmt (BigDecimal TrxAmt) { - if (TrxAmt == null) - throw new IllegalArgumentException ("TrxAmt is mandatory."); set_Value (COLUMNNAME_TrxAmt, TrxAmt); } @@ -849,8 +841,6 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, */ public void setValutaDate (Timestamp ValutaDate) { - if (ValutaDate == null) - throw new IllegalArgumentException ("ValutaDate is mandatory."); set_Value (COLUMNNAME_ValutaDate, ValutaDate); } diff --git a/base/src/org/compiere/model/X_C_BankStatementLoader.java b/base/src/org/compiere/model/X_C_BankStatementLoader.java index 798a52a3ba..658f2bb2ba 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLoader.java +++ b/base/src/org/compiere/model/X_C_BankStatementLoader.java @@ -131,9 +131,10 @@ public class X_C_BankStatementLoader extends PO implements I_C_BankStatementLoad */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -153,9 +154,10 @@ public class X_C_BankStatementLoader extends PO implements I_C_BankStatementLoad */ public void setC_BankStatementLoader_ID (int C_BankStatementLoader_ID) { - if (C_BankStatementLoader_ID < 1) - throw new IllegalArgumentException ("C_BankStatementLoader_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankStatementLoader_ID, Integer.valueOf(C_BankStatementLoader_ID)); + if (C_BankStatementLoader_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankStatementLoader_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankStatementLoader_ID, Integer.valueOf(C_BankStatementLoader_ID)); } /** Get Bank Statement Loader. @@ -297,8 +299,6 @@ public class X_C_BankStatementLoader extends PO implements I_C_BankStatementLoad */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_BankStatementMatcher.java b/base/src/org/compiere/model/X_C_BankStatementMatcher.java index f29ea052cf..a43618f4f3 100644 --- a/base/src/org/compiere/model/X_C_BankStatementMatcher.java +++ b/base/src/org/compiere/model/X_C_BankStatementMatcher.java @@ -79,9 +79,10 @@ public class X_C_BankStatementMatcher extends PO implements I_C_BankStatementMat */ public void setC_BankStatementMatcher_ID (int C_BankStatementMatcher_ID) { - if (C_BankStatementMatcher_ID < 1) - throw new IllegalArgumentException ("C_BankStatementMatcher_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankStatementMatcher_ID, Integer.valueOf(C_BankStatementMatcher_ID)); + if (C_BankStatementMatcher_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankStatementMatcher_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankStatementMatcher_ID, Integer.valueOf(C_BankStatementMatcher_ID)); } /** Get Bank Statement Matcher. @@ -101,8 +102,6 @@ public class X_C_BankStatementMatcher extends PO implements I_C_BankStatementMat */ public void setClassname (String Classname) { - if (Classname == null) - throw new IllegalArgumentException ("Classname is mandatory."); set_Value (COLUMNNAME_Classname, Classname); } @@ -137,8 +136,6 @@ public class X_C_BankStatementMatcher extends PO implements I_C_BankStatementMat */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Calendar.java b/base/src/org/compiere/model/X_C_Calendar.java index 115e65da77..7c319e3e7c 100644 --- a/base/src/org/compiere/model/X_C_Calendar.java +++ b/base/src/org/compiere/model/X_C_Calendar.java @@ -77,9 +77,10 @@ public class X_C_Calendar extends PO implements I_C_Calendar, I_Persistent */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -116,8 +117,6 @@ public class X_C_Calendar extends PO implements I_C_Calendar, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Campaign.java b/base/src/org/compiere/model/X_C_Campaign.java index 8ce945be5c..5167b42086 100644 --- a/base/src/org/compiere/model/X_C_Campaign.java +++ b/base/src/org/compiere/model/X_C_Campaign.java @@ -85,9 +85,10 @@ public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent */ public void setC_Campaign_ID (int C_Campaign_ID) { - if (C_Campaign_ID < 1) - throw new IllegalArgumentException ("C_Campaign_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + if (C_Campaign_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); } /** Get Campaign. @@ -146,8 +147,6 @@ public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent */ public void setCosts (BigDecimal Costs) { - if (Costs == null) - throw new IllegalArgumentException ("Costs is mandatory."); set_Value (COLUMNNAME_Costs, Costs); } @@ -226,8 +225,6 @@ public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -270,8 +267,6 @@ public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_Cash.java b/base/src/org/compiere/model/X_C_Cash.java index 2063bb8be5..995e2c9f82 100644 --- a/base/src/org/compiere/model/X_C_Cash.java +++ b/base/src/org/compiere/model/X_C_Cash.java @@ -121,8 +121,6 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setBeginningBalance (BigDecimal BeginningBalance) { - if (BeginningBalance == null) - throw new IllegalArgumentException ("BeginningBalance is mandatory."); set_Value (COLUMNNAME_BeginningBalance, BeginningBalance); } @@ -237,9 +235,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setC_CashBook_ID (int C_CashBook_ID) { - if (C_CashBook_ID < 1) - throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + if (C_CashBook_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); } /** Get Cash Book. @@ -259,9 +258,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setC_Cash_ID (int C_Cash_ID) { - if (C_Cash_ID < 1) - throw new IllegalArgumentException ("C_Cash_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); + if (C_Cash_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); } /** Get Cash Journal. @@ -320,8 +320,6 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -386,7 +384,7 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -430,7 +428,7 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -448,8 +446,6 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setEndingBalance (BigDecimal EndingBalance) { - if (EndingBalance == null) - throw new IllegalArgumentException ("EndingBalance is mandatory."); set_Value (COLUMNNAME_EndingBalance, EndingBalance); } @@ -494,8 +490,6 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -590,8 +584,6 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent */ public void setStatementDate (Timestamp StatementDate) { - if (StatementDate == null) - throw new IllegalArgumentException ("StatementDate is mandatory."); set_Value (COLUMNNAME_StatementDate, StatementDate); } diff --git a/base/src/org/compiere/model/X_C_CashBook.java b/base/src/org/compiere/model/X_C_CashBook.java index 2779076ad2..fea111b179 100644 --- a/base/src/org/compiere/model/X_C_CashBook.java +++ b/base/src/org/compiere/model/X_C_CashBook.java @@ -81,9 +81,10 @@ public class X_C_CashBook extends PO implements I_C_CashBook, I_Persistent */ public void setC_CashBook_ID (int C_CashBook_ID) { - if (C_CashBook_ID < 1) - throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + if (C_CashBook_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); } /** Get Cash Book. @@ -119,9 +120,10 @@ public class X_C_CashBook extends PO implements I_C_CashBook, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -182,8 +184,6 @@ public class X_C_CashBook extends PO implements I_C_CashBook, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_CashBook_Acct.java b/base/src/org/compiere/model/X_C_CashBook_Acct.java index 2313942f23..a36d7cc6ec 100644 --- a/base/src/org/compiere/model/X_C_CashBook_Acct.java +++ b/base/src/org/compiere/model/X_C_CashBook_Acct.java @@ -99,9 +99,10 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -237,9 +238,10 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis */ public void setC_CashBook_ID (int C_CashBook_ID) { - if (C_CashBook_ID < 1) - throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + if (C_CashBook_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); } /** Get Cash Book. diff --git a/base/src/org/compiere/model/X_C_CashLine.java b/base/src/org/compiere/model/X_C_CashLine.java index e4b86545b6..490da7214f 100644 --- a/base/src/org/compiere/model/X_C_CashLine.java +++ b/base/src/org/compiere/model/X_C_CashLine.java @@ -87,8 +87,6 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent */ public void setAmount (BigDecimal Amount) { - if (Amount == null) - throw new IllegalArgumentException ("Amount is mandatory."); set_Value (COLUMNNAME_Amount, Amount); } @@ -123,7 +121,7 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent */ public void setCashType (String CashType) { - if (CashType == null) throw new IllegalArgumentException ("CashType is mandatory"); + set_ValueNoCheck (COLUMNNAME_CashType, CashType); } @@ -196,9 +194,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent */ public void setC_Cash_ID (int C_Cash_ID) { - if (C_Cash_ID < 1) - throw new IllegalArgumentException ("C_Cash_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); + if (C_Cash_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); } /** Get Cash Journal. @@ -226,9 +225,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent */ public void setC_CashLine_ID (int C_CashLine_ID) { - if (C_CashLine_ID < 1) - throw new IllegalArgumentException ("C_CashLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + if (C_CashLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); } /** Get Cash Journal Line. diff --git a/base/src/org/compiere/model/X_C_Channel.java b/base/src/org/compiere/model/X_C_Channel.java index ce15a37099..f19946ab79 100644 --- a/base/src/org/compiere/model/X_C_Channel.java +++ b/base/src/org/compiere/model/X_C_Channel.java @@ -118,9 +118,10 @@ public class X_C_Channel extends PO implements I_C_Channel, I_Persistent */ public void setC_Channel_ID (int C_Channel_ID) { - if (C_Channel_ID < 1) - throw new IllegalArgumentException ("C_Channel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Channel_ID, Integer.valueOf(C_Channel_ID)); + if (C_Channel_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Channel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Channel_ID, Integer.valueOf(C_Channel_ID)); } /** Get Channel. @@ -157,8 +158,6 @@ public class X_C_Channel extends PO implements I_C_Channel, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Charge.java b/base/src/org/compiere/model/X_C_Charge.java index ff27a0f40e..255c24a8fc 100644 --- a/base/src/org/compiere/model/X_C_Charge.java +++ b/base/src/org/compiere/model/X_C_Charge.java @@ -126,9 +126,10 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) - throw new IllegalArgumentException ("C_Charge_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + if (C_Charge_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. @@ -184,8 +185,6 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent */ public void setChargeAmt (BigDecimal ChargeAmt) { - if (ChargeAmt == null) - throw new IllegalArgumentException ("ChargeAmt is mandatory."); set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); } @@ -222,9 +221,10 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -330,8 +330,6 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_ChargeType.java b/base/src/org/compiere/model/X_C_ChargeType.java index 3ff53fccad..b6bf3053d0 100644 --- a/base/src/org/compiere/model/X_C_ChargeType.java +++ b/base/src/org/compiere/model/X_C_ChargeType.java @@ -76,9 +76,10 @@ public class X_C_ChargeType extends PO implements I_C_ChargeType, I_Persistent @param C_ChargeType_ID Charge Type */ public void setC_ChargeType_ID (int C_ChargeType_ID) { - if (C_ChargeType_ID < 1) - throw new IllegalArgumentException ("C_ChargeType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, Integer.valueOf(C_ChargeType_ID)); + if (C_ChargeType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, Integer.valueOf(C_ChargeType_ID)); } /** Get Charge Type. @@ -131,8 +132,6 @@ public class X_C_ChargeType extends PO implements I_C_ChargeType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -158,8 +157,6 @@ public class X_C_ChargeType extends PO implements I_C_ChargeType, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_ChargeType_DocType.java b/base/src/org/compiere/model/X_C_ChargeType_DocType.java index d2c0d4e2a7..6c8d721001 100644 --- a/base/src/org/compiere/model/X_C_ChargeType_DocType.java +++ b/base/src/org/compiere/model/X_C_ChargeType_DocType.java @@ -96,9 +96,10 @@ public class X_C_ChargeType_DocType extends PO implements I_C_ChargeType_DocType @param C_ChargeType_ID Charge Type */ public void setC_ChargeType_ID (int C_ChargeType_ID) { - if (C_ChargeType_ID < 1) - throw new IllegalArgumentException ("C_ChargeType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, Integer.valueOf(C_ChargeType_ID)); + if (C_ChargeType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ChargeType_ID, Integer.valueOf(C_ChargeType_ID)); } /** Get Charge Type. @@ -133,9 +134,10 @@ public class X_C_ChargeType_DocType extends PO implements I_C_ChargeType_DocType */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. diff --git a/base/src/org/compiere/model/X_C_Charge_Acct.java b/base/src/org/compiere/model/X_C_Charge_Acct.java index ea7abc2179..9d1a4a4486 100644 --- a/base/src/org/compiere/model/X_C_Charge_Acct.java +++ b/base/src/org/compiere/model/X_C_Charge_Acct.java @@ -96,9 +96,10 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -134,9 +135,10 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) - throw new IllegalArgumentException ("C_Charge_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + if (C_Charge_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. diff --git a/base/src/org/compiere/model/X_C_City.java b/base/src/org/compiere/model/X_C_City.java index 89ad2ed08b..6a8764727d 100644 --- a/base/src/org/compiere/model/X_C_City.java +++ b/base/src/org/compiere/model/X_C_City.java @@ -96,9 +96,10 @@ public class X_C_City extends PO implements I_C_City, I_Persistent */ public void setC_City_ID (int C_City_ID) { - if (C_City_ID < 1) - throw new IllegalArgumentException ("C_City_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_City_ID, Integer.valueOf(C_City_ID)); + if (C_City_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_City_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_City_ID, Integer.valueOf(C_City_ID)); } /** Get City. @@ -214,8 +215,6 @@ public class X_C_City extends PO implements I_C_City, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Commission.java b/base/src/org/compiere/model/X_C_Commission.java index 944dfe1016..2bb21097ca 100644 --- a/base/src/org/compiere/model/X_C_Commission.java +++ b/base/src/org/compiere/model/X_C_Commission.java @@ -88,9 +88,10 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -126,9 +127,10 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) - throw new IllegalArgumentException ("C_Charge_ID is mandatory."); - set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. @@ -148,9 +150,10 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setC_Commission_ID (int C_Commission_ID) { - if (C_Commission_ID < 1) - throw new IllegalArgumentException ("C_Commission_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + if (C_Commission_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); } /** Get Commission. @@ -186,9 +189,10 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -267,7 +271,7 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setDocBasisType (String DocBasisType) { - if (DocBasisType == null) throw new IllegalArgumentException ("DocBasisType is mandatory"); + set_Value (COLUMNNAME_DocBasisType, DocBasisType); } @@ -295,7 +299,7 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -337,8 +341,6 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_CommissionAmt.java b/base/src/org/compiere/model/X_C_CommissionAmt.java index 567cd1f227..cf1f55a55e 100644 --- a/base/src/org/compiere/model/X_C_CommissionAmt.java +++ b/base/src/org/compiere/model/X_C_CommissionAmt.java @@ -85,8 +85,6 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setActualQty (BigDecimal ActualQty) { - if (ActualQty == null) - throw new IllegalArgumentException ("ActualQty is mandatory."); set_Value (COLUMNNAME_ActualQty, ActualQty); } @@ -107,9 +105,10 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) { - if (C_CommissionAmt_ID < 1) - throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); + if (C_CommissionAmt_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); } /** Get Commission Amount. @@ -145,9 +144,10 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setC_CommissionLine_ID (int C_CommissionLine_ID) { - if (C_CommissionLine_ID < 1) - throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); - set_Value (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); + if (C_CommissionLine_ID < 1) + set_Value (COLUMNNAME_C_CommissionLine_ID, null); + else + set_Value (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); } /** Get Commission Line. @@ -183,9 +183,10 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setC_CommissionRun_ID (int C_CommissionRun_ID) { - if (C_CommissionRun_ID < 1) - throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); + if (C_CommissionRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); } /** Get Commission Run. @@ -213,8 +214,6 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setCommissionAmt (BigDecimal CommissionAmt) { - if (CommissionAmt == null) - throw new IllegalArgumentException ("CommissionAmt is mandatory."); set_Value (COLUMNNAME_CommissionAmt, CommissionAmt); } @@ -235,8 +234,6 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis */ public void setConvertedAmt (BigDecimal ConvertedAmt) { - if (ConvertedAmt == null) - throw new IllegalArgumentException ("ConvertedAmt is mandatory."); set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); } diff --git a/base/src/org/compiere/model/X_C_CommissionDetail.java b/base/src/org/compiere/model/X_C_CommissionDetail.java index f3ea2d89e2..11f79921eb 100644 --- a/base/src/org/compiere/model/X_C_CommissionDetail.java +++ b/base/src/org/compiere/model/X_C_CommissionDetail.java @@ -85,8 +85,6 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setActualAmt (BigDecimal ActualAmt) { - if (ActualAmt == null) - throw new IllegalArgumentException ("ActualAmt is mandatory."); set_Value (COLUMNNAME_ActualAmt, ActualAmt); } @@ -107,8 +105,6 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setActualQty (BigDecimal ActualQty) { - if (ActualQty == null) - throw new IllegalArgumentException ("ActualQty is mandatory."); set_Value (COLUMNNAME_ActualQty, ActualQty); } @@ -145,9 +141,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) { - if (C_CommissionAmt_ID < 1) - throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); + if (C_CommissionAmt_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); } /** Get Commission Amount. @@ -167,9 +164,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setC_CommissionDetail_ID (int C_CommissionDetail_ID) { - if (C_CommissionDetail_ID < 1) - throw new IllegalArgumentException ("C_CommissionDetail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionDetail_ID, Integer.valueOf(C_CommissionDetail_ID)); + if (C_CommissionDetail_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionDetail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionDetail_ID, Integer.valueOf(C_CommissionDetail_ID)); } /** Get Commission Detail. @@ -205,9 +203,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -266,8 +265,6 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ */ public void setConvertedAmt (BigDecimal ConvertedAmt) { - if (ConvertedAmt == null) - throw new IllegalArgumentException ("ConvertedAmt is mandatory."); set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); } diff --git a/base/src/org/compiere/model/X_C_CommissionLine.java b/base/src/org/compiere/model/X_C_CommissionLine.java index e5fb70cb5f..3d73bea154 100644 --- a/base/src/org/compiere/model/X_C_CommissionLine.java +++ b/base/src/org/compiere/model/X_C_CommissionLine.java @@ -89,8 +89,6 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setAmtMultiplier (BigDecimal AmtMultiplier) { - if (AmtMultiplier == null) - throw new IllegalArgumentException ("AmtMultiplier is mandatory."); set_Value (COLUMNNAME_AmtMultiplier, AmtMultiplier); } @@ -111,8 +109,6 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setAmtSubtract (BigDecimal AmtSubtract) { - if (AmtSubtract == null) - throw new IllegalArgumentException ("AmtSubtract is mandatory."); set_Value (COLUMNNAME_AmtSubtract, AmtSubtract); } @@ -227,9 +223,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setC_Commission_ID (int C_Commission_ID) { - if (C_Commission_ID < 1) - throw new IllegalArgumentException ("C_Commission_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + if (C_Commission_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); } /** Get Commission. @@ -257,9 +254,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setC_CommissionLine_ID (int C_CommissionLine_ID) { - if (C_CommissionLine_ID < 1) - throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); + if (C_CommissionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); } /** Get Commission Line. @@ -538,8 +536,6 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setQtyMultiplier (BigDecimal QtyMultiplier) { - if (QtyMultiplier == null) - throw new IllegalArgumentException ("QtyMultiplier is mandatory."); set_Value (COLUMNNAME_QtyMultiplier, QtyMultiplier); } @@ -560,8 +556,6 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers */ public void setQtySubtract (BigDecimal QtySubtract) { - if (QtySubtract == null) - throw new IllegalArgumentException ("QtySubtract is mandatory."); set_Value (COLUMNNAME_QtySubtract, QtySubtract); } diff --git a/base/src/org/compiere/model/X_C_CommissionRun.java b/base/src/org/compiere/model/X_C_CommissionRun.java index fd7ace746c..0fe6642bba 100644 --- a/base/src/org/compiere/model/X_C_CommissionRun.java +++ b/base/src/org/compiere/model/X_C_CommissionRun.java @@ -102,9 +102,10 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis */ public void setC_Commission_ID (int C_Commission_ID) { - if (C_Commission_ID < 1) - throw new IllegalArgumentException ("C_Commission_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + if (C_Commission_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); } /** Get Commission. @@ -124,9 +125,10 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis */ public void setC_CommissionRun_ID (int C_CommissionRun_ID) { - if (C_CommissionRun_ID < 1) - throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); + if (C_CommissionRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); } /** Get Commission Run. @@ -163,8 +165,6 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -190,8 +190,6 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis */ public void setGrandTotal (BigDecimal GrandTotal) { - if (GrandTotal == null) - throw new IllegalArgumentException ("GrandTotal is mandatory."); set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); } @@ -257,8 +255,6 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis */ public void setStartDate (Timestamp StartDate) { - if (StartDate == null) - throw new IllegalArgumentException ("StartDate is mandatory."); set_Value (COLUMNNAME_StartDate, StartDate); } diff --git a/base/src/org/compiere/model/X_C_ConversionType.java b/base/src/org/compiere/model/X_C_ConversionType.java index 5f795a8322..a7cabca2f2 100644 --- a/base/src/org/compiere/model/X_C_ConversionType.java +++ b/base/src/org/compiere/model/X_C_ConversionType.java @@ -79,9 +79,10 @@ public class X_C_ConversionType extends PO implements I_C_ConversionType, I_Pers */ public void setC_ConversionType_ID (int C_ConversionType_ID) { - if (C_ConversionType_ID < 1) - throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + if (C_ConversionType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ConversionType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); } /** Get Currency Type. @@ -142,8 +143,6 @@ public class X_C_ConversionType extends PO implements I_C_ConversionType, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -169,8 +168,6 @@ public class X_C_ConversionType extends PO implements I_C_ConversionType, I_Pers */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_Conversion_Rate.java b/base/src/org/compiere/model/X_C_Conversion_Rate.java index f584312d16..619d7cbc57 100644 --- a/base/src/org/compiere/model/X_C_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_C_Conversion_Rate.java @@ -87,9 +87,10 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID) { - if (C_Conversion_Rate_ID < 1) - throw new IllegalArgumentException ("C_Conversion_Rate_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Conversion_Rate_ID, Integer.valueOf(C_Conversion_Rate_ID)); + if (C_Conversion_Rate_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Conversion_Rate_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Conversion_Rate_ID, Integer.valueOf(C_Conversion_Rate_ID)); } /** Get Conversion Rate. @@ -133,9 +134,10 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setC_ConversionType_ID (int C_ConversionType_ID) { - if (C_ConversionType_ID < 1) - throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); - set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); } /** Get Currency Type. @@ -155,9 +157,10 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -197,8 +200,6 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setDivideRate (BigDecimal DivideRate) { - if (DivideRate == null) - throw new IllegalArgumentException ("DivideRate is mandatory."); set_Value (COLUMNNAME_DivideRate, DivideRate); } @@ -219,8 +220,6 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setMultiplyRate (BigDecimal MultiplyRate) { - if (MultiplyRate == null) - throw new IllegalArgumentException ("MultiplyRate is mandatory."); set_Value (COLUMNNAME_MultiplyRate, MultiplyRate); } @@ -241,8 +240,6 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_Country.java b/base/src/org/compiere/model/X_C_Country.java index 6bf6addb36..0d128aa3a2 100644 --- a/base/src/org/compiere/model/X_C_Country.java +++ b/base/src/org/compiere/model/X_C_Country.java @@ -106,9 +106,10 @@ public class X_C_Country extends PO implements I_C_Country, I_Persistent */ public void setC_Country_ID (int C_Country_ID) { - if (C_Country_ID < 1) - throw new IllegalArgumentException ("C_Country_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + if (C_Country_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Country_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); } /** Get Country. @@ -167,8 +168,6 @@ public class X_C_Country extends PO implements I_C_Country, I_Persistent */ public void setCountryCode (String CountryCode) { - if (CountryCode == null) - throw new IllegalArgumentException ("CountryCode is mandatory."); set_Value (COLUMNNAME_CountryCode, CountryCode); } @@ -203,8 +202,6 @@ public class X_C_Country extends PO implements I_C_Country, I_Persistent */ public void setDisplaySequence (String DisplaySequence) { - if (DisplaySequence == null) - throw new IllegalArgumentException ("DisplaySequence is mandatory."); set_Value (COLUMNNAME_DisplaySequence, DisplaySequence); } @@ -529,8 +526,6 @@ public class X_C_Country extends PO implements I_C_Country, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Currency.java b/base/src/org/compiere/model/X_C_Currency.java index 161a7b1502..1c3f1fcdd7 100644 --- a/base/src/org/compiere/model/X_C_Currency.java +++ b/base/src/org/compiere/model/X_C_Currency.java @@ -91,9 +91,10 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -150,8 +151,6 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -254,8 +253,6 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent */ public void setISO_Code (String ISO_Code) { - if (ISO_Code == null) - throw new IllegalArgumentException ("ISO_Code is mandatory."); set_Value (COLUMNNAME_ISO_Code, ISO_Code); } @@ -281,8 +278,6 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent */ public void setRoundOffFactor (BigDecimal RoundOffFactor) { - if (RoundOffFactor == null) - throw new IllegalArgumentException ("RoundOffFactor is mandatory."); set_Value (COLUMNNAME_RoundOffFactor, RoundOffFactor); } diff --git a/base/src/org/compiere/model/X_C_Currency_Acct.java b/base/src/org/compiere/model/X_C_Currency_Acct.java index 87edbe965f..af34dac5ad 100644 --- a/base/src/org/compiere/model/X_C_Currency_Acct.java +++ b/base/src/org/compiere/model/X_C_Currency_Acct.java @@ -98,9 +98,10 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -136,9 +137,10 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. diff --git a/base/src/org/compiere/model/X_C_Cycle.java b/base/src/org/compiere/model/X_C_Cycle.java index 4df1a64f6e..7d1dd7028a 100644 --- a/base/src/org/compiere/model/X_C_Cycle.java +++ b/base/src/org/compiere/model/X_C_Cycle.java @@ -96,9 +96,10 @@ public class X_C_Cycle extends PO implements I_C_Cycle, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -118,9 +119,10 @@ public class X_C_Cycle extends PO implements I_C_Cycle, I_Persistent */ public void setC_Cycle_ID (int C_Cycle_ID) { - if (C_Cycle_ID < 1) - throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); + if (C_Cycle_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); } /** Get Project Cycle. @@ -157,8 +159,6 @@ public class X_C_Cycle extends PO implements I_C_Cycle, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_CyclePhase.java b/base/src/org/compiere/model/X_C_CyclePhase.java index 111bce8379..d07d0ae069 100644 --- a/base/src/org/compiere/model/X_C_CyclePhase.java +++ b/base/src/org/compiere/model/X_C_CyclePhase.java @@ -94,9 +94,10 @@ public class X_C_CyclePhase extends PO implements I_C_CyclePhase, I_Persistent */ public void setC_CycleStep_ID (int C_CycleStep_ID) { - if (C_CycleStep_ID < 1) - throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); + if (C_CycleStep_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); } /** Get Cycle Step. @@ -132,9 +133,10 @@ public class X_C_CyclePhase extends PO implements I_C_CyclePhase, I_Persistent */ public void setC_Phase_ID (int C_Phase_ID) { - if (C_Phase_ID < 1) - throw new IllegalArgumentException ("C_Phase_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + if (C_Phase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); } /** Get Standard Phase. diff --git a/base/src/org/compiere/model/X_C_CycleStep.java b/base/src/org/compiere/model/X_C_CycleStep.java index 0b5243d2c8..f77677c385 100644 --- a/base/src/org/compiere/model/X_C_CycleStep.java +++ b/base/src/org/compiere/model/X_C_CycleStep.java @@ -102,9 +102,10 @@ public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent */ public void setC_Cycle_ID (int C_Cycle_ID) { - if (C_Cycle_ID < 1) - throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); + if (C_Cycle_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); } /** Get Project Cycle. @@ -124,9 +125,10 @@ public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent */ public void setC_CycleStep_ID (int C_CycleStep_ID) { - if (C_CycleStep_ID < 1) - throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); + if (C_CycleStep_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); } /** Get Cycle Step. @@ -146,8 +148,6 @@ public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -173,8 +173,6 @@ public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent */ public void setRelativeWeight (BigDecimal RelativeWeight) { - if (RelativeWeight == null) - throw new IllegalArgumentException ("RelativeWeight is mandatory."); set_Value (COLUMNNAME_RelativeWeight, RelativeWeight); } diff --git a/base/src/org/compiere/model/X_C_DocType.java b/base/src/org/compiere/model/X_C_DocType.java index 139fcf07c1..a3f2f313ee 100644 --- a/base/src/org/compiere/model/X_C_DocType.java +++ b/base/src/org/compiere/model/X_C_DocType.java @@ -160,9 +160,10 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -348,7 +349,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent */ public void setDocBaseType (String DocBaseType) { - if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); + set_Value (COLUMNNAME_DocBaseType, DocBaseType); } @@ -478,9 +479,10 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent */ public void setGL_Category_ID (int GL_Category_ID) { - if (GL_Category_ID < 1) - throw new IllegalArgumentException ("GL_Category_ID is mandatory."); - set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + if (GL_Category_ID < 1) + set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @@ -830,8 +832,6 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -857,8 +857,6 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent */ public void setPrintName (String PrintName) { - if (PrintName == null) - throw new IllegalArgumentException ("PrintName is mandatory."); set_Value (COLUMNNAME_PrintName, PrintName); } diff --git a/base/src/org/compiere/model/X_C_DocTypeCounter.java b/base/src/org/compiere/model/X_C_DocTypeCounter.java index 5dc9463616..f86c70ac59 100644 --- a/base/src/org/compiere/model/X_C_DocTypeCounter.java +++ b/base/src/org/compiere/model/X_C_DocTypeCounter.java @@ -84,9 +84,10 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers */ public void setC_DocTypeCounter_ID (int C_DocTypeCounter_ID) { - if (C_DocTypeCounter_ID < 1) - throw new IllegalArgumentException ("C_DocTypeCounter_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocTypeCounter_ID, Integer.valueOf(C_DocTypeCounter_ID)); + if (C_DocTypeCounter_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DocTypeCounter_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocTypeCounter_ID, Integer.valueOf(C_DocTypeCounter_ID)); } /** Get Counter Document. @@ -122,9 +123,10 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -144,9 +146,10 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers */ public void setCounter_C_DocType_ID (int Counter_C_DocType_ID) { - if (Counter_C_DocType_ID < 1) - throw new IllegalArgumentException ("Counter_C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_Counter_C_DocType_ID, Integer.valueOf(Counter_C_DocType_ID)); + if (Counter_C_DocType_ID < 1) + set_Value (COLUMNNAME_Counter_C_DocType_ID, null); + else + set_Value (COLUMNNAME_Counter_C_DocType_ID, Integer.valueOf(Counter_C_DocType_ID)); } /** Get Counter Document Type. @@ -279,8 +282,6 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Dunning.java b/base/src/org/compiere/model/X_C_Dunning.java index 38dbe1ea03..97fa47723b 100644 --- a/base/src/org/compiere/model/X_C_Dunning.java +++ b/base/src/org/compiere/model/X_C_Dunning.java @@ -80,9 +80,10 @@ public class X_C_Dunning extends PO implements I_C_Dunning, I_Persistent */ public void setC_Dunning_ID (int C_Dunning_ID) { - if (C_Dunning_ID < 1) - throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + if (C_Dunning_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); } /** Get Dunning. @@ -167,8 +168,6 @@ public class X_C_Dunning extends PO implements I_C_Dunning, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_DunningLevel.java b/base/src/org/compiere/model/X_C_DunningLevel.java index bd5c4917c2..b9ac2ac7a9 100644 --- a/base/src/org/compiere/model/X_C_DunningLevel.java +++ b/base/src/org/compiere/model/X_C_DunningLevel.java @@ -107,9 +107,10 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste */ public void setC_Dunning_ID (int C_Dunning_ID) { - if (C_Dunning_ID < 1) - throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + if (C_Dunning_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); } /** Get Dunning. @@ -127,9 +128,10 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste @param C_DunningLevel_ID Dunning Level */ public void setC_DunningLevel_ID (int C_DunningLevel_ID) { - if (C_DunningLevel_ID < 1) - throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); + if (C_DunningLevel_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); } /** Get Dunning Level. @@ -235,8 +237,6 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste */ public void setDaysAfterDue (BigDecimal DaysAfterDue) { - if (DaysAfterDue == null) - throw new IllegalArgumentException ("DaysAfterDue is mandatory."); set_Value (COLUMNNAME_DaysAfterDue, DaysAfterDue); } @@ -453,8 +453,6 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -497,8 +495,6 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste */ public void setPrintName (String PrintName) { - if (PrintName == null) - throw new IllegalArgumentException ("PrintName is mandatory."); set_Value (COLUMNNAME_PrintName, PrintName); } diff --git a/base/src/org/compiere/model/X_C_DunningRun.java b/base/src/org/compiere/model/X_C_DunningRun.java index c96ce287f0..af335a5803 100644 --- a/base/src/org/compiere/model/X_C_DunningRun.java +++ b/base/src/org/compiere/model/X_C_DunningRun.java @@ -97,9 +97,10 @@ public class X_C_DunningRun extends PO implements I_C_DunningRun, I_Persistent @param C_DunningLevel_ID Dunning Level */ public void setC_DunningLevel_ID (int C_DunningLevel_ID) { - if (C_DunningLevel_ID < 1) - throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); + if (C_DunningLevel_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); } /** Get Dunning Level. @@ -118,9 +119,10 @@ public class X_C_DunningRun extends PO implements I_C_DunningRun, I_Persistent */ public void setC_DunningRun_ID (int C_DunningRun_ID) { - if (C_DunningRun_ID < 1) - throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); + if (C_DunningRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); } /** Get Dunning Run. @@ -157,8 +159,6 @@ public class X_C_DunningRun extends PO implements I_C_DunningRun, I_Persistent */ public void setDunningDate (Timestamp DunningDate) { - if (DunningDate == null) - throw new IllegalArgumentException ("DunningDate is mandatory."); set_Value (COLUMNNAME_DunningDate, DunningDate); } diff --git a/base/src/org/compiere/model/X_C_DunningRunEntry.java b/base/src/org/compiere/model/X_C_DunningRunEntry.java index b01a6b6acb..ed8a0f08d5 100644 --- a/base/src/org/compiere/model/X_C_DunningRunEntry.java +++ b/base/src/org/compiere/model/X_C_DunningRunEntry.java @@ -127,8 +127,6 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -165,9 +163,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -203,9 +202,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -241,9 +241,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -263,9 +264,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) { - if (C_DunningRunEntry_ID < 1) - throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); + if (C_DunningRunEntry_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); } /** Get Dunning Run Entry. @@ -301,9 +303,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setC_DunningRun_ID (int C_DunningRun_ID) { - if (C_DunningRun_ID < 1) - throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); + if (C_DunningRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); } /** Get Dunning Run. @@ -372,8 +375,6 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } @@ -394,9 +395,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. diff --git a/base/src/org/compiere/model/X_C_DunningRunLine.java b/base/src/org/compiere/model/X_C_DunningRunLine.java index 669581bf1c..4f55fe2e9a 100644 --- a/base/src/org/compiere/model/X_C_DunningRunLine.java +++ b/base/src/org/compiere/model/X_C_DunningRunLine.java @@ -91,8 +91,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -129,9 +127,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) { - if (C_DunningRunEntry_ID < 1) - throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); + if (C_DunningRunEntry_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); } /** Get Dunning Run Entry. @@ -151,9 +150,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setC_DunningRunLine_ID (int C_DunningRunLine_ID) { - if (C_DunningRunLine_ID < 1) - throw new IllegalArgumentException ("C_DunningRunLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DunningRunLine_ID, Integer.valueOf(C_DunningRunLine_ID)); + if (C_DunningRunLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DunningRunLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DunningRunLine_ID, Integer.valueOf(C_DunningRunLine_ID)); } /** Get Dunning Run Line. @@ -259,8 +259,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setConvertedAmt (BigDecimal ConvertedAmt) { - if (ConvertedAmt == null) - throw new IllegalArgumentException ("ConvertedAmt is mandatory."); set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); } @@ -340,8 +338,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setFeeAmt (BigDecimal FeeAmt) { - if (FeeAmt == null) - throw new IllegalArgumentException ("FeeAmt is mandatory."); set_Value (COLUMNNAME_FeeAmt, FeeAmt); } @@ -362,8 +358,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setInterestAmt (BigDecimal InterestAmt) { - if (InterestAmt == null) - throw new IllegalArgumentException ("InterestAmt is mandatory."); set_Value (COLUMNNAME_InterestAmt, InterestAmt); } @@ -408,8 +402,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setOpenAmt (BigDecimal OpenAmt) { - if (OpenAmt == null) - throw new IllegalArgumentException ("OpenAmt is mandatory."); set_Value (COLUMNNAME_OpenAmt, OpenAmt); } @@ -474,8 +466,6 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers */ public void setTotalAmt (BigDecimal TotalAmt) { - if (TotalAmt == null) - throw new IllegalArgumentException ("TotalAmt is mandatory."); set_Value (COLUMNNAME_TotalAmt, TotalAmt); } diff --git a/base/src/org/compiere/model/X_C_Element.java b/base/src/org/compiere/model/X_C_Element.java index f0c1ed7660..9d76cc9a4f 100644 --- a/base/src/org/compiere/model/X_C_Element.java +++ b/base/src/org/compiere/model/X_C_Element.java @@ -100,9 +100,10 @@ public class X_C_Element extends PO implements I_C_Element, I_Persistent */ public void setAD_Tree_ID (int AD_Tree_ID) { - if (AD_Tree_ID < 1) - throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + if (AD_Tree_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); } /** Get Tree. @@ -122,9 +123,10 @@ public class X_C_Element extends PO implements I_C_Element, I_Persistent */ public void setC_Element_ID (int C_Element_ID) { - if (C_Element_ID < 1) - throw new IllegalArgumentException ("C_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + if (C_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); } /** Get Element. @@ -167,7 +169,7 @@ public class X_C_Element extends PO implements I_C_Element, I_Persistent */ public void setElementType (String ElementType) { - if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); + set_ValueNoCheck (COLUMNNAME_ElementType, ElementType); } @@ -233,8 +235,6 @@ public class X_C_Element extends PO implements I_C_Element, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_ElementValue.java b/base/src/org/compiere/model/X_C_ElementValue.java index d1f1a48cb0..72b9e7f2e5 100644 --- a/base/src/org/compiere/model/X_C_ElementValue.java +++ b/base/src/org/compiere/model/X_C_ElementValue.java @@ -103,7 +103,7 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setAccountSign (String AccountSign) { - if (AccountSign == null) throw new IllegalArgumentException ("AccountSign is mandatory"); + set_Value (COLUMNNAME_AccountSign, AccountSign); } @@ -135,7 +135,7 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setAccountType (String AccountType) { - if (AccountType == null) throw new IllegalArgumentException ("AccountType is mandatory"); + set_Value (COLUMNNAME_AccountType, AccountType); } @@ -247,9 +247,10 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setC_Element_ID (int C_Element_ID) { - if (C_Element_ID < 1) - throw new IllegalArgumentException ("C_Element_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + if (C_Element_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Element_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); } /** Get Element. @@ -269,9 +270,10 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setC_ElementValue_ID (int C_ElementValue_ID) { - if (C_ElementValue_ID < 1) - throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + if (C_ElementValue_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); } /** Get Account Element. @@ -404,8 +406,6 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -553,8 +553,6 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_Greeting.java b/base/src/org/compiere/model/X_C_Greeting.java index 300287a8d3..40ef1d92cd 100644 --- a/base/src/org/compiere/model/X_C_Greeting.java +++ b/base/src/org/compiere/model/X_C_Greeting.java @@ -79,9 +79,10 @@ public class X_C_Greeting extends PO implements I_C_Greeting, I_Persistent */ public void setC_Greeting_ID (int C_Greeting_ID) { - if (C_Greeting_ID < 1) - throw new IllegalArgumentException ("C_Greeting_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + if (C_Greeting_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); } /** Get Greeting. @@ -166,8 +167,6 @@ public class X_C_Greeting extends PO implements I_C_Greeting, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_InterOrg_Acct.java b/base/src/org/compiere/model/X_C_InterOrg_Acct.java index e1340f3314..7038c7c21a 100644 --- a/base/src/org/compiere/model/X_C_InterOrg_Acct.java +++ b/base/src/org/compiere/model/X_C_InterOrg_Acct.java @@ -80,9 +80,10 @@ public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persis */ public void setAD_OrgTo_ID (int AD_OrgTo_ID) { - if (AD_OrgTo_ID < 1) - throw new IllegalArgumentException ("AD_OrgTo_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_OrgTo_ID, Integer.valueOf(AD_OrgTo_ID)); + if (AD_OrgTo_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_OrgTo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgTo_ID, Integer.valueOf(AD_OrgTo_ID)); } /** Get Inter-Organization. @@ -118,9 +119,10 @@ public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. diff --git a/base/src/org/compiere/model/X_C_Invoice.java b/base/src/org/compiere/model/X_C_Invoice.java index fd5105c321..b0c61394d5 100644 --- a/base/src/org/compiere/model/X_C_Invoice.java +++ b/base/src/org/compiere/model/X_C_Invoice.java @@ -237,9 +237,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -275,9 +276,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -453,9 +455,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -491,9 +494,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -513,9 +517,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) { - if (C_DocTypeTarget_ID < 1) - throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); - set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + if (C_DocTypeTarget_ID < 1) + set_Value (COLUMNNAME_C_DocTypeTarget_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); } /** Get Target Document Type. @@ -591,9 +596,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -724,9 +730,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -802,8 +809,6 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -821,8 +826,6 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setDateInvoiced (Timestamp DateInvoiced) { - if (DateInvoiced == null) - throw new IllegalArgumentException ("DateInvoiced is mandatory."); set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); } @@ -921,7 +924,7 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -965,7 +968,7 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -983,8 +986,6 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -1041,8 +1042,6 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setGrandTotal (BigDecimal GrandTotal) { - if (GrandTotal == null) - throw new IllegalArgumentException ("GrandTotal is mandatory."); set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); } @@ -1347,9 +1346,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -1424,7 +1424,7 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setPaymentRule (String PaymentRule) { - if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + set_Value (COLUMNNAME_PaymentRule, PaymentRule); } @@ -1618,8 +1618,6 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent */ public void setTotalLines (BigDecimal TotalLines) { - if (TotalLines == null) - throw new IllegalArgumentException ("TotalLines is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); } diff --git a/base/src/org/compiere/model/X_C_InvoiceBatch.java b/base/src/org/compiere/model/X_C_InvoiceBatch.java index ff8d9e8a30..7ade40e66a 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatch.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatch.java @@ -148,9 +148,10 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -170,9 +171,10 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) { - if (C_InvoiceBatch_ID < 1) - throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); + if (C_InvoiceBatch_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); } /** Get Invoice Batch. @@ -192,8 +194,6 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setControlAmt (BigDecimal ControlAmt) { - if (ControlAmt == null) - throw new IllegalArgumentException ("ControlAmt is mandatory."); set_Value (COLUMNNAME_ControlAmt, ControlAmt); } @@ -214,8 +214,6 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } @@ -250,8 +248,6 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setDocumentAmt (BigDecimal DocumentAmt) { - if (DocumentAmt == null) - throw new IllegalArgumentException ("DocumentAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentAmt, DocumentAmt); } @@ -272,8 +268,6 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -368,9 +362,10 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. diff --git a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java index e4720cc678..1700322743 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java @@ -224,9 +224,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -262,9 +263,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -300,9 +302,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) - throw new IllegalArgumentException ("C_Charge_ID is mandatory."); - set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. @@ -338,9 +341,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -376,9 +380,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) { - if (C_InvoiceBatch_ID < 1) - throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); + if (C_InvoiceBatch_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); } /** Get Invoice Batch. @@ -398,9 +403,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_InvoiceBatchLine_ID (int C_InvoiceBatchLine_ID) { - if (C_InvoiceBatchLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceBatchLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceBatchLine_ID, Integer.valueOf(C_InvoiceBatchLine_ID)); + if (C_InvoiceBatchLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatchLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatchLine_ID, Integer.valueOf(C_InvoiceBatchLine_ID)); } /** Get Invoice Batch Line. @@ -553,9 +559,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_Value (COLUMNNAME_C_Tax_ID, null); + else + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -575,8 +582,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -594,8 +599,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setDateInvoiced (Timestamp DateInvoiced) { - if (DateInvoiced == null) - throw new IllegalArgumentException ("DateInvoiced is mandatory."); set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); } @@ -630,8 +633,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -701,8 +702,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setLineNetAmt (BigDecimal LineNetAmt) { - if (LineNetAmt == null) - throw new IllegalArgumentException ("LineNetAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); } @@ -723,8 +722,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setLineTotalAmt (BigDecimal LineTotalAmt) { - if (LineTotalAmt == null) - throw new IllegalArgumentException ("LineTotalAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_LineTotalAmt, LineTotalAmt); } @@ -745,8 +742,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setPriceEntered (BigDecimal PriceEntered) { - if (PriceEntered == null) - throw new IllegalArgumentException ("PriceEntered is mandatory."); set_Value (COLUMNNAME_PriceEntered, PriceEntered); } @@ -791,8 +786,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setQtyEntered (BigDecimal QtyEntered) { - if (QtyEntered == null) - throw new IllegalArgumentException ("QtyEntered is mandatory."); set_Value (COLUMNNAME_QtyEntered, QtyEntered); } @@ -813,8 +806,6 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ */ public void setTaxAmt (BigDecimal TaxAmt) { - if (TaxAmt == null) - throw new IllegalArgumentException ("TaxAmt is mandatory."); set_Value (COLUMNNAME_TaxAmt, TaxAmt); } diff --git a/base/src/org/compiere/model/X_C_InvoiceLine.java b/base/src/org/compiere/model/X_C_InvoiceLine.java index 39cf66e4ab..1e0e01425d 100644 --- a/base/src/org/compiere/model/X_C_InvoiceLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceLine.java @@ -397,9 +397,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -427,9 +428,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) { - if (C_InvoiceLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + if (C_InvoiceLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); } /** Get Invoice Line. @@ -621,9 +623,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_Value (COLUMNNAME_C_Tax_ID, null); + else + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -767,8 +770,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setLineNetAmt (BigDecimal LineNetAmt) { - if (LineNetAmt == null) - throw new IllegalArgumentException ("LineNetAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); } @@ -809,9 +810,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -948,8 +950,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setPriceActual (BigDecimal PriceActual) { - if (PriceActual == null) - throw new IllegalArgumentException ("PriceActual is mandatory."); set_ValueNoCheck (COLUMNNAME_PriceActual, PriceActual); } @@ -970,8 +970,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setPriceEntered (BigDecimal PriceEntered) { - if (PriceEntered == null) - throw new IllegalArgumentException ("PriceEntered is mandatory."); set_Value (COLUMNNAME_PriceEntered, PriceEntered); } @@ -992,8 +990,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setPriceLimit (BigDecimal PriceLimit) { - if (PriceLimit == null) - throw new IllegalArgumentException ("PriceLimit is mandatory."); set_Value (COLUMNNAME_PriceLimit, PriceLimit); } @@ -1014,8 +1010,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setPriceList (BigDecimal PriceList) { - if (PriceList == null) - throw new IllegalArgumentException ("PriceList is mandatory."); set_Value (COLUMNNAME_PriceList, PriceList); } @@ -1060,8 +1054,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setQtyEntered (BigDecimal QtyEntered) { - if (QtyEntered == null) - throw new IllegalArgumentException ("QtyEntered is mandatory."); set_Value (COLUMNNAME_QtyEntered, QtyEntered); } @@ -1082,8 +1074,6 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent */ public void setQtyInvoiced (BigDecimal QtyInvoiced) { - if (QtyInvoiced == null) - throw new IllegalArgumentException ("QtyInvoiced is mandatory."); set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); } diff --git a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java index e5b4af1f1c..ddcfecf8f8 100644 --- a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java +++ b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java @@ -104,9 +104,10 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -126,9 +127,10 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) { - if (C_InvoicePaySchedule_ID < 1) - throw new IllegalArgumentException ("C_InvoicePaySchedule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoicePaySchedule_ID, Integer.valueOf(C_InvoicePaySchedule_ID)); + if (C_InvoicePaySchedule_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoicePaySchedule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoicePaySchedule_ID, Integer.valueOf(C_InvoicePaySchedule_ID)); } /** Get Invoice Payment Schedule. @@ -187,8 +189,6 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setDiscountAmt (BigDecimal DiscountAmt) { - if (DiscountAmt == null) - throw new IllegalArgumentException ("DiscountAmt is mandatory."); set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); } @@ -209,8 +209,6 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setDiscountDate (Timestamp DiscountDate) { - if (DiscountDate == null) - throw new IllegalArgumentException ("DiscountDate is mandatory."); set_Value (COLUMNNAME_DiscountDate, DiscountDate); } @@ -236,8 +234,6 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setDueAmt (BigDecimal DueAmt) { - if (DueAmt == null) - throw new IllegalArgumentException ("DueAmt is mandatory."); set_Value (COLUMNNAME_DueAmt, DueAmt); } @@ -258,8 +254,6 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule */ public void setDueDate (Timestamp DueDate) { - if (DueDate == null) - throw new IllegalArgumentException ("DueDate is mandatory."); set_Value (COLUMNNAME_DueDate, DueDate); } diff --git a/base/src/org/compiere/model/X_C_InvoiceSchedule.java b/base/src/org/compiere/model/X_C_InvoiceSchedule.java index d243ac210f..6a80d19f5d 100644 --- a/base/src/org/compiere/model/X_C_InvoiceSchedule.java +++ b/base/src/org/compiere/model/X_C_InvoiceSchedule.java @@ -86,8 +86,6 @@ public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Pe */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -108,9 +106,10 @@ public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Pe */ public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) { - if (C_InvoiceSchedule_ID < 1) - throw new IllegalArgumentException ("C_InvoiceSchedule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); + if (C_InvoiceSchedule_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); } /** Get Invoice Schedule. @@ -221,7 +220,7 @@ public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Pe */ public void setInvoiceFrequency (String InvoiceFrequency) { - if (InvoiceFrequency == null) throw new IllegalArgumentException ("InvoiceFrequency is mandatory"); + set_Value (COLUMNNAME_InvoiceFrequency, InvoiceFrequency); } @@ -255,7 +254,7 @@ public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Pe */ public void setInvoiceWeekDay (String InvoiceWeekDay) { - if (InvoiceWeekDay == null) throw new IllegalArgumentException ("InvoiceWeekDay is mandatory"); + set_Value (COLUMNNAME_InvoiceWeekDay, InvoiceWeekDay); } @@ -355,8 +354,6 @@ public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_InvoiceTax.java b/base/src/org/compiere/model/X_C_InvoiceTax.java index 51059c72d2..ce3f871e1b 100644 --- a/base/src/org/compiere/model/X_C_InvoiceTax.java +++ b/base/src/org/compiere/model/X_C_InvoiceTax.java @@ -100,9 +100,10 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -138,9 +139,10 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -208,8 +210,6 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent */ public void setTaxAmt (BigDecimal TaxAmt) { - if (TaxAmt == null) - throw new IllegalArgumentException ("TaxAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); } @@ -230,8 +230,6 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent */ public void setTaxBaseAmt (BigDecimal TaxBaseAmt) { - if (TaxBaseAmt == null) - throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); } diff --git a/base/src/org/compiere/model/X_C_Job.java b/base/src/org/compiere/model/X_C_Job.java index 92cb0c147f..42674963f6 100644 --- a/base/src/org/compiere/model/X_C_Job.java +++ b/base/src/org/compiere/model/X_C_Job.java @@ -98,9 +98,10 @@ public class X_C_Job extends PO implements I_C_Job, I_Persistent */ public void setC_JobCategory_ID (int C_JobCategory_ID) { - if (C_JobCategory_ID < 1) - throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); + if (C_JobCategory_ID < 1) + set_Value (COLUMNNAME_C_JobCategory_ID, null); + else + set_Value (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); } /** Get Position Category. @@ -120,9 +121,10 @@ public class X_C_Job extends PO implements I_C_Job, I_Persistent */ public void setC_Job_ID (int C_Job_ID) { - if (C_Job_ID < 1) - throw new IllegalArgumentException ("C_Job_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + if (C_Job_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Job_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); } /** Get Position. @@ -200,8 +202,6 @@ public class X_C_Job extends PO implements I_C_Job, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_JobAssignment.java b/base/src/org/compiere/model/X_C_JobAssignment.java index e43efc681a..61352a6941 100644 --- a/base/src/org/compiere/model/X_C_JobAssignment.java +++ b/base/src/org/compiere/model/X_C_JobAssignment.java @@ -98,9 +98,10 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -120,9 +121,10 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis */ public void setC_JobAssignment_ID (int C_JobAssignment_ID) { - if (C_JobAssignment_ID < 1) - throw new IllegalArgumentException ("C_JobAssignment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_JobAssignment_ID, Integer.valueOf(C_JobAssignment_ID)); + if (C_JobAssignment_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_JobAssignment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_JobAssignment_ID, Integer.valueOf(C_JobAssignment_ID)); } /** Get Position Assignment. @@ -158,9 +160,10 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis */ public void setC_Job_ID (int C_Job_ID) { - if (C_Job_ID < 1) - throw new IllegalArgumentException ("C_Job_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + if (C_Job_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Job_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); } /** Get Position. @@ -205,8 +208,6 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_JobCategory.java b/base/src/org/compiere/model/X_C_JobCategory.java index 2c01bda519..f356f5185c 100644 --- a/base/src/org/compiere/model/X_C_JobCategory.java +++ b/base/src/org/compiere/model/X_C_JobCategory.java @@ -77,9 +77,10 @@ public class X_C_JobCategory extends PO implements I_C_JobCategory, I_Persistent */ public void setC_JobCategory_ID (int C_JobCategory_ID) { - if (C_JobCategory_ID < 1) - throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); + if (C_JobCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); } /** Get Position Category. @@ -133,8 +134,6 @@ public class X_C_JobCategory extends PO implements I_C_JobCategory, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_JobRemuneration.java b/base/src/org/compiere/model/X_C_JobRemuneration.java index 7533b1a30b..592f589c85 100644 --- a/base/src/org/compiere/model/X_C_JobRemuneration.java +++ b/base/src/org/compiere/model/X_C_JobRemuneration.java @@ -98,9 +98,10 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe */ public void setC_Job_ID (int C_Job_ID) { - if (C_Job_ID < 1) - throw new IllegalArgumentException ("C_Job_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + if (C_Job_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Job_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); } /** Get Position. @@ -128,9 +129,10 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe */ public void setC_JobRemuneration_ID (int C_JobRemuneration_ID) { - if (C_JobRemuneration_ID < 1) - throw new IllegalArgumentException ("C_JobRemuneration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_JobRemuneration_ID, Integer.valueOf(C_JobRemuneration_ID)); + if (C_JobRemuneration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_JobRemuneration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_JobRemuneration_ID, Integer.valueOf(C_JobRemuneration_ID)); } /** Get Position Remuneration. @@ -166,9 +168,10 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe */ public void setC_Remuneration_ID (int C_Remuneration_ID) { - if (C_Remuneration_ID < 1) - throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + if (C_Remuneration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); } /** Get Remuneration. @@ -205,8 +208,6 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_LandedCost.java b/base/src/org/compiere/model/X_C_LandedCost.java index 913653c6ef..4d7e0f8481 100644 --- a/base/src/org/compiere/model/X_C_LandedCost.java +++ b/base/src/org/compiere/model/X_C_LandedCost.java @@ -98,9 +98,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent */ public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) { - if (C_InvoiceLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + if (C_InvoiceLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); } /** Get Invoice Line. @@ -128,9 +129,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent */ public void setC_LandedCost_ID (int C_LandedCost_ID) { - if (C_LandedCost_ID < 1) - throw new IllegalArgumentException ("C_LandedCost_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_LandedCost_ID, Integer.valueOf(C_LandedCost_ID)); + if (C_LandedCost_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_LandedCost_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LandedCost_ID, Integer.valueOf(C_LandedCost_ID)); } /** Get Landed Cost. @@ -179,7 +181,7 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent */ public void setLandedCostDistribution (String LandedCostDistribution) { - if (LandedCostDistribution == null) throw new IllegalArgumentException ("LandedCostDistribution is mandatory"); + set_Value (COLUMNNAME_LandedCostDistribution, LandedCostDistribution); } @@ -213,9 +215,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent */ public void setM_CostElement_ID (int M_CostElement_ID) { - if (M_CostElement_ID < 1) - throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); - set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + if (M_CostElement_ID < 1) + set_Value (COLUMNNAME_M_CostElement_ID, null); + else + set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. diff --git a/base/src/org/compiere/model/X_C_LandedCostAllocation.java b/base/src/org/compiere/model/X_C_LandedCostAllocation.java index 38baf1a7a7..e4d4584771 100644 --- a/base/src/org/compiere/model/X_C_LandedCostAllocation.java +++ b/base/src/org/compiere/model/X_C_LandedCostAllocation.java @@ -86,8 +86,6 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -108,8 +106,6 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setBase (BigDecimal Base) { - if (Base == null) - throw new IllegalArgumentException ("Base is mandatory."); set_Value (COLUMNNAME_Base, Base); } @@ -146,9 +142,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) { - if (C_InvoiceLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + if (C_InvoiceLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); } /** Get Invoice Line. @@ -176,9 +173,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setC_LandedCostAllocation_ID (int C_LandedCostAllocation_ID) { - if (C_LandedCostAllocation_ID < 1) - throw new IllegalArgumentException ("C_LandedCostAllocation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_LandedCostAllocation_ID, Integer.valueOf(C_LandedCostAllocation_ID)); + if (C_LandedCostAllocation_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_LandedCostAllocation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LandedCostAllocation_ID, Integer.valueOf(C_LandedCostAllocation_ID)); } /** Get Landed Cost Allocation. @@ -198,7 +196,7 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -237,9 +235,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setM_CostElement_ID (int M_CostElement_ID) { - if (M_CostElement_ID < 1) - throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); - set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + if (M_CostElement_ID < 1) + set_Value (COLUMNNAME_M_CostElement_ID, null); + else + set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. @@ -275,9 +274,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -297,8 +297,6 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_C_Location.java b/base/src/org/compiere/model/X_C_Location.java index 9317778e17..d2493ce985 100644 --- a/base/src/org/compiere/model/X_C_Location.java +++ b/base/src/org/compiere/model/X_C_Location.java @@ -202,9 +202,10 @@ public class X_C_Location extends PO implements I_C_Location, I_Persistent */ public void setC_Country_ID (int C_Country_ID) { - if (C_Country_ID < 1) - throw new IllegalArgumentException ("C_Country_ID is mandatory."); - set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + if (C_Country_ID < 1) + set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); } /** Get Country. @@ -249,9 +250,10 @@ public class X_C_Location extends PO implements I_C_Location, I_Persistent */ public void setC_Location_ID (int C_Location_ID) { - if (C_Location_ID < 1) - throw new IllegalArgumentException ("C_Location_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + if (C_Location_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Location_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); } /** Get Address. diff --git a/base/src/org/compiere/model/X_C_NonBusinessDay.java b/base/src/org/compiere/model/X_C_NonBusinessDay.java index 8c79a5bd05..7d2dddf80d 100644 --- a/base/src/org/compiere/model/X_C_NonBusinessDay.java +++ b/base/src/org/compiere/model/X_C_NonBusinessDay.java @@ -97,9 +97,10 @@ public class X_C_NonBusinessDay extends PO implements I_C_NonBusinessDay, I_Pers */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -119,9 +120,10 @@ public class X_C_NonBusinessDay extends PO implements I_C_NonBusinessDay, I_Pers */ public void setC_NonBusinessDay_ID (int C_NonBusinessDay_ID) { - if (C_NonBusinessDay_ID < 1) - throw new IllegalArgumentException ("C_NonBusinessDay_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_NonBusinessDay_ID, Integer.valueOf(C_NonBusinessDay_ID)); + if (C_NonBusinessDay_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_NonBusinessDay_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_NonBusinessDay_ID, Integer.valueOf(C_NonBusinessDay_ID)); } /** Get Non Business Day. @@ -141,8 +143,6 @@ public class X_C_NonBusinessDay extends PO implements I_C_NonBusinessDay, I_Pers */ public void setDate1 (Timestamp Date1) { - if (Date1 == null) - throw new IllegalArgumentException ("Date1 is mandatory."); set_Value (COLUMNNAME_Date1, Date1); } diff --git a/base/src/org/compiere/model/X_C_Order.java b/base/src/org/compiere/model/X_C_Order.java index 783b31c73d..81fd7d68ee 100644 --- a/base/src/org/compiere/model/X_C_Order.java +++ b/base/src/org/compiere/model/X_C_Order.java @@ -357,9 +357,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -395,9 +396,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -573,9 +575,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -611,9 +614,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -633,9 +637,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) { - if (C_DocTypeTarget_ID < 1) - throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); - set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + if (C_DocTypeTarget_ID < 1) + set_Value (COLUMNNAME_C_DocTypeTarget_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); } /** Get Target Document Type. @@ -692,9 +697,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_Order_ID (int C_Order_ID) { - if (C_Order_ID < 1) - throw new IllegalArgumentException ("C_Order_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + if (C_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); } /** Get Order. @@ -769,9 +775,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -869,8 +876,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -888,8 +893,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDateOrdered (Timestamp DateOrdered) { - if (DateOrdered == null) - throw new IllegalArgumentException ("DateOrdered is mandatory."); set_Value (COLUMNNAME_DateOrdered, DateOrdered); } @@ -924,8 +927,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDatePromised (Timestamp DatePromised) { - if (DatePromised == null) - throw new IllegalArgumentException ("DatePromised is mandatory."); set_Value (COLUMNNAME_DatePromised, DatePromised); } @@ -957,7 +958,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDeliveryRule (String DeliveryRule) { - if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); } @@ -983,7 +984,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDeliveryViaRule (String DeliveryViaRule) { - if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); } @@ -1048,7 +1049,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -1092,7 +1093,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -1110,8 +1111,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -1206,8 +1205,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setFreightAmt (BigDecimal FreightAmt) { - if (FreightAmt == null) - throw new IllegalArgumentException ("FreightAmt is mandatory."); set_Value (COLUMNNAME_FreightAmt, FreightAmt); } @@ -1238,7 +1235,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setFreightCostRule (String FreightCostRule) { - if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); } @@ -1256,8 +1253,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setGrandTotal (BigDecimal GrandTotal) { - if (GrandTotal == null) - throw new IllegalArgumentException ("GrandTotal is mandatory."); set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); } @@ -1288,7 +1283,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setInvoiceRule (String InvoiceRule) { - if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory"); + set_Value (COLUMNNAME_InvoiceRule, InvoiceRule); } @@ -1666,9 +1661,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -1743,9 +1739,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -1841,7 +1838,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setPaymentRule (String PaymentRule) { - if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + set_Value (COLUMNNAME_PaymentRule, PaymentRule); } @@ -1912,7 +1909,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setPriorityRule (String PriorityRule) { - if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); + set_Value (COLUMNNAME_PriorityRule, PriorityRule); } @@ -1998,9 +1995,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. @@ -2044,8 +2042,6 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent */ public void setTotalLines (BigDecimal TotalLines) { - if (TotalLines == null) - throw new IllegalArgumentException ("TotalLines is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); } diff --git a/base/src/org/compiere/model/X_C_OrderLine.java b/base/src/org/compiere/model/X_C_OrderLine.java index 6612ca0c81..14c822c843 100644 --- a/base/src/org/compiere/model/X_C_OrderLine.java +++ b/base/src/org/compiere/model/X_C_OrderLine.java @@ -230,9 +230,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -346,9 +347,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -384,9 +386,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_Order_ID (int C_Order_ID) { - if (C_Order_ID < 1) - throw new IllegalArgumentException ("C_Order_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + if (C_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); } /** Get Order. @@ -414,9 +417,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_OrderLine_ID (int C_OrderLine_ID) { - if (C_OrderLine_ID < 1) - throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + if (C_OrderLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); } /** Get Sales Order Line. @@ -569,9 +573,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_Value (COLUMNNAME_C_Tax_ID, null); + else + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -607,9 +612,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -663,8 +669,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setDateOrdered (Timestamp DateOrdered) { - if (DateOrdered == null) - throw new IllegalArgumentException ("DateOrdered is mandatory."); set_Value (COLUMNNAME_DateOrdered, DateOrdered); } @@ -736,8 +740,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setFreightAmt (BigDecimal FreightAmt) { - if (FreightAmt == null) - throw new IllegalArgumentException ("FreightAmt is mandatory."); set_Value (COLUMNNAME_FreightAmt, FreightAmt); } @@ -802,8 +804,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setLineNetAmt (BigDecimal LineNetAmt) { - if (LineNetAmt == null) - throw new IllegalArgumentException ("LineNetAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); } @@ -847,9 +847,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -947,9 +948,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -1005,8 +1007,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setPriceActual (BigDecimal PriceActual) { - if (PriceActual == null) - throw new IllegalArgumentException ("PriceActual is mandatory."); set_ValueNoCheck (COLUMNNAME_PriceActual, PriceActual); } @@ -1047,8 +1047,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setPriceEntered (BigDecimal PriceEntered) { - if (PriceEntered == null) - throw new IllegalArgumentException ("PriceEntered is mandatory."); set_Value (COLUMNNAME_PriceEntered, PriceEntered); } @@ -1069,8 +1067,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setPriceLimit (BigDecimal PriceLimit) { - if (PriceLimit == null) - throw new IllegalArgumentException ("PriceLimit is mandatory."); set_Value (COLUMNNAME_PriceLimit, PriceLimit); } @@ -1091,8 +1087,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setPriceList (BigDecimal PriceList) { - if (PriceList == null) - throw new IllegalArgumentException ("PriceList is mandatory."); set_Value (COLUMNNAME_PriceList, PriceList); } @@ -1137,8 +1131,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyDelivered (BigDecimal QtyDelivered) { - if (QtyDelivered == null) - throw new IllegalArgumentException ("QtyDelivered is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyDelivered, QtyDelivered); } @@ -1159,8 +1151,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyEntered (BigDecimal QtyEntered) { - if (QtyEntered == null) - throw new IllegalArgumentException ("QtyEntered is mandatory."); set_Value (COLUMNNAME_QtyEntered, QtyEntered); } @@ -1181,8 +1171,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyInvoiced (BigDecimal QtyInvoiced) { - if (QtyInvoiced == null) - throw new IllegalArgumentException ("QtyInvoiced is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyInvoiced, QtyInvoiced); } @@ -1203,8 +1191,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyLostSales (BigDecimal QtyLostSales) { - if (QtyLostSales == null) - throw new IllegalArgumentException ("QtyLostSales is mandatory."); set_Value (COLUMNNAME_QtyLostSales, QtyLostSales); } @@ -1225,8 +1211,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyOrdered (BigDecimal QtyOrdered) { - if (QtyOrdered == null) - throw new IllegalArgumentException ("QtyOrdered is mandatory."); set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); } @@ -1247,8 +1231,6 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent */ public void setQtyReserved (BigDecimal QtyReserved) { - if (QtyReserved == null) - throw new IllegalArgumentException ("QtyReserved is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); } diff --git a/base/src/org/compiere/model/X_C_OrderTax.java b/base/src/org/compiere/model/X_C_OrderTax.java index 46c41d66f0..435e6678d1 100644 --- a/base/src/org/compiere/model/X_C_OrderTax.java +++ b/base/src/org/compiere/model/X_C_OrderTax.java @@ -100,9 +100,10 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent */ public void setC_Order_ID (int C_Order_ID) { - if (C_Order_ID < 1) - throw new IllegalArgumentException ("C_Order_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + if (C_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); } /** Get Order. @@ -138,9 +139,10 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -208,8 +210,6 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent */ public void setTaxAmt (BigDecimal TaxAmt) { - if (TaxAmt == null) - throw new IllegalArgumentException ("TaxAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); } @@ -230,8 +230,6 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent */ public void setTaxBaseAmt (BigDecimal TaxBaseAmt) { - if (TaxBaseAmt == null) - throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); } diff --git a/base/src/org/compiere/model/X_C_OrgAssignment.java b/base/src/org/compiere/model/X_C_OrgAssignment.java index 59755db083..af63ec0a13 100644 --- a/base/src/org/compiere/model/X_C_OrgAssignment.java +++ b/base/src/org/compiere/model/X_C_OrgAssignment.java @@ -96,9 +96,10 @@ public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persis */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -118,9 +119,10 @@ public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persis */ public void setC_OrgAssignment_ID (int C_OrgAssignment_ID) { - if (C_OrgAssignment_ID < 1) - throw new IllegalArgumentException ("C_OrgAssignment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_OrgAssignment_ID, Integer.valueOf(C_OrgAssignment_ID)); + if (C_OrgAssignment_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_OrgAssignment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrgAssignment_ID, Integer.valueOf(C_OrgAssignment_ID)); } /** Get Org Assignment. @@ -157,8 +159,6 @@ public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persis */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_POS.java b/base/src/org/compiere/model/X_C_POS.java index 1f5444dcf1..f59f42745b 100644 --- a/base/src/org/compiere/model/X_C_POS.java +++ b/base/src/org/compiere/model/X_C_POS.java @@ -177,9 +177,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setC_CashBook_ID (int C_CashBook_ID) { - if (C_CashBook_ID < 1) - throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); - set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + if (C_CashBook_ID < 1) + set_Value (COLUMNNAME_C_CashBook_ID, null); + else + set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); } /** Get Cash Book. @@ -215,7 +216,7 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -238,9 +239,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setC_POS_ID (int C_POS_ID) { - if (C_POS_ID < 1) - throw new IllegalArgumentException ("C_POS_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); + if (C_POS_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_POS_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); } /** Get POS Terminal. @@ -373,9 +375,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -411,9 +414,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -433,8 +437,6 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -477,9 +479,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. diff --git a/base/src/org/compiere/model/X_C_POSKey.java b/base/src/org/compiere/model/X_C_POSKey.java index 5c244fbd77..4509b2fbe8 100644 --- a/base/src/org/compiere/model/X_C_POSKey.java +++ b/base/src/org/compiere/model/X_C_POSKey.java @@ -124,9 +124,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent */ public void setC_POSKey_ID (int C_POSKey_ID) { - if (C_POSKey_ID < 1) - throw new IllegalArgumentException ("C_POSKey_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_POSKey_ID, Integer.valueOf(C_POSKey_ID)); + if (C_POSKey_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_POSKey_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_POSKey_ID, Integer.valueOf(C_POSKey_ID)); } /** Get POS Key. @@ -162,9 +163,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent */ public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) { - if (C_POSKeyLayout_ID < 1) - throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + if (C_POSKeyLayout_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); } /** Get POS Key Layout. @@ -217,9 +219,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -239,8 +242,6 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -266,8 +267,6 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_C_POSKeyLayout.java b/base/src/org/compiere/model/X_C_POSKeyLayout.java index 5eeadb0fcb..867b15bb1c 100644 --- a/base/src/org/compiere/model/X_C_POSKeyLayout.java +++ b/base/src/org/compiere/model/X_C_POSKeyLayout.java @@ -77,9 +77,10 @@ public class X_C_POSKeyLayout extends PO implements I_C_POSKeyLayout, I_Persiste */ public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) { - if (C_POSKeyLayout_ID < 1) - throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + if (C_POSKeyLayout_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); } /** Get POS Key Layout. @@ -133,8 +134,6 @@ public class X_C_POSKeyLayout extends PO implements I_C_POSKeyLayout, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_PaySchedule.java b/base/src/org/compiere/model/X_C_PaySchedule.java index 527543a669..04a2593029 100644 --- a/base/src/org/compiere/model/X_C_PaySchedule.java +++ b/base/src/org/compiere/model/X_C_PaySchedule.java @@ -103,9 +103,10 @@ public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -133,9 +134,10 @@ public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent */ public void setC_PaySchedule_ID (int C_PaySchedule_ID) { - if (C_PaySchedule_ID < 1) - throw new IllegalArgumentException ("C_PaySchedule_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, Integer.valueOf(C_PaySchedule_ID)); + if (C_PaySchedule_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, Integer.valueOf(C_PaySchedule_ID)); } /** Get Payment Schedule. @@ -155,8 +157,6 @@ public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent */ public void setDiscount (BigDecimal Discount) { - if (Discount == null) - throw new IllegalArgumentException ("Discount is mandatory."); set_Value (COLUMNNAME_Discount, Discount); } @@ -295,8 +295,6 @@ public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent */ public void setPercentage (BigDecimal Percentage) { - if (Percentage == null) - throw new IllegalArgumentException ("Percentage is mandatory."); set_Value (COLUMNNAME_Percentage, Percentage); } diff --git a/base/src/org/compiere/model/X_C_PaySelection.java b/base/src/org/compiere/model/X_C_PaySelection.java index cd0f48513b..b052f9a00c 100644 --- a/base/src/org/compiere/model/X_C_PaySelection.java +++ b/base/src/org/compiere/model/X_C_PaySelection.java @@ -106,9 +106,10 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -128,9 +129,10 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste */ public void setC_PaySelection_ID (int C_PaySelection_ID) { - if (C_PaySelection_ID < 1) - throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + if (C_PaySelection_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); } /** Get Payment Selection. @@ -208,8 +210,6 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -235,8 +235,6 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste */ public void setPayDate (Timestamp PayDate) { - if (PayDate == null) - throw new IllegalArgumentException ("PayDate is mandatory."); set_Value (COLUMNNAME_PayDate, PayDate); } @@ -299,8 +297,6 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste */ public void setTotalAmt (BigDecimal TotalAmt) { - if (TotalAmt == null) - throw new IllegalArgumentException ("TotalAmt is mandatory."); set_Value (COLUMNNAME_TotalAmt, TotalAmt); } diff --git a/base/src/org/compiere/model/X_C_PaySelectionCheck.java b/base/src/org/compiere/model/X_C_PaySelectionCheck.java index 201a8461ab..84b80ce4cc 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionCheck.java +++ b/base/src/org/compiere/model/X_C_PaySelectionCheck.java @@ -107,9 +107,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -191,9 +192,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID) { - if (C_PaySelectionCheck_ID < 1) - throw new IllegalArgumentException ("C_PaySelectionCheck_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySelectionCheck_ID, Integer.valueOf(C_PaySelectionCheck_ID)); + if (C_PaySelectionCheck_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySelectionCheck_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySelectionCheck_ID, Integer.valueOf(C_PaySelectionCheck_ID)); } /** Get Pay Selection Check. @@ -229,9 +231,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setC_PaySelection_ID (int C_PaySelection_ID) { - if (C_PaySelection_ID < 1) - throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + if (C_PaySelection_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); } /** Get Payment Selection. @@ -251,8 +254,6 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setDiscountAmt (BigDecimal DiscountAmt) { - if (DiscountAmt == null) - throw new IllegalArgumentException ("DiscountAmt is mandatory."); set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); } @@ -359,8 +360,6 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setPayAmt (BigDecimal PayAmt) { - if (PayAmt == null) - throw new IllegalArgumentException ("PayAmt is mandatory."); set_Value (COLUMNNAME_PayAmt, PayAmt); } @@ -397,7 +396,7 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, */ public void setPaymentRule (String PaymentRule) { - if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + set_Value (COLUMNNAME_PaymentRule, PaymentRule); } diff --git a/base/src/org/compiere/model/X_C_PaySelectionLine.java b/base/src/org/compiere/model/X_C_PaySelectionLine.java index db5aac7492..b1848b9d9e 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionLine.java +++ b/base/src/org/compiere/model/X_C_PaySelectionLine.java @@ -110,9 +110,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -187,9 +188,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setC_PaySelection_ID (int C_PaySelection_ID) { - if (C_PaySelection_ID < 1) - throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + if (C_PaySelection_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); } /** Get Payment Selection. @@ -209,9 +211,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setC_PaySelectionLine_ID (int C_PaySelectionLine_ID) { - if (C_PaySelectionLine_ID < 1) - throw new IllegalArgumentException ("C_PaySelectionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, Integer.valueOf(C_PaySelectionLine_ID)); + if (C_PaySelectionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, Integer.valueOf(C_PaySelectionLine_ID)); } /** Get Payment Selection Line. @@ -256,8 +259,6 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setDifferenceAmt (BigDecimal DifferenceAmt) { - if (DifferenceAmt == null) - throw new IllegalArgumentException ("DifferenceAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_DifferenceAmt, DifferenceAmt); } @@ -278,8 +279,6 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setDiscountAmt (BigDecimal DiscountAmt) { - if (DiscountAmt == null) - throw new IllegalArgumentException ("DiscountAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_DiscountAmt, DiscountAmt); } @@ -368,8 +367,6 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setOpenAmt (BigDecimal OpenAmt) { - if (OpenAmt == null) - throw new IllegalArgumentException ("OpenAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_OpenAmt, OpenAmt); } @@ -390,8 +387,6 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setPayAmt (BigDecimal PayAmt) { - if (PayAmt == null) - throw new IllegalArgumentException ("PayAmt is mandatory."); set_Value (COLUMNNAME_PayAmt, PayAmt); } @@ -428,7 +423,7 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ */ public void setPaymentRule (String PaymentRule) { - if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + set_Value (COLUMNNAME_PaymentRule, PaymentRule); } diff --git a/base/src/org/compiere/model/X_C_Payment.java b/base/src/org/compiere/model/X_C_Payment.java index ddaee8c336..2a5a37c926 100644 --- a/base/src/org/compiere/model/X_C_Payment.java +++ b/base/src/org/compiere/model/X_C_Payment.java @@ -400,9 +400,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -633,9 +634,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -671,9 +673,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -847,9 +850,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setC_Payment_ID (int C_Payment_ID) { - if (C_Payment_ID < 1) - throw new IllegalArgumentException ("C_Payment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + if (C_Payment_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); } /** Get Payment. @@ -1016,8 +1020,6 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -1035,8 +1037,6 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_Value (COLUMNNAME_DateTrx, DateTrx); } @@ -1121,7 +1121,7 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -1165,7 +1165,7 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -1183,8 +1183,6 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -1497,8 +1495,6 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setPayAmt (BigDecimal PayAmt) { - if (PayAmt == null) - throw new IllegalArgumentException ("PayAmt is mandatory."); set_Value (COLUMNNAME_PayAmt, PayAmt); } @@ -1911,7 +1907,7 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setTenderType (String TenderType) { - if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory"); + set_Value (COLUMNNAME_TenderType, TenderType); } @@ -1943,7 +1939,7 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent */ public void setTrxType (String TrxType) { - if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); + set_Value (COLUMNNAME_TrxType, TrxType); } diff --git a/base/src/org/compiere/model/X_C_PaymentAllocate.java b/base/src/org/compiere/model/X_C_PaymentAllocate.java index 1127167231..1ccc1ba31b 100644 --- a/base/src/org/compiere/model/X_C_PaymentAllocate.java +++ b/base/src/org/compiere/model/X_C_PaymentAllocate.java @@ -86,8 +86,6 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setAmount (BigDecimal Amount) { - if (Amount == null) - throw new IllegalArgumentException ("Amount is mandatory."); set_Value (COLUMNNAME_Amount, Amount); } @@ -163,9 +161,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -193,9 +192,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setC_PaymentAllocate_ID (int C_PaymentAllocate_ID) { - if (C_PaymentAllocate_ID < 1) - throw new IllegalArgumentException ("C_PaymentAllocate_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaymentAllocate_ID, Integer.valueOf(C_PaymentAllocate_ID)); + if (C_PaymentAllocate_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentAllocate_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentAllocate_ID, Integer.valueOf(C_PaymentAllocate_ID)); } /** Get Allocate Payment. @@ -231,9 +231,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setC_Payment_ID (int C_Payment_ID) { - if (C_Payment_ID < 1) - throw new IllegalArgumentException ("C_Payment_ID is mandatory."); - set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); } /** Get Payment. @@ -253,8 +254,6 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setDiscountAmt (BigDecimal DiscountAmt) { - if (DiscountAmt == null) - throw new IllegalArgumentException ("DiscountAmt is mandatory."); set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); } @@ -292,8 +291,6 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setOverUnderAmt (BigDecimal OverUnderAmt) { - if (OverUnderAmt == null) - throw new IllegalArgumentException ("OverUnderAmt is mandatory."); set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); } @@ -333,8 +330,6 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe */ public void setWriteOffAmt (BigDecimal WriteOffAmt) { - if (WriteOffAmt == null) - throw new IllegalArgumentException ("WriteOffAmt is mandatory."); set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); } diff --git a/base/src/org/compiere/model/X_C_PaymentBatch.java b/base/src/org/compiere/model/X_C_PaymentBatch.java index 7bd8fba5f4..37aedd05ea 100644 --- a/base/src/org/compiere/model/X_C_PaymentBatch.java +++ b/base/src/org/compiere/model/X_C_PaymentBatch.java @@ -83,9 +83,10 @@ public class X_C_PaymentBatch extends PO implements I_C_PaymentBatch, I_Persiste */ public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) { - if (C_PaymentBatch_ID < 1) - throw new IllegalArgumentException ("C_PaymentBatch_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID)); + if (C_PaymentBatch_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID)); } /** Get Payment Batch. @@ -121,9 +122,10 @@ public class X_C_PaymentBatch extends PO implements I_C_PaymentBatch, I_Persiste */ public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) { - if (C_PaymentProcessor_ID < 1) - throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); - set_Value (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); + if (C_PaymentProcessor_ID < 1) + set_Value (COLUMNNAME_C_PaymentProcessor_ID, null); + else + set_Value (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); } /** Get Payment Processor. @@ -168,8 +170,6 @@ public class X_C_PaymentBatch extends PO implements I_C_PaymentBatch, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_PaymentProcessor.java b/base/src/org/compiere/model/X_C_PaymentProcessor.java index 2efc6feaef..f85bc37ca4 100644 --- a/base/src/org/compiere/model/X_C_PaymentProcessor.java +++ b/base/src/org/compiere/model/X_C_PaymentProcessor.java @@ -378,9 +378,10 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setC_BankAccount_ID (int C_BankAccount_ID) { - if (C_BankAccount_ID < 1) - throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); } /** Get Bank Account. @@ -439,8 +440,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setCommission (BigDecimal Commission) { - if (Commission == null) - throw new IllegalArgumentException ("Commission is mandatory."); set_Value (COLUMNNAME_Commission, Commission); } @@ -461,8 +460,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setCostPerTrx (BigDecimal CostPerTrx) { - if (CostPerTrx == null) - throw new IllegalArgumentException ("CostPerTrx is mandatory."); set_Value (COLUMNNAME_CostPerTrx, CostPerTrx); } @@ -483,9 +480,10 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) { - if (C_PaymentProcessor_ID < 1) - throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); + if (C_PaymentProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); } /** Get Payment Processor. @@ -522,8 +520,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setHostAddress (String HostAddress) { - if (HostAddress == null) - throw new IllegalArgumentException ("HostAddress is mandatory."); set_Value (COLUMNNAME_HostAddress, HostAddress); } @@ -581,8 +577,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -625,8 +619,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setPassword (String Password) { - if (Password == null) - throw new IllegalArgumentException ("Password is mandatory."); set_Value (COLUMNNAME_Password, Password); } @@ -756,8 +748,6 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ */ public void setUserID (String UserID) { - if (UserID == null) - throw new IllegalArgumentException ("UserID is mandatory."); set_Value (COLUMNNAME_UserID, UserID); } diff --git a/base/src/org/compiere/model/X_C_PaymentTerm.java b/base/src/org/compiere/model/X_C_PaymentTerm.java index 7694c159d9..f16ed8ec64 100644 --- a/base/src/org/compiere/model/X_C_PaymentTerm.java +++ b/base/src/org/compiere/model/X_C_PaymentTerm.java @@ -113,9 +113,10 @@ public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -152,8 +153,6 @@ public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent */ public void setDiscount (BigDecimal Discount) { - if (Discount == null) - throw new IllegalArgumentException ("Discount is mandatory."); set_Value (COLUMNNAME_Discount, Discount); } @@ -174,8 +173,6 @@ public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent */ public void setDiscount2 (BigDecimal Discount2) { - if (Discount2 == null) - throw new IllegalArgumentException ("Discount2 is mandatory."); set_Value (COLUMNNAME_Discount2, Discount2); } @@ -429,8 +426,6 @@ public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -531,8 +526,6 @@ public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_Period.java b/base/src/org/compiere/model/X_C_Period.java index aa841c9b35..0e4da73d9f 100644 --- a/base/src/org/compiere/model/X_C_Period.java +++ b/base/src/org/compiere/model/X_C_Period.java @@ -85,9 +85,10 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -123,9 +124,10 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent */ public void setC_Year_ID (int C_Year_ID) { - if (C_Year_ID < 1) - throw new IllegalArgumentException ("C_Year_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + if (C_Year_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Year_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); } /** Get Year. @@ -162,8 +164,6 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -215,7 +215,7 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent */ public void setPeriodType (String PeriodType) { - if (PeriodType == null) throw new IllegalArgumentException ("PeriodType is mandatory"); + set_ValueNoCheck (COLUMNNAME_PeriodType, PeriodType); } @@ -254,8 +254,6 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent */ public void setStartDate (Timestamp StartDate) { - if (StartDate == null) - throw new IllegalArgumentException ("StartDate is mandatory."); set_Value (COLUMNNAME_StartDate, StartDate); } diff --git a/base/src/org/compiere/model/X_C_PeriodControl.java b/base/src/org/compiere/model/X_C_PeriodControl.java index 4571532c24..887ac69a2d 100644 --- a/base/src/org/compiere/model/X_C_PeriodControl.java +++ b/base/src/org/compiere/model/X_C_PeriodControl.java @@ -80,9 +80,10 @@ public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persis @param C_PeriodControl_ID Period Control */ public void setC_PeriodControl_ID (int C_PeriodControl_ID) { - if (C_PeriodControl_ID < 1) - throw new IllegalArgumentException ("C_PeriodControl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_PeriodControl_ID, Integer.valueOf(C_PeriodControl_ID)); + if (C_PeriodControl_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PeriodControl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PeriodControl_ID, Integer.valueOf(C_PeriodControl_ID)); } /** Get Period Control. @@ -125,9 +126,10 @@ public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persis */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -207,7 +209,7 @@ public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persis */ public void setDocBaseType (String DocBaseType) { - if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); + set_ValueNoCheck (COLUMNNAME_DocBaseType, DocBaseType); } @@ -235,7 +237,7 @@ public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persis */ public void setPeriodAction (String PeriodAction) { - if (PeriodAction == null) throw new IllegalArgumentException ("PeriodAction is mandatory"); + set_Value (COLUMNNAME_PeriodAction, PeriodAction); } diff --git a/base/src/org/compiere/model/X_C_Phase.java b/base/src/org/compiere/model/X_C_Phase.java index 7de6e3636d..cff45951b1 100644 --- a/base/src/org/compiere/model/X_C_Phase.java +++ b/base/src/org/compiere/model/X_C_Phase.java @@ -86,9 +86,10 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent */ public void setC_Phase_ID (int C_Phase_ID) { - if (C_Phase_ID < 1) - throw new IllegalArgumentException ("C_Phase_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + if (C_Phase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); } /** Get Standard Phase. @@ -124,9 +125,10 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent */ public void setC_ProjectType_ID (int C_ProjectType_ID) { - if (C_ProjectType_ID < 1) - throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); + if (C_ProjectType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); } /** Get Project Type. @@ -219,8 +221,6 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -266,8 +266,6 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent */ public void setStandardQty (BigDecimal StandardQty) { - if (StandardQty == null) - throw new IllegalArgumentException ("StandardQty is mandatory."); set_Value (COLUMNNAME_StandardQty, StandardQty); } diff --git a/base/src/org/compiere/model/X_C_Project.java b/base/src/org/compiere/model/X_C_Project.java index 38fd450811..6d191b8920 100644 --- a/base/src/org/compiere/model/X_C_Project.java +++ b/base/src/org/compiere/model/X_C_Project.java @@ -295,9 +295,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -317,8 +318,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setCommittedAmt (BigDecimal CommittedAmt) { - if (CommittedAmt == null) - throw new IllegalArgumentException ("CommittedAmt is mandatory."); set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); } @@ -339,8 +338,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setCommittedQty (BigDecimal CommittedQty) { - if (CommittedQty == null) - throw new IllegalArgumentException ("CommittedQty is mandatory."); set_Value (COLUMNNAME_CommittedQty, CommittedQty); } @@ -456,9 +453,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setC_Project_ID (int C_Project_ID) { - if (C_Project_ID < 1) - throw new IllegalArgumentException ("C_Project_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + if (C_Project_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @@ -563,8 +561,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setInvoicedAmt (BigDecimal InvoicedAmt) { - if (InvoicedAmt == null) - throw new IllegalArgumentException ("InvoicedAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_InvoicedAmt, InvoicedAmt); } @@ -585,8 +581,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setInvoicedQty (BigDecimal InvoicedQty) { - if (InvoicedQty == null) - throw new IllegalArgumentException ("InvoicedQty is mandatory."); set_ValueNoCheck (COLUMNNAME_InvoicedQty, InvoicedQty); } @@ -757,8 +751,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -793,8 +785,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setPlannedAmt (BigDecimal PlannedAmt) { - if (PlannedAmt == null) - throw new IllegalArgumentException ("PlannedAmt is mandatory."); set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); } @@ -815,8 +805,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) { - if (PlannedMarginAmt == null) - throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); set_Value (COLUMNNAME_PlannedMarginAmt, PlannedMarginAmt); } @@ -837,8 +825,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setPlannedQty (BigDecimal PlannedQty) { - if (PlannedQty == null) - throw new IllegalArgumentException ("PlannedQty is mandatory."); set_Value (COLUMNNAME_PlannedQty, PlannedQty); } @@ -921,8 +907,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setProjectBalanceAmt (BigDecimal ProjectBalanceAmt) { - if (ProjectBalanceAmt == null) - throw new IllegalArgumentException ("ProjectBalanceAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_ProjectBalanceAmt, ProjectBalanceAmt); } @@ -979,7 +963,7 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setProjectLineLevel (String ProjectLineLevel) { - if (ProjectLineLevel == null) throw new IllegalArgumentException ("ProjectLineLevel is mandatory"); + set_Value (COLUMNNAME_ProjectLineLevel, ProjectLineLevel); } @@ -1009,7 +993,7 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setProjInvoiceRule (String ProjInvoiceRule) { - if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); } @@ -1050,8 +1034,6 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_ProjectIssue.java b/base/src/org/compiere/model/X_C_ProjectIssue.java index f1a3ff9417..1bae58ab02 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssue.java +++ b/base/src/org/compiere/model/X_C_ProjectIssue.java @@ -108,9 +108,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setC_Project_ID (int C_Project_ID) { - if (C_Project_ID < 1) - throw new IllegalArgumentException ("C_Project_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + if (C_Project_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @@ -138,9 +139,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) { - if (C_ProjectIssue_ID < 1) - throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + if (C_ProjectIssue_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); } /** Get Project Issue. @@ -197,9 +199,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -258,9 +261,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -280,8 +284,6 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } @@ -299,8 +301,6 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -337,9 +337,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_C_ProjectIssueMA.java b/base/src/org/compiere/model/X_C_ProjectIssueMA.java index 219fbd7144..f30cbfcd6f 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssueMA.java +++ b/base/src/org/compiere/model/X_C_ProjectIssueMA.java @@ -98,9 +98,10 @@ public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Pers */ public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) { - if (C_ProjectIssue_ID < 1) - throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + if (C_ProjectIssue_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); } /** Get Project Issue. @@ -128,9 +129,10 @@ public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Pers */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -150,8 +152,6 @@ public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Pers */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } diff --git a/base/src/org/compiere/model/X_C_ProjectLine.java b/base/src/org/compiere/model/X_C_ProjectLine.java index 9ea7bddd88..d45335fc83 100644 --- a/base/src/org/compiere/model/X_C_ProjectLine.java +++ b/base/src/org/compiere/model/X_C_ProjectLine.java @@ -213,9 +213,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setC_Project_ID (int C_Project_ID) { - if (C_Project_ID < 1) - throw new IllegalArgumentException ("C_Project_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + if (C_Project_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @@ -274,9 +275,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setC_ProjectLine_ID (int C_ProjectLine_ID) { - if (C_ProjectLine_ID < 1) - throw new IllegalArgumentException ("C_ProjectLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectLine_ID, Integer.valueOf(C_ProjectLine_ID)); + if (C_ProjectLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectLine_ID, Integer.valueOf(C_ProjectLine_ID)); } /** Get Project Line. @@ -405,8 +407,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setInvoicedAmt (BigDecimal InvoicedAmt) { - if (InvoicedAmt == null) - throw new IllegalArgumentException ("InvoicedAmt is mandatory."); set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); } @@ -427,8 +427,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setInvoicedQty (BigDecimal InvoicedQty) { - if (InvoicedQty == null) - throw new IllegalArgumentException ("InvoicedQty is mandatory."); set_Value (COLUMNNAME_InvoicedQty, InvoicedQty); } @@ -579,8 +577,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setPlannedAmt (BigDecimal PlannedAmt) { - if (PlannedAmt == null) - throw new IllegalArgumentException ("PlannedAmt is mandatory."); set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); } @@ -601,8 +597,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) { - if (PlannedMarginAmt == null) - throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); set_Value (COLUMNNAME_PlannedMarginAmt, PlannedMarginAmt); } @@ -623,8 +617,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setPlannedPrice (BigDecimal PlannedPrice) { - if (PlannedPrice == null) - throw new IllegalArgumentException ("PlannedPrice is mandatory."); set_Value (COLUMNNAME_PlannedPrice, PlannedPrice); } @@ -645,8 +637,6 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent */ public void setPlannedQty (BigDecimal PlannedQty) { - if (PlannedQty == null) - throw new IllegalArgumentException ("PlannedQty is mandatory."); set_Value (COLUMNNAME_PlannedQty, PlannedQty); } diff --git a/base/src/org/compiere/model/X_C_ProjectPhase.java b/base/src/org/compiere/model/X_C_ProjectPhase.java index 831cf754b5..ab234db7a1 100644 --- a/base/src/org/compiere/model/X_C_ProjectPhase.java +++ b/base/src/org/compiere/model/X_C_ProjectPhase.java @@ -91,8 +91,6 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setCommittedAmt (BigDecimal CommittedAmt) { - if (CommittedAmt == null) - throw new IllegalArgumentException ("CommittedAmt is mandatory."); set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); } @@ -207,9 +205,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setC_Project_ID (int C_Project_ID) { - if (C_Project_ID < 1) - throw new IllegalArgumentException ("C_Project_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + if (C_Project_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @@ -229,9 +228,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) { - if (C_ProjectPhase_ID < 1) - throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + if (C_ProjectPhase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); } /** Get Project Phase. @@ -406,8 +406,6 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -425,8 +423,6 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setPlannedAmt (BigDecimal PlannedAmt) { - if (PlannedAmt == null) - throw new IllegalArgumentException ("PlannedAmt is mandatory."); set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); } @@ -479,7 +475,7 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste */ public void setProjInvoiceRule (String ProjInvoiceRule) { - if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); } diff --git a/base/src/org/compiere/model/X_C_ProjectTask.java b/base/src/org/compiere/model/X_C_ProjectTask.java index 80abfc2c8f..476e72fd91 100644 --- a/base/src/org/compiere/model/X_C_ProjectTask.java +++ b/base/src/org/compiere/model/X_C_ProjectTask.java @@ -88,8 +88,6 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setCommittedAmt (BigDecimal CommittedAmt) { - if (CommittedAmt == null) - throw new IllegalArgumentException ("CommittedAmt is mandatory."); set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); } @@ -126,9 +124,10 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) { - if (C_ProjectPhase_ID < 1) - throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + if (C_ProjectPhase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); } /** Get Project Phase. @@ -148,9 +147,10 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setC_ProjectTask_ID (int C_ProjectTask_ID) { - if (C_ProjectTask_ID < 1) - throw new IllegalArgumentException ("C_ProjectTask_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + if (C_ProjectTask_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); } /** Get Project Task. @@ -282,8 +282,6 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -301,8 +299,6 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setPlannedAmt (BigDecimal PlannedAmt) { - if (PlannedAmt == null) - throw new IllegalArgumentException ("PlannedAmt is mandatory."); set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); } @@ -335,7 +331,7 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent */ public void setProjInvoiceRule (String ProjInvoiceRule) { - if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); } diff --git a/base/src/org/compiere/model/X_C_ProjectType.java b/base/src/org/compiere/model/X_C_ProjectType.java index b18f36f12d..1abb763e21 100644 --- a/base/src/org/compiere/model/X_C_ProjectType.java +++ b/base/src/org/compiere/model/X_C_ProjectType.java @@ -79,9 +79,10 @@ public class X_C_ProjectType extends PO implements I_C_ProjectType, I_Persistent */ public void setC_ProjectType_ID (int C_ProjectType_ID) { - if (C_ProjectType_ID < 1) - throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); + if (C_ProjectType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); } /** Get Project Type. @@ -135,8 +136,6 @@ public class X_C_ProjectType extends PO implements I_C_ProjectType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -172,7 +171,7 @@ public class X_C_ProjectType extends PO implements I_C_ProjectType, I_Persistent */ public void setProjectCategory (String ProjectCategory) { - if (ProjectCategory == null) throw new IllegalArgumentException ("ProjectCategory is mandatory"); + set_ValueNoCheck (COLUMNNAME_ProjectCategory, ProjectCategory); } diff --git a/base/src/org/compiere/model/X_C_Project_Acct.java b/base/src/org/compiere/model/X_C_Project_Acct.java index 177143dd2b..be1d2db613 100644 --- a/base/src/org/compiere/model/X_C_Project_Acct.java +++ b/base/src/org/compiere/model/X_C_Project_Acct.java @@ -96,9 +96,10 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -134,9 +135,10 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste */ public void setC_Project_ID (int C_Project_ID) { - if (C_Project_ID < 1) - throw new IllegalArgumentException ("C_Project_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + if (C_Project_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. diff --git a/base/src/org/compiere/model/X_C_Recurring.java b/base/src/org/compiere/model/X_C_Recurring.java index 9013ae84eb..b2bc810ae0 100644 --- a/base/src/org/compiere/model/X_C_Recurring.java +++ b/base/src/org/compiere/model/X_C_Recurring.java @@ -242,9 +242,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent */ public void setC_Recurring_ID (int C_Recurring_ID) { - if (C_Recurring_ID < 1) - throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); + if (C_Recurring_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); } /** Get Recurring. @@ -281,8 +282,6 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent */ public void setDateNextRun (Timestamp DateNextRun) { - if (DateNextRun == null) - throw new IllegalArgumentException ("DateNextRun is mandatory."); set_Value (COLUMNNAME_DateNextRun, DateNextRun); } @@ -347,7 +346,7 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -421,8 +420,6 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -479,7 +476,7 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent */ public void setRecurringType (String RecurringType) { - if (RecurringType == null) throw new IllegalArgumentException ("RecurringType is mandatory"); + set_Value (COLUMNNAME_RecurringType, RecurringType); } diff --git a/base/src/org/compiere/model/X_C_Recurring_Run.java b/base/src/org/compiere/model/X_C_Recurring_Run.java index 5b98e63267..60bf0e3df6 100644 --- a/base/src/org/compiere/model/X_C_Recurring_Run.java +++ b/base/src/org/compiere/model/X_C_Recurring_Run.java @@ -251,9 +251,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis */ public void setC_Recurring_ID (int C_Recurring_ID) { - if (C_Recurring_ID < 1) - throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); + if (C_Recurring_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); } /** Get Recurring. @@ -273,9 +274,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis */ public void setC_Recurring_Run_ID (int C_Recurring_Run_ID) { - if (C_Recurring_Run_ID < 1) - throw new IllegalArgumentException ("C_Recurring_Run_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Recurring_Run_ID, Integer.valueOf(C_Recurring_Run_ID)); + if (C_Recurring_Run_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Recurring_Run_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Recurring_Run_ID, Integer.valueOf(C_Recurring_Run_ID)); } /** Get Recurring Run. diff --git a/base/src/org/compiere/model/X_C_Region.java b/base/src/org/compiere/model/X_C_Region.java index 04ec5dcc37..8122c37735 100644 --- a/base/src/org/compiere/model/X_C_Region.java +++ b/base/src/org/compiere/model/X_C_Region.java @@ -96,9 +96,10 @@ public class X_C_Region extends PO implements I_C_Region, I_Persistent */ public void setC_Country_ID (int C_Country_ID) { - if (C_Country_ID < 1) - throw new IllegalArgumentException ("C_Country_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + if (C_Country_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Country_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); } /** Get Country. @@ -118,9 +119,10 @@ public class X_C_Region extends PO implements I_C_Region, I_Persistent */ public void setC_Region_ID (int C_Region_ID) { - if (C_Region_ID < 1) - throw new IllegalArgumentException ("C_Region_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + if (C_Region_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Region_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); } /** Get Region. @@ -181,8 +183,6 @@ public class X_C_Region extends PO implements I_C_Region, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Remuneration.java b/base/src/org/compiere/model/X_C_Remuneration.java index 6f2190ef50..f7c4628f0c 100644 --- a/base/src/org/compiere/model/X_C_Remuneration.java +++ b/base/src/org/compiere/model/X_C_Remuneration.java @@ -85,9 +85,10 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setC_Remuneration_ID (int C_Remuneration_ID) { - if (C_Remuneration_ID < 1) - throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + if (C_Remuneration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); } /** Get Remuneration. @@ -124,8 +125,6 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setGrossRAmt (BigDecimal GrossRAmt) { - if (GrossRAmt == null) - throw new IllegalArgumentException ("GrossRAmt is mandatory."); set_Value (COLUMNNAME_GrossRAmt, GrossRAmt); } @@ -146,8 +145,6 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setGrossRCost (BigDecimal GrossRCost) { - if (GrossRCost == null) - throw new IllegalArgumentException ("GrossRCost is mandatory."); set_Value (COLUMNNAME_GrossRCost, GrossRCost); } @@ -185,8 +182,6 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -212,8 +207,6 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setOvertimeAmt (BigDecimal OvertimeAmt) { - if (OvertimeAmt == null) - throw new IllegalArgumentException ("OvertimeAmt is mandatory."); set_Value (COLUMNNAME_OvertimeAmt, OvertimeAmt); } @@ -234,8 +227,6 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setOvertimeCost (BigDecimal OvertimeCost) { - if (OvertimeCost == null) - throw new IllegalArgumentException ("OvertimeCost is mandatory."); set_Value (COLUMNNAME_OvertimeCost, OvertimeCost); } @@ -270,7 +261,7 @@ public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persiste */ public void setRemunerationType (String RemunerationType) { - if (RemunerationType == null) throw new IllegalArgumentException ("RemunerationType is mandatory"); + set_Value (COLUMNNAME_RemunerationType, RemunerationType); } diff --git a/base/src/org/compiere/model/X_C_RevenueRecognition.java b/base/src/org/compiere/model/X_C_RevenueRecognition.java index 1b634ec60f..b1c581bae0 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition.java @@ -79,9 +79,10 @@ public class X_C_RevenueRecognition extends PO implements I_C_RevenueRecognition */ public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) { - if (C_RevenueRecognition_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + if (C_RevenueRecognition_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); } /** Get Revenue Recognition. @@ -142,8 +143,6 @@ public class X_C_RevenueRecognition extends PO implements I_C_RevenueRecognition */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -192,7 +191,7 @@ public class X_C_RevenueRecognition extends PO implements I_C_RevenueRecognition @param RecognitionFrequency Recognition frequency */ public void setRecognitionFrequency (String RecognitionFrequency) { - if (RecognitionFrequency == null) throw new IllegalArgumentException ("RecognitionFrequency is mandatory"); + set_Value (COLUMNNAME_RecognitionFrequency, RecognitionFrequency); } diff --git a/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java b/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java index 8ed63124fe..d204de1cc5 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java @@ -104,9 +104,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -142,9 +143,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -180,9 +182,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) { - if (C_InvoiceLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + if (C_InvoiceLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); } /** Get Invoice Line. @@ -218,9 +221,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) { - if (C_RevenueRecognition_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + if (C_RevenueRecognition_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); } /** Get Revenue Recognition. @@ -248,9 +252,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) { - if (C_RevenueRecognition_Plan_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + if (C_RevenueRecognition_Plan_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); } /** Get Revenue Recognition Plan. @@ -288,8 +293,6 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn @param RecognizedAmt Recognized Amount */ public void setRecognizedAmt (BigDecimal RecognizedAmt) { - if (RecognizedAmt == null) - throw new IllegalArgumentException ("RecognizedAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_RecognizedAmt, RecognizedAmt); } @@ -309,8 +312,6 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn */ public void setTotalAmt (BigDecimal TotalAmt) { - if (TotalAmt == null) - throw new IllegalArgumentException ("TotalAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalAmt, TotalAmt); } diff --git a/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java b/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java index 1d95d447ee..fe4b22be67 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java @@ -99,9 +99,10 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni */ public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) { - if (C_RevenueRecognition_Plan_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + if (C_RevenueRecognition_Plan_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); } /** Get Revenue Recognition Plan. @@ -129,9 +130,10 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni */ public void setC_RevenueRecognition_Run_ID (int C_RevenueRecognition_Run_ID) { - if (C_RevenueRecognition_Run_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_Run_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Run_ID, Integer.valueOf(C_RevenueRecognition_Run_ID)); + if (C_RevenueRecognition_Run_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Run_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Run_ID, Integer.valueOf(C_RevenueRecognition_Run_ID)); } /** Get Revenue Recognition Run. @@ -167,9 +169,10 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni */ public void setGL_Journal_ID (int GL_Journal_ID) { - if (GL_Journal_ID < 1) - throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + if (GL_Journal_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); } /** Get Journal. @@ -187,8 +190,6 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni @param RecognizedAmt Recognized Amount */ public void setRecognizedAmt (BigDecimal RecognizedAmt) { - if (RecognizedAmt == null) - throw new IllegalArgumentException ("RecognizedAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_RecognizedAmt, RecognizedAmt); } diff --git a/base/src/org/compiere/model/X_C_RfQ.java b/base/src/org/compiere/model/X_C_RfQ.java index da2efeae87..414e17049c 100644 --- a/base/src/org/compiere/model/X_C_RfQ.java +++ b/base/src/org/compiere/model/X_C_RfQ.java @@ -231,9 +231,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -337,9 +338,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setC_RfQ_ID (int C_RfQ_ID) { - if (C_RfQ_ID < 1) - throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + if (C_RfQ_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); } /** Get RfQ. @@ -375,9 +377,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) { - if (C_RfQ_Topic_ID < 1) - throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); - set_Value (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + if (C_RfQ_Topic_ID < 1) + set_Value (COLUMNNAME_C_RfQ_Topic_ID, null); + else + set_Value (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); } /** Get RfQ Topic. @@ -397,8 +400,6 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setDateResponse (Timestamp DateResponse) { - if (DateResponse == null) - throw new IllegalArgumentException ("DateResponse is mandatory."); set_Value (COLUMNNAME_DateResponse, DateResponse); } @@ -487,8 +488,6 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -671,8 +670,6 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -757,7 +754,7 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setQuoteType (String QuoteType) { - if (QuoteType == null) throw new IllegalArgumentException ("QuoteType is mandatory"); + set_Value (COLUMNNAME_QuoteType, QuoteType); } @@ -789,9 +786,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. diff --git a/base/src/org/compiere/model/X_C_RfQLine.java b/base/src/org/compiere/model/X_C_RfQLine.java index 85d0912095..acdf80721b 100644 --- a/base/src/org/compiere/model/X_C_RfQLine.java +++ b/base/src/org/compiere/model/X_C_RfQLine.java @@ -99,9 +99,10 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent */ public void setC_RfQ_ID (int C_RfQ_ID) { - if (C_RfQ_ID < 1) - throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + if (C_RfQ_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); } /** Get RfQ. @@ -129,9 +130,10 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent */ public void setC_RfQLine_ID (int C_RfQLine_ID) { - if (C_RfQLine_ID < 1) - throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + if (C_RfQLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); } /** Get RfQ Line. @@ -259,9 +261,10 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. diff --git a/base/src/org/compiere/model/X_C_RfQLineQty.java b/base/src/org/compiere/model/X_C_RfQLineQty.java index ec0002c698..4f37935a46 100644 --- a/base/src/org/compiere/model/X_C_RfQLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQLineQty.java @@ -89,8 +89,6 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent */ public void setBenchmarkPrice (BigDecimal BenchmarkPrice) { - if (BenchmarkPrice == null) - throw new IllegalArgumentException ("BenchmarkPrice is mandatory."); set_Value (COLUMNNAME_BenchmarkPrice, BenchmarkPrice); } @@ -147,9 +145,10 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent */ public void setC_RfQLine_ID (int C_RfQLine_ID) { - if (C_RfQLine_ID < 1) - throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + if (C_RfQLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); } /** Get RfQ Line. @@ -169,9 +168,10 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent */ public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) { - if (C_RfQLineQty_ID < 1) - throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); + if (C_RfQLineQty_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); } /** Get RfQ Line Quantity. @@ -207,9 +207,10 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -349,8 +350,6 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_C_RfQResponse.java b/base/src/org/compiere/model/X_C_RfQResponse.java index a48616b8fa..0fecca2e77 100644 --- a/base/src/org/compiere/model/X_C_RfQResponse.java +++ b/base/src/org/compiere/model/X_C_RfQResponse.java @@ -147,9 +147,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -185,9 +186,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -223,9 +225,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -314,9 +317,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setC_RfQ_ID (int C_RfQ_ID) { - if (C_RfQ_ID < 1) - throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + if (C_RfQ_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); } /** Get RfQ. @@ -336,9 +340,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setC_RfQResponse_ID (int C_RfQResponse_ID) { - if (C_RfQResponse_ID < 1) - throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); + if (C_RfQResponse_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); } /** Get RfQ Response. @@ -552,8 +557,6 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -579,8 +582,6 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent */ public void setPrice (BigDecimal Price) { - if (Price == null) - throw new IllegalArgumentException ("Price is mandatory."); set_Value (COLUMNNAME_Price, Price); } diff --git a/base/src/org/compiere/model/X_C_RfQResponseLine.java b/base/src/org/compiere/model/X_C_RfQResponseLine.java index 832915c860..05266c8dbd 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLine.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLine.java @@ -98,9 +98,10 @@ public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Pe */ public void setC_RfQLine_ID (int C_RfQLine_ID) { - if (C_RfQLine_ID < 1) - throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + if (C_RfQLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); } /** Get RfQ Line. @@ -136,9 +137,10 @@ public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Pe */ public void setC_RfQResponse_ID (int C_RfQResponse_ID) { - if (C_RfQResponse_ID < 1) - throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); + if (C_RfQResponse_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); } /** Get RfQ Response. @@ -158,9 +160,10 @@ public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Pe */ public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) { - if (C_RfQResponseLine_ID < 1) - throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); + if (C_RfQResponseLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); } /** Get RfQ Response Line. diff --git a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java index 89d0ff0591..eb85fbbe78 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java @@ -99,9 +99,10 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty */ public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) { - if (C_RfQLineQty_ID < 1) - throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); + if (C_RfQLineQty_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); } /** Get RfQ Line Quantity. @@ -137,9 +138,10 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty */ public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) { - if (C_RfQResponseLine_ID < 1) - throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); + if (C_RfQResponseLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); } /** Get RfQ Response Line. @@ -167,9 +169,10 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty */ public void setC_RfQResponseLineQty_ID (int C_RfQResponseLineQty_ID) { - if (C_RfQResponseLineQty_ID < 1) - throw new IllegalArgumentException ("C_RfQResponseLineQty_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQResponseLineQty_ID, Integer.valueOf(C_RfQResponseLineQty_ID)); + if (C_RfQResponseLineQty_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLineQty_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLineQty_ID, Integer.valueOf(C_RfQResponseLineQty_ID)); } /** Get RfQ Response Line Qty. @@ -209,8 +212,6 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty */ public void setPrice (BigDecimal Price) { - if (Price == null) - throw new IllegalArgumentException ("Price is mandatory."); set_Value (COLUMNNAME_Price, Price); } diff --git a/base/src/org/compiere/model/X_C_RfQ_Topic.java b/base/src/org/compiere/model/X_C_RfQ_Topic.java index aff6988376..eb19ea7d44 100644 --- a/base/src/org/compiere/model/X_C_RfQ_Topic.java +++ b/base/src/org/compiere/model/X_C_RfQ_Topic.java @@ -119,9 +119,10 @@ public class X_C_RfQ_Topic extends PO implements I_C_RfQ_Topic, I_Persistent */ public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) { - if (C_RfQ_Topic_ID < 1) - throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + if (C_RfQ_Topic_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); } /** Get RfQ Topic. @@ -182,8 +183,6 @@ public class X_C_RfQ_Topic extends PO implements I_C_RfQ_Topic, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java index db02f02852..ee880b9617 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java @@ -137,9 +137,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -175,9 +176,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -213,9 +215,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib */ public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) { - if (C_RfQ_Topic_ID < 1) - throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + if (C_RfQ_Topic_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); } /** Get RfQ Topic. @@ -243,9 +246,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib */ public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) { - if (C_RfQ_TopicSubscriber_ID < 1) - throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); + if (C_RfQ_TopicSubscriber_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); } /** Get RfQ Subscriber. diff --git a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java index e63120ae2f..808fd2965c 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java @@ -95,9 +95,10 @@ public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubs */ public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) { - if (C_RfQ_TopicSubscriber_ID < 1) - throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); + if (C_RfQ_TopicSubscriber_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); } /** Get RfQ Subscriber. @@ -117,9 +118,10 @@ public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubs */ public void setC_RfQ_TopicSubscriberOnly_ID (int C_RfQ_TopicSubscriberOnly_ID) { - if (C_RfQ_TopicSubscriberOnly_ID < 1) - throw new IllegalArgumentException ("C_RfQ_TopicSubscriberOnly_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID, Integer.valueOf(C_RfQ_TopicSubscriberOnly_ID)); + if (C_RfQ_TopicSubscriberOnly_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID, Integer.valueOf(C_RfQ_TopicSubscriberOnly_ID)); } /** Get RfQ Topic Subscriber Restriction. diff --git a/base/src/org/compiere/model/X_C_SalesRegion.java b/base/src/org/compiere/model/X_C_SalesRegion.java index 2cd721ad93..c448e8bcf1 100644 --- a/base/src/org/compiere/model/X_C_SalesRegion.java +++ b/base/src/org/compiere/model/X_C_SalesRegion.java @@ -80,9 +80,10 @@ public class X_C_SalesRegion extends PO implements I_C_SalesRegion, I_Persistent */ public void setC_SalesRegion_ID (int C_SalesRegion_ID) { - if (C_SalesRegion_ID < 1) - throw new IllegalArgumentException ("C_SalesRegion_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + if (C_SalesRegion_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); } /** Get Sales Region. @@ -167,8 +168,6 @@ public class X_C_SalesRegion extends PO implements I_C_SalesRegion, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -217,8 +216,6 @@ public class X_C_SalesRegion extends PO implements I_C_SalesRegion, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_ServiceLevel.java b/base/src/org/compiere/model/X_C_ServiceLevel.java index 1c90253200..9ef9b63ff1 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevel.java +++ b/base/src/org/compiere/model/X_C_ServiceLevel.java @@ -100,9 +100,10 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste */ public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) { - if (C_RevenueRecognition_Plan_ID < 1) - throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + if (C_RevenueRecognition_Plan_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); } /** Get Revenue Recognition Plan. @@ -122,9 +123,10 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste */ public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) { - if (C_ServiceLevel_ID < 1) - throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); + if (C_ServiceLevel_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); } /** Get Service Level. @@ -185,9 +187,10 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -252,8 +255,6 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste */ public void setServiceLevelInvoiced (BigDecimal ServiceLevelInvoiced) { - if (ServiceLevelInvoiced == null) - throw new IllegalArgumentException ("ServiceLevelInvoiced is mandatory."); set_ValueNoCheck (COLUMNNAME_ServiceLevelInvoiced, ServiceLevelInvoiced); } @@ -274,8 +275,6 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste */ public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) { - if (ServiceLevelProvided == null) - throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); set_ValueNoCheck (COLUMNNAME_ServiceLevelProvided, ServiceLevelProvided); } diff --git a/base/src/org/compiere/model/X_C_ServiceLevelLine.java b/base/src/org/compiere/model/X_C_ServiceLevelLine.java index 2543c42bb5..a7990a2cbd 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevelLine.java +++ b/base/src/org/compiere/model/X_C_ServiceLevelLine.java @@ -100,9 +100,10 @@ public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_ */ public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) { - if (C_ServiceLevel_ID < 1) - throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); + if (C_ServiceLevel_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); } /** Get Service Level. @@ -122,9 +123,10 @@ public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_ */ public void setC_ServiceLevelLine_ID (int C_ServiceLevelLine_ID) { - if (C_ServiceLevelLine_ID < 1) - throw new IllegalArgumentException ("C_ServiceLevelLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, Integer.valueOf(C_ServiceLevelLine_ID)); + if (C_ServiceLevelLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, Integer.valueOf(C_ServiceLevelLine_ID)); } /** Get Service Level Line. @@ -185,8 +187,6 @@ public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_ */ public void setServiceDate (Timestamp ServiceDate) { - if (ServiceDate == null) - throw new IllegalArgumentException ("ServiceDate is mandatory."); set_ValueNoCheck (COLUMNNAME_ServiceDate, ServiceDate); } @@ -212,8 +212,6 @@ public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_ */ public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) { - if (ServiceLevelProvided == null) - throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); set_ValueNoCheck (COLUMNNAME_ServiceLevelProvided, ServiceLevelProvided); } diff --git a/base/src/org/compiere/model/X_C_SubAcct.java b/base/src/org/compiere/model/X_C_SubAcct.java index 4c33ed47dd..ad0fe8fa87 100644 --- a/base/src/org/compiere/model/X_C_SubAcct.java +++ b/base/src/org/compiere/model/X_C_SubAcct.java @@ -97,9 +97,10 @@ public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent */ public void setC_ElementValue_ID (int C_ElementValue_ID) { - if (C_ElementValue_ID < 1) - throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + if (C_ElementValue_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); } /** Get Account Element. @@ -119,9 +120,10 @@ public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent */ public void setC_SubAcct_ID (int C_SubAcct_ID) { - if (C_SubAcct_ID < 1) - throw new IllegalArgumentException ("C_SubAcct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); + if (C_SubAcct_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); } /** Get Sub Account. @@ -175,8 +177,6 @@ public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -194,8 +194,6 @@ public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_C_Subscription.java b/base/src/org/compiere/model/X_C_Subscription.java index e2588bc01b..3f8e99f399 100644 --- a/base/src/org/compiere/model/X_C_Subscription.java +++ b/base/src/org/compiere/model/X_C_Subscription.java @@ -103,9 +103,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -125,9 +126,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setC_Subscription_ID (int C_Subscription_ID) { - if (C_Subscription_ID < 1) - throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); + if (C_Subscription_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); } /** Get Subscription. @@ -163,9 +165,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) { - if (C_SubscriptionType_ID < 1) - throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); - set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + if (C_SubscriptionType_ID < 1) + set_Value (COLUMNNAME_C_SubscriptionType_ID, null); + else + set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); } /** Get Subscription Type. @@ -225,9 +228,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -247,8 +251,6 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -274,8 +276,6 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setPaidUntilDate (Timestamp PaidUntilDate) { - if (PaidUntilDate == null) - throw new IllegalArgumentException ("PaidUntilDate is mandatory."); set_Value (COLUMNNAME_PaidUntilDate, PaidUntilDate); } @@ -291,8 +291,6 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste @param RenewalDate Renewal Date */ public void setRenewalDate (Timestamp RenewalDate) { - if (RenewalDate == null) - throw new IllegalArgumentException ("RenewalDate is mandatory."); set_Value (COLUMNNAME_RenewalDate, RenewalDate); } @@ -309,8 +307,6 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste */ public void setStartDate (Timestamp StartDate) { - if (StartDate == null) - throw new IllegalArgumentException ("StartDate is mandatory."); set_Value (COLUMNNAME_StartDate, StartDate); } diff --git a/base/src/org/compiere/model/X_C_SubscriptionType.java b/base/src/org/compiere/model/X_C_SubscriptionType.java index 2f629de357..ea25dd879b 100644 --- a/base/src/org/compiere/model/X_C_SubscriptionType.java +++ b/base/src/org/compiere/model/X_C_SubscriptionType.java @@ -79,9 +79,10 @@ public class X_C_SubscriptionType extends PO implements I_C_SubscriptionType, I_ */ public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) { - if (C_SubscriptionType_ID < 1) - throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + if (C_SubscriptionType_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_SubscriptionType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); } /** Get Subscription Type. @@ -146,7 +147,7 @@ public class X_C_SubscriptionType extends PO implements I_C_SubscriptionType, I_ */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -164,8 +165,6 @@ public class X_C_SubscriptionType extends PO implements I_C_SubscriptionType, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Subscription_Delivery.java b/base/src/org/compiere/model/X_C_Subscription_Delivery.java index 41a56d92d0..c24312e22e 100644 --- a/base/src/org/compiere/model/X_C_Subscription_Delivery.java +++ b/base/src/org/compiere/model/X_C_Subscription_Delivery.java @@ -79,9 +79,10 @@ public class X_C_Subscription_Delivery extends PO implements I_C_Subscription_De */ public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID) { - if (C_Subscription_Delivery_ID < 1) - throw new IllegalArgumentException ("C_Subscription_Delivery_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Subscription_Delivery_ID, Integer.valueOf(C_Subscription_Delivery_ID)); + if (C_Subscription_Delivery_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Subscription_Delivery_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Subscription_Delivery_ID, Integer.valueOf(C_Subscription_Delivery_ID)); } /** Get Subscription Delivery. @@ -125,9 +126,10 @@ public class X_C_Subscription_Delivery extends PO implements I_C_Subscription_De */ public void setC_Subscription_ID (int C_Subscription_ID) { - if (C_Subscription_ID < 1) - throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); + if (C_Subscription_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); } /** Get Subscription. diff --git a/base/src/org/compiere/model/X_C_Task.java b/base/src/org/compiere/model/X_C_Task.java index ec8a6b92c7..1e0b84e5e1 100644 --- a/base/src/org/compiere/model/X_C_Task.java +++ b/base/src/org/compiere/model/X_C_Task.java @@ -102,9 +102,10 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent */ public void setC_Phase_ID (int C_Phase_ID) { - if (C_Phase_ID < 1) - throw new IllegalArgumentException ("C_Phase_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + if (C_Phase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); } /** Get Standard Phase. @@ -124,9 +125,10 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent */ public void setC_Task_ID (int C_Task_ID) { - if (C_Task_ID < 1) - throw new IllegalArgumentException ("C_Task_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Task_ID, Integer.valueOf(C_Task_ID)); + if (C_Task_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Task_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Task_ID, Integer.valueOf(C_Task_ID)); } /** Get Standard Task. @@ -219,8 +221,6 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -266,8 +266,6 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent */ public void setStandardQty (BigDecimal StandardQty) { - if (StandardQty == null) - throw new IllegalArgumentException ("StandardQty is mandatory."); set_Value (COLUMNNAME_StandardQty, StandardQty); } diff --git a/base/src/org/compiere/model/X_C_Tax.java b/base/src/org/compiere/model/X_C_Tax.java index 7bfb7fd93b..73fa60d845 100644 --- a/base/src/org/compiere/model/X_C_Tax.java +++ b/base/src/org/compiere/model/X_C_Tax.java @@ -192,9 +192,10 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -214,9 +215,10 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -373,8 +375,6 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -423,8 +423,6 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setRate (BigDecimal Rate) { - if (Rate == null) - throw new IllegalArgumentException ("Rate is mandatory."); set_Value (COLUMNNAME_Rate, Rate); } @@ -477,7 +475,7 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setSOPOType (String SOPOType) { - if (SOPOType == null) throw new IllegalArgumentException ("SOPOType is mandatory"); + set_Value (COLUMNNAME_SOPOType, SOPOType); } @@ -558,8 +556,6 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_TaxCategory.java b/base/src/org/compiere/model/X_C_TaxCategory.java index a0db8c3d58..d8789c0965 100644 --- a/base/src/org/compiere/model/X_C_TaxCategory.java +++ b/base/src/org/compiere/model/X_C_TaxCategory.java @@ -95,9 +95,10 @@ public class X_C_TaxCategory extends PO implements I_C_TaxCategory, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -158,8 +159,6 @@ public class X_C_TaxCategory extends PO implements I_C_TaxCategory, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_TaxDeclaration.java b/base/src/org/compiere/model/X_C_TaxDeclaration.java index dbb6b42ce1..10d3a62c90 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclaration.java +++ b/base/src/org/compiere/model/X_C_TaxDeclaration.java @@ -82,9 +82,10 @@ public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Pers */ public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) { - if (C_TaxDeclaration_ID < 1) - throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + if (C_TaxDeclaration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); } /** Get Tax Declaration. @@ -104,8 +105,6 @@ public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Pers */ public void setDateFrom (Timestamp DateFrom) { - if (DateFrom == null) - throw new IllegalArgumentException ("DateFrom is mandatory."); set_Value (COLUMNNAME_DateFrom, DateFrom); } @@ -123,8 +122,6 @@ public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Pers */ public void setDateTo (Timestamp DateTo) { - if (DateTo == null) - throw new IllegalArgumentException ("DateTo is mandatory."); set_Value (COLUMNNAME_DateTo, DateTo); } @@ -142,8 +139,6 @@ public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Pers */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_Value (COLUMNNAME_DateTrx, DateTrx); } @@ -178,8 +173,6 @@ public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java index 5e4deb0d45..a502231a6f 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java @@ -194,9 +194,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -286,9 +287,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct */ public void setC_TaxDeclarationAcct_ID (int C_TaxDeclarationAcct_ID) { - if (C_TaxDeclarationAcct_ID < 1) - throw new IllegalArgumentException ("C_TaxDeclarationAcct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationAcct_ID, Integer.valueOf(C_TaxDeclarationAcct_ID)); + if (C_TaxDeclarationAcct_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationAcct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationAcct_ID, Integer.valueOf(C_TaxDeclarationAcct_ID)); } /** Get Tax Declaration Accounting. @@ -324,9 +326,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct */ public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) { - if (C_TaxDeclaration_ID < 1) - throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + if (C_TaxDeclaration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); } /** Get Tax Declaration. @@ -428,9 +431,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { - if (Fact_Acct_ID < 1) - throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + if (Fact_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. diff --git a/base/src/org/compiere/model/X_C_TaxDeclarationLine.java b/base/src/org/compiere/model/X_C_TaxDeclarationLine.java index 3eb628579d..0946b31a32 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationLine.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationLine.java @@ -145,9 +145,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -183,9 +184,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -299,9 +301,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) { - if (C_TaxDeclaration_ID < 1) - throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + if (C_TaxDeclaration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); } /** Get Tax Declaration. @@ -321,9 +324,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setC_TaxDeclarationLine_ID (int C_TaxDeclarationLine_ID) { - if (C_TaxDeclarationLine_ID < 1) - throw new IllegalArgumentException ("C_TaxDeclarationLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationLine_ID, Integer.valueOf(C_TaxDeclarationLine_ID)); + if (C_TaxDeclarationLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationLine_ID, Integer.valueOf(C_TaxDeclarationLine_ID)); } /** Get Tax Declaration Line. @@ -359,9 +363,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -381,8 +386,6 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); } @@ -461,8 +464,6 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setTaxAmt (BigDecimal TaxAmt) { - if (TaxAmt == null) - throw new IllegalArgumentException ("TaxAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); } @@ -483,8 +484,6 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine */ public void setTaxBaseAmt (BigDecimal TaxBaseAmt) { - if (TaxBaseAmt == null) - throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); } diff --git a/base/src/org/compiere/model/X_C_TaxPostal.java b/base/src/org/compiere/model/X_C_TaxPostal.java index f28aad568b..529d4a7f57 100644 --- a/base/src/org/compiere/model/X_C_TaxPostal.java +++ b/base/src/org/compiere/model/X_C_TaxPostal.java @@ -96,9 +96,10 @@ public class X_C_TaxPostal extends PO implements I_C_TaxPostal, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @@ -118,9 +119,10 @@ public class X_C_TaxPostal extends PO implements I_C_TaxPostal, I_Persistent */ public void setC_TaxPostal_ID (int C_TaxPostal_ID) { - if (C_TaxPostal_ID < 1) - throw new IllegalArgumentException ("C_TaxPostal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_TaxPostal_ID, Integer.valueOf(C_TaxPostal_ID)); + if (C_TaxPostal_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_TaxPostal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_TaxPostal_ID, Integer.valueOf(C_TaxPostal_ID)); } /** Get Tax ZIP. @@ -140,8 +142,6 @@ public class X_C_TaxPostal extends PO implements I_C_TaxPostal, I_Persistent */ public void setPostal (String Postal) { - if (Postal == null) - throw new IllegalArgumentException ("Postal is mandatory."); set_Value (COLUMNNAME_Postal, Postal); } diff --git a/base/src/org/compiere/model/X_C_Tax_Acct.java b/base/src/org/compiere/model/X_C_Tax_Acct.java index 88f59e8257..310ed227e6 100644 --- a/base/src/org/compiere/model/X_C_Tax_Acct.java +++ b/base/src/org/compiere/model/X_C_Tax_Acct.java @@ -99,9 +99,10 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -137,9 +138,10 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent */ public void setC_Tax_ID (int C_Tax_ID) { - if (C_Tax_ID < 1) - throw new IllegalArgumentException ("C_Tax_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + if (C_Tax_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. diff --git a/base/src/org/compiere/model/X_C_UOM.java b/base/src/org/compiere/model/X_C_UOM.java index 42208e4502..99da984351 100644 --- a/base/src/org/compiere/model/X_C_UOM.java +++ b/base/src/org/compiere/model/X_C_UOM.java @@ -101,9 +101,10 @@ public class X_C_UOM extends PO implements I_C_UOM, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -164,8 +165,6 @@ public class X_C_UOM extends PO implements I_C_UOM, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -228,8 +227,6 @@ public class X_C_UOM extends PO implements I_C_UOM, I_Persistent */ public void setX12DE355 (String X12DE355) { - if (X12DE355 == null) - throw new IllegalArgumentException ("X12DE355 is mandatory."); set_Value (COLUMNNAME_X12DE355, X12DE355); } diff --git a/base/src/org/compiere/model/X_C_UOM_Conversion.java b/base/src/org/compiere/model/X_C_UOM_Conversion.java index 40a610479e..b11dff6887 100644 --- a/base/src/org/compiere/model/X_C_UOM_Conversion.java +++ b/base/src/org/compiere/model/X_C_UOM_Conversion.java @@ -84,9 +84,10 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers */ public void setC_UOM_Conversion_ID (int C_UOM_Conversion_ID) { - if (C_UOM_Conversion_ID < 1) - throw new IllegalArgumentException ("C_UOM_Conversion_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UOM_Conversion_ID, Integer.valueOf(C_UOM_Conversion_ID)); + if (C_UOM_Conversion_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UOM_Conversion_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_Conversion_ID, Integer.valueOf(C_UOM_Conversion_ID)); } /** Get UOM Conversion. @@ -130,9 +131,10 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -152,9 +154,10 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers */ public void setC_UOM_To_ID (int C_UOM_To_ID) { - if (C_UOM_To_ID < 1) - throw new IllegalArgumentException ("C_UOM_To_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_To_ID, Integer.valueOf(C_UOM_To_ID)); + if (C_UOM_To_ID < 1) + set_Value (COLUMNNAME_C_UOM_To_ID, null); + else + set_Value (COLUMNNAME_C_UOM_To_ID, Integer.valueOf(C_UOM_To_ID)); } /** Get UoM To. @@ -174,8 +177,6 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers */ public void setDivideRate (BigDecimal DivideRate) { - if (DivideRate == null) - throw new IllegalArgumentException ("DivideRate is mandatory."); set_Value (COLUMNNAME_DivideRate, DivideRate); } @@ -235,8 +236,6 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers */ public void setMultiplyRate (BigDecimal MultiplyRate) { - if (MultiplyRate == null) - throw new IllegalArgumentException ("MultiplyRate is mandatory."); set_Value (COLUMNNAME_MultiplyRate, MultiplyRate); } diff --git a/base/src/org/compiere/model/X_C_UserRemuneration.java b/base/src/org/compiere/model/X_C_UserRemuneration.java index be35f1f12e..0430876721 100644 --- a/base/src/org/compiere/model/X_C_UserRemuneration.java +++ b/base/src/org/compiere/model/X_C_UserRemuneration.java @@ -104,9 +104,10 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -150,9 +151,10 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setC_Remuneration_ID (int C_Remuneration_ID) { - if (C_Remuneration_ID < 1) - throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + if (C_Remuneration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); } /** Get Remuneration. @@ -172,9 +174,10 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setC_UserRemuneration_ID (int C_UserRemuneration_ID) { - if (C_UserRemuneration_ID < 1) - throw new IllegalArgumentException ("C_UserRemuneration_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UserRemuneration_ID, Integer.valueOf(C_UserRemuneration_ID)); + if (C_UserRemuneration_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UserRemuneration_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UserRemuneration_ID, Integer.valueOf(C_UserRemuneration_ID)); } /** Get Employee Remuneration. @@ -211,8 +214,6 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setGrossRAmt (BigDecimal GrossRAmt) { - if (GrossRAmt == null) - throw new IllegalArgumentException ("GrossRAmt is mandatory."); set_Value (COLUMNNAME_GrossRAmt, GrossRAmt); } @@ -233,8 +234,6 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setGrossRCost (BigDecimal GrossRCost) { - if (GrossRCost == null) - throw new IllegalArgumentException ("GrossRCost is mandatory."); set_Value (COLUMNNAME_GrossRCost, GrossRCost); } @@ -255,8 +254,6 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setOvertimeAmt (BigDecimal OvertimeAmt) { - if (OvertimeAmt == null) - throw new IllegalArgumentException ("OvertimeAmt is mandatory."); set_Value (COLUMNNAME_OvertimeAmt, OvertimeAmt); } @@ -277,8 +274,6 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setOvertimeCost (BigDecimal OvertimeCost) { - if (OvertimeCost == null) - throw new IllegalArgumentException ("OvertimeCost is mandatory."); set_Value (COLUMNNAME_OvertimeCost, OvertimeCost); } @@ -299,8 +294,6 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_C_ValidCombination.java b/base/src/org/compiere/model/X_C_ValidCombination.java index 50bca5236c..c9c49c4e35 100644 --- a/base/src/org/compiere/model/X_C_ValidCombination.java +++ b/base/src/org/compiere/model/X_C_ValidCombination.java @@ -81,9 +81,10 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ */ public void setAccount_ID (int Account_ID) { - if (Account_ID < 1) - throw new IllegalArgumentException ("Account_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + if (Account_ID < 1) + set_ValueNoCheck (COLUMNNAME_Account_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); } /** Get Account. @@ -159,9 +160,10 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -406,9 +408,10 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ */ public void setC_ValidCombination_ID (int C_ValidCombination_ID) { - if (C_ValidCombination_ID < 1) - throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); + if (C_ValidCombination_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ValidCombination_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); } /** Get Combination. diff --git a/base/src/org/compiere/model/X_C_Withholding.java b/base/src/org/compiere/model/X_C_Withholding.java index 43ea09be8b..df14678777 100644 --- a/base/src/org/compiere/model/X_C_Withholding.java +++ b/base/src/org/compiere/model/X_C_Withholding.java @@ -123,9 +123,10 @@ public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -145,9 +146,10 @@ public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent */ public void setC_Withholding_ID (int C_Withholding_ID) { - if (C_Withholding_ID < 1) - throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + if (C_Withholding_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); } /** Get Withholding. @@ -340,8 +342,6 @@ public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_C_Withholding_Acct.java b/base/src/org/compiere/model/X_C_Withholding_Acct.java index fc1dcbd04a..eaae23f342 100644 --- a/base/src/org/compiere/model/X_C_Withholding_Acct.java +++ b/base/src/org/compiere/model/X_C_Withholding_Acct.java @@ -95,9 +95,10 @@ public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_ */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -133,9 +134,10 @@ public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_ */ public void setC_Withholding_ID (int C_Withholding_ID) { - if (C_Withholding_ID < 1) - throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + if (C_Withholding_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); } /** Get Withholding. diff --git a/base/src/org/compiere/model/X_C_Year.java b/base/src/org/compiere/model/X_C_Year.java index b996b65b30..b9a1df583d 100644 --- a/base/src/org/compiere/model/X_C_Year.java +++ b/base/src/org/compiere/model/X_C_Year.java @@ -96,9 +96,10 @@ public class X_C_Year extends PO implements I_C_Year, I_Persistent */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -118,9 +119,10 @@ public class X_C_Year extends PO implements I_C_Year, I_Persistent */ public void setC_Year_ID (int C_Year_ID) { - if (C_Year_ID < 1) - throw new IllegalArgumentException ("C_Year_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + if (C_Year_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Year_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); } /** Get Year. @@ -157,8 +159,6 @@ public class X_C_Year extends PO implements I_C_Year, I_Persistent */ public void setFiscalYear (String FiscalYear) { - if (FiscalYear == null) - throw new IllegalArgumentException ("FiscalYear is mandatory."); set_Value (COLUMNNAME_FiscalYear, FiscalYear); } diff --git a/base/src/org/compiere/model/X_Fact_Acct.java b/base/src/org/compiere/model/X_Fact_Acct.java index ac06ea51b7..fd06b6cbe4 100644 --- a/base/src/org/compiere/model/X_Fact_Acct.java +++ b/base/src/org/compiere/model/X_Fact_Acct.java @@ -118,9 +118,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAccount_ID (int Account_ID) { - if (Account_ID < 1) - throw new IllegalArgumentException ("Account_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + if (Account_ID < 1) + set_ValueNoCheck (COLUMNNAME_Account_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); } /** Get Account. @@ -179,9 +180,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -201,8 +203,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAmtAcctCr (BigDecimal AmtAcctCr) { - if (AmtAcctCr == null) - throw new IllegalArgumentException ("AmtAcctCr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); } @@ -223,8 +223,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAmtAcctDr (BigDecimal AmtAcctDr) { - if (AmtAcctDr == null) - throw new IllegalArgumentException ("AmtAcctDr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); } @@ -245,8 +243,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAmtSourceCr (BigDecimal AmtSourceCr) { - if (AmtSourceCr == null) - throw new IllegalArgumentException ("AmtSourceCr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtSourceCr, AmtSourceCr); } @@ -267,8 +263,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setAmtSourceDr (BigDecimal AmtSourceDr) { - if (AmtSourceDr == null) - throw new IllegalArgumentException ("AmtSourceDr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtSourceDr, AmtSourceDr); } @@ -305,9 +299,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -460,9 +455,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -544,9 +540,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -839,8 +836,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); } @@ -858,8 +853,6 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); } @@ -892,9 +885,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { - if (Fact_Acct_ID < 1) - throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + if (Fact_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. @@ -976,9 +970,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setGL_Category_ID (int GL_Category_ID) { - if (GL_Category_ID < 1) - throw new IllegalArgumentException ("GL_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + if (GL_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @@ -1111,7 +1106,7 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_ValueNoCheck (COLUMNNAME_PostingType, PostingType); } @@ -1149,9 +1144,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_GL_Budget.java b/base/src/org/compiere/model/X_GL_Budget.java index 1ac28f4639..5a79342bdb 100644 --- a/base/src/org/compiere/model/X_GL_Budget.java +++ b/base/src/org/compiere/model/X_GL_Budget.java @@ -119,9 +119,10 @@ public class X_GL_Budget extends PO implements I_GL_Budget, I_Persistent */ public void setGL_Budget_ID (int GL_Budget_ID) { - if (GL_Budget_ID < 1) - throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + if (GL_Budget_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); } /** Get Budget. @@ -165,8 +166,6 @@ public class X_GL_Budget extends PO implements I_GL_Budget, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_GL_BudgetControl.java b/base/src/org/compiere/model/X_GL_BudgetControl.java index 2edfc7b901..2d873e204d 100644 --- a/base/src/org/compiere/model/X_GL_BudgetControl.java +++ b/base/src/org/compiere/model/X_GL_BudgetControl.java @@ -93,7 +93,7 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setBudgetControlScope (String BudgetControlScope) { - if (BudgetControlScope == null) throw new IllegalArgumentException ("BudgetControlScope is mandatory"); + set_Value (COLUMNNAME_BudgetControlScope, BudgetControlScope); } @@ -127,9 +127,10 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -163,7 +164,7 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setCommitmentType (String CommitmentType) { - if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); + set_Value (COLUMNNAME_CommitmentType, CommitmentType); } @@ -198,9 +199,10 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setGL_BudgetControl_ID (int GL_BudgetControl_ID) { - if (GL_BudgetControl_ID < 1) - throw new IllegalArgumentException ("GL_BudgetControl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_BudgetControl_ID, Integer.valueOf(GL_BudgetControl_ID)); + if (GL_BudgetControl_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_BudgetControl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_BudgetControl_ID, Integer.valueOf(GL_BudgetControl_ID)); } /** Get Budget Control. @@ -236,9 +238,10 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setGL_Budget_ID (int GL_Budget_ID) { - if (GL_Budget_ID < 1) - throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); - set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + if (GL_Budget_ID < 1) + set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); } /** Get Budget. @@ -299,8 +302,6 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_GL_Category.java b/base/src/org/compiere/model/X_GL_Category.java index 194656f5f8..83ec7fb833 100644 --- a/base/src/org/compiere/model/X_GL_Category.java +++ b/base/src/org/compiere/model/X_GL_Category.java @@ -90,7 +90,7 @@ public class X_GL_Category extends PO implements I_GL_Category, I_Persistent */ public void setCategoryType (String CategoryType) { - if (CategoryType == null) throw new IllegalArgumentException ("CategoryType is mandatory"); + set_Value (COLUMNNAME_CategoryType, CategoryType); } @@ -125,9 +125,10 @@ public class X_GL_Category extends PO implements I_GL_Category, I_Persistent */ public void setGL_Category_ID (int GL_Category_ID) { - if (GL_Category_ID < 1) - throw new IllegalArgumentException ("GL_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + if (GL_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @@ -171,8 +172,6 @@ public class X_GL_Category extends PO implements I_GL_Category, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_GL_Distribution.java b/base/src/org/compiere/model/X_GL_Distribution.java index a29dd25d3e..8861e7d1f1 100644 --- a/base/src/org/compiere/model/X_GL_Distribution.java +++ b/base/src/org/compiere/model/X_GL_Distribution.java @@ -487,9 +487,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -642,7 +643,7 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -806,9 +807,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis */ public void setGL_Distribution_ID (int GL_Distribution_ID) { - if (GL_Distribution_ID < 1) - throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); + if (GL_Distribution_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); } /** Get GL Distribution. @@ -932,8 +934,6 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -982,8 +982,6 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis */ public void setPercentTotal (BigDecimal PercentTotal) { - if (PercentTotal == null) - throw new IllegalArgumentException ("PercentTotal is mandatory."); set_Value (COLUMNNAME_PercentTotal, PercentTotal); } diff --git a/base/src/org/compiere/model/X_GL_DistributionLine.java b/base/src/org/compiere/model/X_GL_DistributionLine.java index c8cf56a7f4..b982a5de61 100644 --- a/base/src/org/compiere/model/X_GL_DistributionLine.java +++ b/base/src/org/compiere/model/X_GL_DistributionLine.java @@ -417,9 +417,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, */ public void setGL_Distribution_ID (int GL_Distribution_ID) { - if (GL_Distribution_ID < 1) - throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); + if (GL_Distribution_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); } /** Get GL Distribution. @@ -439,9 +440,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, */ public void setGL_DistributionLine_ID (int GL_DistributionLine_ID) { - if (GL_DistributionLine_ID < 1) - throw new IllegalArgumentException ("GL_DistributionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_DistributionLine_ID, Integer.valueOf(GL_DistributionLine_ID)); + if (GL_DistributionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_DistributionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_DistributionLine_ID, Integer.valueOf(GL_DistributionLine_ID)); } /** Get GL Distribution Line. @@ -863,8 +865,6 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, */ public void setPercent (BigDecimal Percent) { - if (Percent == null) - throw new IllegalArgumentException ("Percent is mandatory."); set_Value (COLUMNNAME_Percent, Percent); } diff --git a/base/src/org/compiere/model/X_GL_Fund.java b/base/src/org/compiere/model/X_GL_Fund.java index 5efa22efc1..b11086fe26 100644 --- a/base/src/org/compiere/model/X_GL_Fund.java +++ b/base/src/org/compiere/model/X_GL_Fund.java @@ -84,8 +84,6 @@ public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -122,9 +120,10 @@ public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -195,9 +194,10 @@ public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent */ public void setGL_Fund_ID (int GL_Fund_ID) { - if (GL_Fund_ID < 1) - throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); + if (GL_Fund_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); } /** Get GL Fund. @@ -234,8 +234,6 @@ public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_GL_FundRestriction.java b/base/src/org/compiere/model/X_GL_FundRestriction.java index 0d7d2168c1..f36a7b115d 100644 --- a/base/src/org/compiere/model/X_GL_FundRestriction.java +++ b/base/src/org/compiere/model/X_GL_FundRestriction.java @@ -97,9 +97,10 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ */ public void setC_ElementValue_ID (int C_ElementValue_ID) { - if (C_ElementValue_ID < 1) - throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); - set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + if (C_ElementValue_ID < 1) + set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); } /** Get Account Element. @@ -152,9 +153,10 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ */ public void setGL_Fund_ID (int GL_Fund_ID) { - if (GL_Fund_ID < 1) - throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); + if (GL_Fund_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); } /** Get GL Fund. @@ -174,9 +176,10 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ */ public void setGL_FundRestriction_ID (int GL_FundRestriction_ID) { - if (GL_FundRestriction_ID < 1) - throw new IllegalArgumentException ("GL_FundRestriction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_FundRestriction_ID, Integer.valueOf(GL_FundRestriction_ID)); + if (GL_FundRestriction_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_FundRestriction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_FundRestriction_ID, Integer.valueOf(GL_FundRestriction_ID)); } /** Get Fund Restriction. @@ -196,8 +199,6 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_GL_Journal.java b/base/src/org/compiere/model/X_GL_Journal.java index eefc5ed563..fbab0d98b2 100644 --- a/base/src/org/compiere/model/X_GL_Journal.java +++ b/base/src/org/compiere/model/X_GL_Journal.java @@ -132,9 +132,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -170,9 +171,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setC_ConversionType_ID (int C_ConversionType_ID) { - if (C_ConversionType_ID < 1) - throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); - set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); } /** Get Currency Type. @@ -208,9 +210,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -246,9 +249,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -288,9 +292,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -310,8 +315,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setCurrencyRate (BigDecimal CurrencyRate) { - if (CurrencyRate == null) - throw new IllegalArgumentException ("CurrencyRate is mandatory."); set_Value (COLUMNNAME_CurrencyRate, CurrencyRate); } @@ -332,8 +335,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -351,8 +352,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } @@ -370,8 +369,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -419,7 +416,7 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -463,7 +460,7 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -481,8 +478,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -563,9 +558,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setGL_Category_ID (int GL_Category_ID) { - if (GL_Category_ID < 1) - throw new IllegalArgumentException ("GL_Category_ID is mandatory."); - set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + if (GL_Category_ID < 1) + set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @@ -624,9 +620,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setGL_Journal_ID (int GL_Journal_ID) { - if (GL_Journal_ID < 1) - throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + if (GL_Journal_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); } /** Get Journal. @@ -730,7 +727,7 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } @@ -816,8 +813,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setTotalCr (BigDecimal TotalCr) { - if (TotalCr == null) - throw new IllegalArgumentException ("TotalCr is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); } @@ -838,8 +833,6 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent */ public void setTotalDr (BigDecimal TotalDr) { - if (TotalDr == null) - throw new IllegalArgumentException ("TotalDr is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); } diff --git a/base/src/org/compiere/model/X_GL_JournalBatch.java b/base/src/org/compiere/model/X_GL_JournalBatch.java index a09b746a79..7d77ed20b0 100644 --- a/base/src/org/compiere/model/X_GL_JournalBatch.java +++ b/base/src/org/compiere/model/X_GL_JournalBatch.java @@ -149,9 +149,10 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -265,8 +266,6 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -314,7 +313,7 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -358,7 +357,7 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -376,8 +375,6 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -442,9 +439,10 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) { - if (GL_JournalBatch_ID < 1) - throw new IllegalArgumentException ("GL_JournalBatch_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + if (GL_JournalBatch_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); } /** Get Journal Batch. @@ -500,7 +498,7 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } @@ -586,8 +584,6 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setTotalCr (BigDecimal TotalCr) { - if (TotalCr == null) - throw new IllegalArgumentException ("TotalCr is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); } @@ -608,8 +604,6 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis */ public void setTotalDr (BigDecimal TotalDr) { - if (TotalDr == null) - throw new IllegalArgumentException ("TotalDr is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); } diff --git a/base/src/org/compiere/model/X_GL_JournalLine.java b/base/src/org/compiere/model/X_GL_JournalLine.java index 65423bec15..1da7bcdf66 100644 --- a/base/src/org/compiere/model/X_GL_JournalLine.java +++ b/base/src/org/compiere/model/X_GL_JournalLine.java @@ -181,8 +181,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setAmtAcctCr (BigDecimal AmtAcctCr) { - if (AmtAcctCr == null) - throw new IllegalArgumentException ("AmtAcctCr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); } @@ -203,8 +201,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setAmtAcctDr (BigDecimal AmtAcctDr) { - if (AmtAcctDr == null) - throw new IllegalArgumentException ("AmtAcctDr is mandatory."); set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); } @@ -225,8 +221,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setAmtSourceCr (BigDecimal AmtSourceCr) { - if (AmtSourceCr == null) - throw new IllegalArgumentException ("AmtSourceCr is mandatory."); set_Value (COLUMNNAME_AmtSourceCr, AmtSourceCr); } @@ -247,8 +241,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setAmtSourceDr (BigDecimal AmtSourceDr) { - if (AmtSourceDr == null) - throw new IllegalArgumentException ("AmtSourceDr is mandatory."); set_Value (COLUMNNAME_AmtSourceDr, AmtSourceDr); } @@ -306,9 +298,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setC_ConversionType_ID (int C_ConversionType_ID) { - if (C_ConversionType_ID < 1) - throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); - set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); } /** Get Currency Type. @@ -344,9 +337,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -405,8 +399,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setCurrencyRate (BigDecimal CurrencyRate) { - if (CurrencyRate == null) - throw new IllegalArgumentException ("CurrencyRate is mandatory."); set_ValueNoCheck (COLUMNNAME_CurrencyRate, CurrencyRate); } @@ -427,9 +419,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setC_ValidCombination_ID (int C_ValidCombination_ID) { - if (C_ValidCombination_ID < 1) - throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); - set_Value (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); + if (C_ValidCombination_ID < 1) + set_Value (COLUMNNAME_C_ValidCombination_ID, null); + else + set_Value (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); } /** Get Combination. @@ -449,8 +442,6 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -501,9 +492,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setGL_Journal_ID (int GL_Journal_ID) { - if (GL_Journal_ID < 1) - throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + if (GL_Journal_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); } /** Get Journal. @@ -523,9 +515,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste */ public void setGL_JournalLine_ID (int GL_JournalLine_ID) { - if (GL_JournalLine_ID < 1) - throw new IllegalArgumentException ("GL_JournalLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_GL_JournalLine_ID, Integer.valueOf(GL_JournalLine_ID)); + if (GL_JournalLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_JournalLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_JournalLine_ID, Integer.valueOf(GL_JournalLine_ID)); } /** Get Journal Line. diff --git a/base/src/org/compiere/model/X_I_Asset.java b/base/src/org/compiere/model/X_I_Asset.java index 330f27c575..9eb4c9b104 100644 --- a/base/src/org/compiere/model/X_I_Asset.java +++ b/base/src/org/compiere/model/X_I_Asset.java @@ -1087,9 +1087,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent @param I_Asset_ID I_Asset_ID */ public void setI_Asset_ID (int I_Asset_ID) { - if (I_Asset_ID < 1) - throw new IllegalArgumentException ("I_Asset_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Asset_ID, Integer.valueOf(I_Asset_ID)); + if (I_Asset_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Asset_ID, Integer.valueOf(I_Asset_ID)); } /** Get I_Asset_ID. @@ -1328,7 +1329,7 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); diff --git a/base/src/org/compiere/model/X_I_BPartner.java b/base/src/org/compiere/model/X_I_BPartner.java index e3074b4df5..31538f8d3a 100644 --- a/base/src/org/compiere/model/X_I_BPartner.java +++ b/base/src/org/compiere/model/X_I_BPartner.java @@ -590,9 +590,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent @param I_BPartner_ID Import Business Partner */ public void setI_BPartner_ID (int I_BPartner_ID) { - if (I_BPartner_ID < 1) - throw new IllegalArgumentException ("I_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_BPartner_ID, Integer.valueOf(I_BPartner_ID)); + if (I_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_BPartner_ID, Integer.valueOf(I_BPartner_ID)); } /** Get Import Business Partner. diff --git a/base/src/org/compiere/model/X_I_BankStatement.java b/base/src/org/compiere/model/X_I_BankStatement.java index 570e720b63..0707bada99 100644 --- a/base/src/org/compiere/model/X_I_BankStatement.java +++ b/base/src/org/compiere/model/X_I_BankStatement.java @@ -736,9 +736,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis */ public void setI_BankStatement_ID (int I_BankStatement_ID) { - if (I_BankStatement_ID < 1) - throw new IllegalArgumentException ("I_BankStatement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_BankStatement_ID, Integer.valueOf(I_BankStatement_ID)); + if (I_BankStatement_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_BankStatement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_BankStatement_ID, Integer.valueOf(I_BankStatement_ID)); } /** Get Import Bank Statement. diff --git a/base/src/org/compiere/model/X_I_Conversion_Rate.java b/base/src/org/compiere/model/X_I_Conversion_Rate.java index 450a1ef06c..b587a8e26f 100644 --- a/base/src/org/compiere/model/X_I_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_I_Conversion_Rate.java @@ -279,9 +279,10 @@ public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Pe */ public void setI_Conversion_Rate_ID (int I_Conversion_Rate_ID) { - if (I_Conversion_Rate_ID < 1) - throw new IllegalArgumentException ("I_Conversion_Rate_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Conversion_Rate_ID, Integer.valueOf(I_Conversion_Rate_ID)); + if (I_Conversion_Rate_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Conversion_Rate_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Conversion_Rate_ID, Integer.valueOf(I_Conversion_Rate_ID)); } /** Get Import Conversion Rate. diff --git a/base/src/org/compiere/model/X_I_ElementValue.java b/base/src/org/compiere/model/X_I_ElementValue.java index 524bab9bc7..be46fe7287 100644 --- a/base/src/org/compiere/model/X_I_ElementValue.java +++ b/base/src/org/compiere/model/X_I_ElementValue.java @@ -289,9 +289,10 @@ public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persiste */ public void setI_ElementValue_ID (int I_ElementValue_ID) { - if (I_ElementValue_ID < 1) - throw new IllegalArgumentException ("I_ElementValue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_ElementValue_ID, Integer.valueOf(I_ElementValue_ID)); + if (I_ElementValue_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_ElementValue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_ElementValue_ID, Integer.valueOf(I_ElementValue_ID)); } /** Get Import Account. diff --git a/base/src/org/compiere/model/X_I_FAJournal.java b/base/src/org/compiere/model/X_I_FAJournal.java index f1cda92d7b..c72ca87d00 100644 --- a/base/src/org/compiere/model/X_I_FAJournal.java +++ b/base/src/org/compiere/model/X_I_FAJournal.java @@ -604,7 +604,7 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -1239,9 +1239,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent @param I_FAJournal_ID I_FAJournal_ID */ public void setI_FAJournal_ID (int I_FAJournal_ID) { - if (I_FAJournal_ID < 1) - throw new IllegalArgumentException ("I_FAJournal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_FAJournal_ID, Integer.valueOf(I_FAJournal_ID)); + if (I_FAJournal_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_FAJournal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_FAJournal_ID, Integer.valueOf(I_FAJournal_ID)); } /** Get I_FAJournal_ID. diff --git a/base/src/org/compiere/model/X_I_GLJournal.java b/base/src/org/compiere/model/X_I_GLJournal.java index e762706d0e..9a7be85a65 100644 --- a/base/src/org/compiere/model/X_I_GLJournal.java +++ b/base/src/org/compiere/model/X_I_GLJournal.java @@ -583,7 +583,7 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -1164,9 +1164,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent */ public void setI_GLJournal_ID (int I_GLJournal_ID) { - if (I_GLJournal_ID < 1) - throw new IllegalArgumentException ("I_GLJournal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_GLJournal_ID, Integer.valueOf(I_GLJournal_ID)); + if (I_GLJournal_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_GLJournal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_GLJournal_ID, Integer.valueOf(I_GLJournal_ID)); } /** Get Import GL Journal. diff --git a/base/src/org/compiere/model/X_I_InOutLineConfirm.java b/base/src/org/compiere/model/X_I_InOutLineConfirm.java index 86320b76ed..bc310d5b84 100644 --- a/base/src/org/compiere/model/X_I_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_I_InOutLineConfirm.java @@ -86,8 +86,6 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setConfirmationNo (String ConfirmationNo) { - if (ConfirmationNo == null) - throw new IllegalArgumentException ("ConfirmationNo is mandatory."); set_Value (COLUMNNAME_ConfirmationNo, ConfirmationNo); } @@ -105,8 +103,6 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setConfirmedQty (BigDecimal ConfirmedQty) { - if (ConfirmedQty == null) - throw new IllegalArgumentException ("ConfirmedQty is mandatory."); set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); } @@ -144,8 +140,6 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setDifferenceQty (BigDecimal DifferenceQty) { - if (DifferenceQty == null) - throw new IllegalArgumentException ("DifferenceQty is mandatory."); set_Value (COLUMNNAME_DifferenceQty, DifferenceQty); } @@ -183,9 +177,10 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setI_InOutLineConfirm_ID (int I_InOutLineConfirm_ID) { - if (I_InOutLineConfirm_ID < 1) - throw new IllegalArgumentException ("I_InOutLineConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_InOutLineConfirm_ID, Integer.valueOf(I_InOutLineConfirm_ID)); + if (I_InOutLineConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_InOutLineConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_InOutLineConfirm_ID, Integer.valueOf(I_InOutLineConfirm_ID)); } /** Get Ship/Receipt Confirmation Import Line. @@ -253,9 +248,10 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) { - if (M_InOutLineConfirm_ID < 1) - throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); - set_Value (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); + if (M_InOutLineConfirm_ID < 1) + set_Value (COLUMNNAME_M_InOutLineConfirm_ID, null); + else + set_Value (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); } /** Get Ship/Receipt Confirmation Line. @@ -320,8 +316,6 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ */ public void setScrappedQty (BigDecimal ScrappedQty) { - if (ScrappedQty == null) - throw new IllegalArgumentException ("ScrappedQty is mandatory."); set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); } diff --git a/base/src/org/compiere/model/X_I_Inventory.java b/base/src/org/compiere/model/X_I_Inventory.java index bdc995f447..f568a76a19 100644 --- a/base/src/org/compiere/model/X_I_Inventory.java +++ b/base/src/org/compiere/model/X_I_Inventory.java @@ -116,9 +116,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent */ public void setI_Inventory_ID (int I_Inventory_ID) { - if (I_Inventory_ID < 1) - throw new IllegalArgumentException ("I_Inventory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Inventory_ID, Integer.valueOf(I_Inventory_ID)); + if (I_Inventory_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Inventory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Inventory_ID, Integer.valueOf(I_Inventory_ID)); } /** Get Import Inventory. diff --git a/base/src/org/compiere/model/X_I_Invoice.java b/base/src/org/compiere/model/X_I_Invoice.java index 985dc09b6d..a4fbe09271 100644 --- a/base/src/org/compiere/model/X_I_Invoice.java +++ b/base/src/org/compiere/model/X_I_Invoice.java @@ -497,7 +497,7 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -987,9 +987,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent */ public void setI_Invoice_ID (int I_Invoice_ID) { - if (I_Invoice_ID < 1) - throw new IllegalArgumentException ("I_Invoice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Invoice_ID, Integer.valueOf(I_Invoice_ID)); + if (I_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Invoice_ID, Integer.valueOf(I_Invoice_ID)); } /** Get Import Invoice. diff --git a/base/src/org/compiere/model/X_I_Order.java b/base/src/org/compiere/model/X_I_Order.java index f3fdf307ca..b59139818b 100644 --- a/base/src/org/compiere/model/X_I_Order.java +++ b/base/src/org/compiere/model/X_I_Order.java @@ -506,7 +506,7 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -1072,9 +1072,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent */ public void setI_Order_ID (int I_Order_ID) { - if (I_Order_ID < 1) - throw new IllegalArgumentException ("I_Order_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Order_ID, Integer.valueOf(I_Order_ID)); + if (I_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Order_ID, Integer.valueOf(I_Order_ID)); } /** Get Import Order. diff --git a/base/src/org/compiere/model/X_I_Payment.java b/base/src/org/compiere/model/X_I_Payment.java index 81892475e4..4cea539b3e 100644 --- a/base/src/org/compiere/model/X_I_Payment.java +++ b/base/src/org/compiere/model/X_I_Payment.java @@ -457,7 +457,7 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -866,9 +866,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent */ public void setI_Payment_ID (int I_Payment_ID) { - if (I_Payment_ID < 1) - throw new IllegalArgumentException ("I_Payment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Payment_ID, Integer.valueOf(I_Payment_ID)); + if (I_Payment_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Payment_ID, Integer.valueOf(I_Payment_ID)); } /** Get Import Payment. diff --git a/base/src/org/compiere/model/X_I_PriceList.java b/base/src/org/compiere/model/X_I_PriceList.java index 2e3d2534d5..0612a532a0 100644 --- a/base/src/org/compiere/model/X_I_PriceList.java +++ b/base/src/org/compiere/model/X_I_PriceList.java @@ -316,9 +316,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, I_Persistent @param I_PriceList_ID Import Price List */ public void setI_PriceList_ID (int I_PriceList_ID) { - if (I_PriceList_ID < 1) - throw new IllegalArgumentException ("I_PriceList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_PriceList_ID, Integer.valueOf(I_PriceList_ID)); + if (I_PriceList_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_PriceList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_PriceList_ID, Integer.valueOf(I_PriceList_ID)); } /** Get Import Price List. diff --git a/base/src/org/compiere/model/X_I_Product.java b/base/src/org/compiere/model/X_I_Product.java index 84ecf44ece..b8bed47ac5 100644 --- a/base/src/org/compiere/model/X_I_Product.java +++ b/base/src/org/compiere/model/X_I_Product.java @@ -440,9 +440,10 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent */ public void setI_Product_ID (int I_Product_ID) { - if (I_Product_ID < 1) - throw new IllegalArgumentException ("I_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_Product_ID, Integer.valueOf(I_Product_ID)); + if (I_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_Product_ID, Integer.valueOf(I_Product_ID)); } /** Get Import Product. diff --git a/base/src/org/compiere/model/X_I_ReportLine.java b/base/src/org/compiere/model/X_I_ReportLine.java index 475aeb7549..c7e3e36eb6 100644 --- a/base/src/org/compiere/model/X_I_ReportLine.java +++ b/base/src/org/compiere/model/X_I_ReportLine.java @@ -264,9 +264,10 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent */ public void setI_ReportLine_ID (int I_ReportLine_ID) { - if (I_ReportLine_ID < 1) - throw new IllegalArgumentException ("I_ReportLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, Integer.valueOf(I_ReportLine_ID)); + if (I_ReportLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, Integer.valueOf(I_ReportLine_ID)); } /** Get Import Report Line Set. diff --git a/base/src/org/compiere/model/X_K_Category.java b/base/src/org/compiere/model/X_K_Category.java index adabbd870f..7c59cf9401 100644 --- a/base/src/org/compiere/model/X_K_Category.java +++ b/base/src/org/compiere/model/X_K_Category.java @@ -111,9 +111,10 @@ public class X_K_Category extends PO implements I_K_Category, I_Persistent */ public void setK_Category_ID (int K_Category_ID) { - if (K_Category_ID < 1) - throw new IllegalArgumentException ("K_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + if (K_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); } /** Get Knowledge Category. @@ -133,8 +134,6 @@ public class X_K_Category extends PO implements I_K_Category, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_K_CategoryValue.java b/base/src/org/compiere/model/X_K_CategoryValue.java index 29c509a146..9041fb566d 100644 --- a/base/src/org/compiere/model/X_K_CategoryValue.java +++ b/base/src/org/compiere/model/X_K_CategoryValue.java @@ -113,9 +113,10 @@ public class X_K_CategoryValue extends PO implements I_K_CategoryValue, I_Persis */ public void setK_Category_ID (int K_Category_ID) { - if (K_Category_ID < 1) - throw new IllegalArgumentException ("K_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + if (K_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); } /** Get Knowledge Category. @@ -135,9 +136,10 @@ public class X_K_CategoryValue extends PO implements I_K_CategoryValue, I_Persis */ public void setK_CategoryValue_ID (int K_CategoryValue_ID) { - if (K_CategoryValue_ID < 1) - throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); + if (K_CategoryValue_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_CategoryValue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); } /** Get Category Value. @@ -157,8 +159,6 @@ public class X_K_CategoryValue extends PO implements I_K_CategoryValue, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_K_Comment.java b/base/src/org/compiere/model/X_K_Comment.java index 077fd2577b..727ceb5632 100644 --- a/base/src/org/compiere/model/X_K_Comment.java +++ b/base/src/org/compiere/model/X_K_Comment.java @@ -146,9 +146,10 @@ public class X_K_Comment extends PO implements I_K_Comment, I_Persistent */ public void setK_Comment_ID (int K_Comment_ID) { - if (K_Comment_ID < 1) - throw new IllegalArgumentException ("K_Comment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Comment_ID, Integer.valueOf(K_Comment_ID)); + if (K_Comment_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Comment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Comment_ID, Integer.valueOf(K_Comment_ID)); } /** Get Entry Comment. @@ -192,9 +193,10 @@ public class X_K_Comment extends PO implements I_K_Comment, I_Persistent */ public void setK_Entry_ID (int K_Entry_ID) { - if (K_Entry_ID < 1) - throw new IllegalArgumentException ("K_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + if (K_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); } /** Get Entry. @@ -234,8 +236,6 @@ public class X_K_Comment extends PO implements I_K_Comment, I_Persistent */ public void setTextMsg (String TextMsg) { - if (TextMsg == null) - throw new IllegalArgumentException ("TextMsg is mandatory."); set_Value (COLUMNNAME_TextMsg, TextMsg); } diff --git a/base/src/org/compiere/model/X_K_Entry.java b/base/src/org/compiere/model/X_K_Entry.java index b7121bfe7a..c8d9f55744 100644 --- a/base/src/org/compiere/model/X_K_Entry.java +++ b/base/src/org/compiere/model/X_K_Entry.java @@ -165,9 +165,10 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent */ public void setK_Entry_ID (int K_Entry_ID) { - if (K_Entry_ID < 1) - throw new IllegalArgumentException ("K_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + if (K_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); } /** Get Entry. @@ -259,9 +260,10 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent */ public void setK_Topic_ID (int K_Topic_ID) { - if (K_Topic_ID < 1) - throw new IllegalArgumentException ("K_Topic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); + if (K_Topic_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); } /** Get Knowledge Topic. @@ -281,8 +283,6 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -328,8 +328,6 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent */ public void setTextMsg (String TextMsg) { - if (TextMsg == null) - throw new IllegalArgumentException ("TextMsg is mandatory."); set_Value (COLUMNNAME_TextMsg, TextMsg); } diff --git a/base/src/org/compiere/model/X_K_EntryCategory.java b/base/src/org/compiere/model/X_K_EntryCategory.java index 3d4bd7f647..1c64b293af 100644 --- a/base/src/org/compiere/model/X_K_EntryCategory.java +++ b/base/src/org/compiere/model/X_K_EntryCategory.java @@ -96,9 +96,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis */ public void setK_Category_ID (int K_Category_ID) { - if (K_Category_ID < 1) - throw new IllegalArgumentException ("K_Category_ID is mandatory."); - set_Value (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + if (K_Category_ID < 1) + set_Value (COLUMNNAME_K_Category_ID, null); + else + set_Value (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); } /** Get Knowledge Category. @@ -134,9 +135,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis */ public void setK_CategoryValue_ID (int K_CategoryValue_ID) { - if (K_CategoryValue_ID < 1) - throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); - set_Value (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); + if (K_CategoryValue_ID < 1) + set_Value (COLUMNNAME_K_CategoryValue_ID, null); + else + set_Value (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); } /** Get Category Value. @@ -180,9 +182,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis */ public void setK_Entry_ID (int K_Entry_ID) { - if (K_Entry_ID < 1) - throw new IllegalArgumentException ("K_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + if (K_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); } /** Get Entry. diff --git a/base/src/org/compiere/model/X_K_EntryRelated.java b/base/src/org/compiere/model/X_K_EntryRelated.java index 4e707164fc..7f92edbbec 100644 --- a/base/src/org/compiere/model/X_K_EntryRelated.java +++ b/base/src/org/compiere/model/X_K_EntryRelated.java @@ -95,9 +95,10 @@ public class X_K_EntryRelated extends PO implements I_K_EntryRelated, I_Persiste */ public void setK_Entry_ID (int K_Entry_ID) { - if (K_Entry_ID < 1) - throw new IllegalArgumentException ("K_Entry_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + if (K_Entry_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); } /** Get Entry. @@ -117,9 +118,10 @@ public class X_K_EntryRelated extends PO implements I_K_EntryRelated, I_Persiste */ public void setK_EntryRelated_ID (int K_EntryRelated_ID) { - if (K_EntryRelated_ID < 1) - throw new IllegalArgumentException ("K_EntryRelated_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_EntryRelated_ID, Integer.valueOf(K_EntryRelated_ID)); + if (K_EntryRelated_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_EntryRelated_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_EntryRelated_ID, Integer.valueOf(K_EntryRelated_ID)); } /** Get Related Entry. diff --git a/base/src/org/compiere/model/X_K_Index.java b/base/src/org/compiere/model/X_K_Index.java index 72554836d3..a8b718ea7f 100644 --- a/base/src/org/compiere/model/X_K_Index.java +++ b/base/src/org/compiere/model/X_K_Index.java @@ -99,9 +99,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -137,7 +138,7 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); else set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -216,8 +217,6 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setKeyword (String Keyword) { - if (Keyword == null) - throw new IllegalArgumentException ("Keyword is mandatory."); set_ValueNoCheck (COLUMNNAME_Keyword, Keyword); } @@ -243,9 +242,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setK_INDEX_ID (int K_INDEX_ID) { - if (K_INDEX_ID < 1) - throw new IllegalArgumentException ("K_INDEX_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_INDEX_ID, Integer.valueOf(K_INDEX_ID)); + if (K_INDEX_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_INDEX_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_INDEX_ID, Integer.valueOf(K_INDEX_ID)); } /** Get Index. @@ -265,9 +265,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @@ -326,8 +327,6 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent */ public void setSourceUpdated (Timestamp SourceUpdated) { - if (SourceUpdated == null) - throw new IllegalArgumentException ("SourceUpdated is mandatory."); set_Value (COLUMNNAME_SourceUpdated, SourceUpdated); } diff --git a/base/src/org/compiere/model/X_K_IndexLog.java b/base/src/org/compiere/model/X_K_IndexLog.java index 14bdea69bf..322e5dc2dc 100644 --- a/base/src/org/compiere/model/X_K_IndexLog.java +++ b/base/src/org/compiere/model/X_K_IndexLog.java @@ -79,8 +79,6 @@ public class X_K_IndexLog extends PO implements I_K_IndexLog, I_Persistent */ public void setIndexQuery (String IndexQuery) { - if (IndexQuery == null) - throw new IllegalArgumentException ("IndexQuery is mandatory."); set_ValueNoCheck (COLUMNNAME_IndexQuery, IndexQuery); } @@ -126,9 +124,10 @@ public class X_K_IndexLog extends PO implements I_K_IndexLog, I_Persistent */ public void setK_IndexLog_ID (int K_IndexLog_ID) { - if (K_IndexLog_ID < 1) - throw new IllegalArgumentException ("K_IndexLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, Integer.valueOf(K_IndexLog_ID)); + if (K_IndexLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, Integer.valueOf(K_IndexLog_ID)); } /** Get Index Log. @@ -158,7 +157,7 @@ public class X_K_IndexLog extends PO implements I_K_IndexLog, I_Persistent */ public void setQuerySource (String QuerySource) { - if (QuerySource == null) throw new IllegalArgumentException ("QuerySource is mandatory"); + set_Value (COLUMNNAME_QuerySource, QuerySource); } diff --git a/base/src/org/compiere/model/X_K_IndexStop.java b/base/src/org/compiere/model/X_K_IndexStop.java index 5c86509498..e44092fa92 100644 --- a/base/src/org/compiere/model/X_K_IndexStop.java +++ b/base/src/org/compiere/model/X_K_IndexStop.java @@ -97,7 +97,7 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -183,8 +183,6 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent */ public void setKeyword (String Keyword) { - if (Keyword == null) - throw new IllegalArgumentException ("Keyword is mandatory."); set_Value (COLUMNNAME_Keyword, Keyword); } @@ -210,9 +208,10 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent */ public void setK_IndexStop_ID (int K_IndexStop_ID) { - if (K_IndexStop_ID < 1) - throw new IllegalArgumentException ("K_IndexStop_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_IndexStop_ID, Integer.valueOf(K_IndexStop_ID)); + if (K_IndexStop_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_IndexStop_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_IndexStop_ID, Integer.valueOf(K_IndexStop_ID)); } /** Get Index Stop. diff --git a/base/src/org/compiere/model/X_K_Source.java b/base/src/org/compiere/model/X_K_Source.java index 6d7f4da9e6..6a6515b00b 100644 --- a/base/src/org/compiere/model/X_K_Source.java +++ b/base/src/org/compiere/model/X_K_Source.java @@ -94,9 +94,10 @@ public class X_K_Source extends PO implements I_K_Source, I_Persistent */ public void setK_Source_ID (int K_Source_ID) { - if (K_Source_ID < 1) - throw new IllegalArgumentException ("K_Source_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Source_ID, Integer.valueOf(K_Source_ID)); + if (K_Source_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Source_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Source_ID, Integer.valueOf(K_Source_ID)); } /** Get Knowledge Source. @@ -116,8 +117,6 @@ public class X_K_Source extends PO implements I_K_Source, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_K_Synonym.java b/base/src/org/compiere/model/X_K_Synonym.java index 9bc7118ee7..c58faa42cf 100644 --- a/base/src/org/compiere/model/X_K_Synonym.java +++ b/base/src/org/compiere/model/X_K_Synonym.java @@ -99,9 +99,10 @@ public class X_K_Synonym extends PO implements I_K_Synonym, I_Persistent */ public void setK_Synonym_ID (int K_Synonym_ID) { - if (K_Synonym_ID < 1) - throw new IllegalArgumentException ("K_Synonym_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Synonym_ID, Integer.valueOf(K_Synonym_ID)); + if (K_Synonym_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Synonym_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Synonym_ID, Integer.valueOf(K_Synonym_ID)); } /** Get Knowledge Synonym. @@ -121,8 +122,6 @@ public class X_K_Synonym extends PO implements I_K_Synonym, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -148,8 +147,6 @@ public class X_K_Synonym extends PO implements I_K_Synonym, I_Persistent */ public void setSynonymName (String SynonymName) { - if (SynonymName == null) - throw new IllegalArgumentException ("SynonymName is mandatory."); set_Value (COLUMNNAME_SynonymName, SynonymName); } diff --git a/base/src/org/compiere/model/X_K_Topic.java b/base/src/org/compiere/model/X_K_Topic.java index a3c66d87dd..feacc97c89 100644 --- a/base/src/org/compiere/model/X_K_Topic.java +++ b/base/src/org/compiere/model/X_K_Topic.java @@ -166,9 +166,10 @@ public class X_K_Topic extends PO implements I_K_Topic, I_Persistent */ public void setK_Topic_ID (int K_Topic_ID) { - if (K_Topic_ID < 1) - throw new IllegalArgumentException ("K_Topic_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); + if (K_Topic_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); } /** Get Knowledge Topic. @@ -204,9 +205,10 @@ public class X_K_Topic extends PO implements I_K_Topic, I_Persistent */ public void setK_Type_ID (int K_Type_ID) { - if (K_Type_ID < 1) - throw new IllegalArgumentException ("K_Type_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); + if (K_Type_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Type_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); } /** Get Knowldge Type. @@ -226,8 +228,6 @@ public class X_K_Topic extends PO implements I_K_Topic, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_K_Type.java b/base/src/org/compiere/model/X_K_Type.java index 44598c7071..a61f32c7b3 100644 --- a/base/src/org/compiere/model/X_K_Type.java +++ b/base/src/org/compiere/model/X_K_Type.java @@ -163,9 +163,10 @@ public class X_K_Type extends PO implements I_K_Type, I_Persistent */ public void setK_Type_ID (int K_Type_ID) { - if (K_Type_ID < 1) - throw new IllegalArgumentException ("K_Type_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); + if (K_Type_ID < 1) + set_ValueNoCheck (COLUMNNAME_K_Type_ID, null); + else + set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); } /** Get Knowldge Type. @@ -185,8 +186,6 @@ public class X_K_Type extends PO implements I_K_Type, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_Attribute.java b/base/src/org/compiere/model/X_M_Attribute.java index 0b4c765687..3036cbb404 100644 --- a/base/src/org/compiere/model/X_M_Attribute.java +++ b/base/src/org/compiere/model/X_M_Attribute.java @@ -91,7 +91,7 @@ public class X_M_Attribute extends PO implements I_M_Attribute, I_Persistent */ public void setAttributeValueType (String AttributeValueType) { - if (AttributeValueType == null) throw new IllegalArgumentException ("AttributeValueType is mandatory"); + set_Value (COLUMNNAME_AttributeValueType, AttributeValueType); } @@ -174,9 +174,10 @@ public class X_M_Attribute extends PO implements I_M_Attribute, I_Persistent */ public void setM_Attribute_ID (int M_Attribute_ID) { - if (M_Attribute_ID < 1) - throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + if (M_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); } /** Get Attribute. @@ -235,8 +236,6 @@ public class X_M_Attribute extends PO implements I_M_Attribute, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_AttributeInstance.java b/base/src/org/compiere/model/X_M_AttributeInstance.java index d1edf8c017..b504004e6e 100644 --- a/base/src/org/compiere/model/X_M_AttributeInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeInstance.java @@ -97,9 +97,10 @@ public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, */ public void setM_Attribute_ID (int M_Attribute_ID) { - if (M_Attribute_ID < 1) - throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + if (M_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); } /** Get Attribute. @@ -119,9 +120,10 @@ public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. diff --git a/base/src/org/compiere/model/X_M_AttributeSearch.java b/base/src/org/compiere/model/X_M_AttributeSearch.java index 454c9443e6..a434d19ec9 100644 --- a/base/src/org/compiere/model/X_M_AttributeSearch.java +++ b/base/src/org/compiere/model/X_M_AttributeSearch.java @@ -94,9 +94,10 @@ public class X_M_AttributeSearch extends PO implements I_M_AttributeSearch, I_Pe */ public void setM_AttributeSearch_ID (int M_AttributeSearch_ID) { - if (M_AttributeSearch_ID < 1) - throw new IllegalArgumentException ("M_AttributeSearch_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSearch_ID, Integer.valueOf(M_AttributeSearch_ID)); + if (M_AttributeSearch_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_AttributeSearch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSearch_ID, Integer.valueOf(M_AttributeSearch_ID)); } /** Get Attribute Search. @@ -116,8 +117,6 @@ public class X_M_AttributeSearch extends PO implements I_M_AttributeSearch, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_AttributeSet.java b/base/src/org/compiere/model/X_M_AttributeSet.java index 7abd4beec6..04195c47ef 100644 --- a/base/src/org/compiere/model/X_M_AttributeSet.java +++ b/base/src/org/compiere/model/X_M_AttributeSet.java @@ -334,7 +334,7 @@ public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persiste */ public void setMandatoryType (String MandatoryType) { - if (MandatoryType == null) throw new IllegalArgumentException ("MandatoryType is mandatory"); + set_Value (COLUMNNAME_MandatoryType, MandatoryType); } @@ -352,9 +352,10 @@ public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persiste */ public void setM_AttributeSet_ID (int M_AttributeSet_ID) { - if (M_AttributeSet_ID < 0) - throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + if (M_AttributeSet_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); } /** Get Attribute Set. @@ -452,8 +453,6 @@ public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_AttributeSetExclude.java b/base/src/org/compiere/model/X_M_AttributeSetExclude.java index 45015552f2..dd55c6e833 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetExclude.java +++ b/base/src/org/compiere/model/X_M_AttributeSetExclude.java @@ -96,9 +96,10 @@ public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclu */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -142,9 +143,10 @@ public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclu */ public void setM_AttributeSetExclude_ID (int M_AttributeSetExclude_ID) { - if (M_AttributeSetExclude_ID < 1) - throw new IllegalArgumentException ("M_AttributeSetExclude_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetExclude_ID, Integer.valueOf(M_AttributeSetExclude_ID)); + if (M_AttributeSetExclude_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetExclude_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetExclude_ID, Integer.valueOf(M_AttributeSetExclude_ID)); } /** Get Exclude Attribute Set. @@ -180,9 +182,10 @@ public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclu */ public void setM_AttributeSet_ID (int M_AttributeSet_ID) { - if (M_AttributeSet_ID < 0) - throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + if (M_AttributeSet_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); } /** Get Attribute Set. diff --git a/base/src/org/compiere/model/X_M_AttributeSetInstance.java b/base/src/org/compiere/model/X_M_AttributeSetInstance.java index fe173e107f..ccddf0e293 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeSetInstance.java @@ -147,9 +147,10 @@ public class X_M_AttributeSetInstance extends PO implements I_M_AttributeSetInst */ public void setM_AttributeSet_ID (int M_AttributeSet_ID) { - if (M_AttributeSet_ID < 0) - throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + if (M_AttributeSet_ID < 0) + set_Value (COLUMNNAME_M_AttributeSet_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); } /** Get Attribute Set. @@ -169,9 +170,10 @@ public class X_M_AttributeSetInstance extends PO implements I_M_AttributeSetInst */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. diff --git a/base/src/org/compiere/model/X_M_AttributeUse.java b/base/src/org/compiere/model/X_M_AttributeUse.java index 61ff676577..bfc78105b5 100644 --- a/base/src/org/compiere/model/X_M_AttributeUse.java +++ b/base/src/org/compiere/model/X_M_AttributeUse.java @@ -97,9 +97,10 @@ public class X_M_AttributeUse extends PO implements I_M_AttributeUse, I_Persiste */ public void setM_Attribute_ID (int M_Attribute_ID) { - if (M_Attribute_ID < 1) - throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + if (M_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); } /** Get Attribute. @@ -135,9 +136,10 @@ public class X_M_AttributeUse extends PO implements I_M_AttributeUse, I_Persiste */ public void setM_AttributeSet_ID (int M_AttributeSet_ID) { - if (M_AttributeSet_ID < 0) - throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + if (M_AttributeSet_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); } /** Get Attribute Set. diff --git a/base/src/org/compiere/model/X_M_AttributeValue.java b/base/src/org/compiere/model/X_M_AttributeValue.java index b72f4b6aa3..e75e244556 100644 --- a/base/src/org/compiere/model/X_M_AttributeValue.java +++ b/base/src/org/compiere/model/X_M_AttributeValue.java @@ -114,9 +114,10 @@ public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Pers */ public void setM_Attribute_ID (int M_Attribute_ID) { - if (M_Attribute_ID < 1) - throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + if (M_Attribute_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); } /** Get Attribute. @@ -136,9 +137,10 @@ public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Pers */ public void setM_AttributeValue_ID (int M_AttributeValue_ID) { - if (M_AttributeValue_ID < 1) - throw new IllegalArgumentException ("M_AttributeValue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeValue_ID, Integer.valueOf(M_AttributeValue_ID)); + if (M_AttributeValue_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_AttributeValue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeValue_ID, Integer.valueOf(M_AttributeValue_ID)); } /** Get Attribute Value. @@ -158,8 +160,6 @@ public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -185,8 +185,6 @@ public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Pers */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_M_BOM.java b/base/src/org/compiere/model/X_M_BOM.java index c9a50425ca..94e88b9618 100644 --- a/base/src/org/compiere/model/X_M_BOM.java +++ b/base/src/org/compiere/model/X_M_BOM.java @@ -104,7 +104,7 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent */ public void setBOMType (String BOMType) { - if (BOMType == null) throw new IllegalArgumentException ("BOMType is mandatory"); + set_Value (COLUMNNAME_BOMType, BOMType); } @@ -134,7 +134,7 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent */ public void setBOMUse (String BOMUse) { - if (BOMUse == null) throw new IllegalArgumentException ("BOMUse is mandatory"); + set_Value (COLUMNNAME_BOMUse, BOMUse); } @@ -186,9 +186,10 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent */ public void setM_BOM_ID (int M_BOM_ID) { - if (M_BOM_ID < 1) - throw new IllegalArgumentException ("M_BOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + if (M_BOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); } /** Get BOM. @@ -263,9 +264,10 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -285,8 +287,6 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_BOMAlternative.java b/base/src/org/compiere/model/X_M_BOMAlternative.java index 280e80231f..184cefe834 100644 --- a/base/src/org/compiere/model/X_M_BOMAlternative.java +++ b/base/src/org/compiere/model/X_M_BOMAlternative.java @@ -97,9 +97,10 @@ public class X_M_BOMAlternative extends PO implements I_M_BOMAlternative, I_Pers */ public void setM_BOMAlternative_ID (int M_BOMAlternative_ID) { - if (M_BOMAlternative_ID < 1) - throw new IllegalArgumentException ("M_BOMAlternative_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_BOMAlternative_ID, Integer.valueOf(M_BOMAlternative_ID)); + if (M_BOMAlternative_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_BOMAlternative_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_BOMAlternative_ID, Integer.valueOf(M_BOMAlternative_ID)); } /** Get Alternative Group. @@ -135,9 +136,10 @@ public class X_M_BOMAlternative extends PO implements I_M_BOMAlternative, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -157,8 +159,6 @@ public class X_M_BOMAlternative extends PO implements I_M_BOMAlternative, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_BOMProduct.java b/base/src/org/compiere/model/X_M_BOMProduct.java index 7b650d9c0c..262260637f 100644 --- a/base/src/org/compiere/model/X_M_BOMProduct.java +++ b/base/src/org/compiere/model/X_M_BOMProduct.java @@ -101,7 +101,7 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent */ public void setBOMProductType (String BOMProductType) { - if (BOMProductType == null) throw new IllegalArgumentException ("BOMProductType is mandatory"); + set_Value (COLUMNNAME_BOMProductType, BOMProductType); } @@ -119,8 +119,6 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent */ public void setBOMQty (BigDecimal BOMQty) { - if (BOMQty == null) - throw new IllegalArgumentException ("BOMQty is mandatory."); set_Value (COLUMNNAME_BOMQty, BOMQty); } @@ -247,7 +245,7 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -325,9 +323,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent */ public void setM_BOM_ID (int M_BOM_ID) { - if (M_BOM_ID < 1) - throw new IllegalArgumentException ("M_BOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + if (M_BOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); } /** Get BOM. @@ -347,9 +346,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent */ public void setM_BOMProduct_ID (int M_BOMProduct_ID) { - if (M_BOMProduct_ID < 1) - throw new IllegalArgumentException ("M_BOMProduct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_BOMProduct_ID, Integer.valueOf(M_BOMProduct_ID)); + if (M_BOMProduct_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_BOMProduct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_BOMProduct_ID, Integer.valueOf(M_BOMProduct_ID)); } /** Get BOM Component. diff --git a/base/src/org/compiere/model/X_M_ChangeNotice.java b/base/src/org/compiere/model/X_M_ChangeNotice.java index 016d30d558..bdc17757c8 100644 --- a/base/src/org/compiere/model/X_M_ChangeNotice.java +++ b/base/src/org/compiere/model/X_M_ChangeNotice.java @@ -155,9 +155,10 @@ public class X_M_ChangeNotice extends PO implements I_M_ChangeNotice, I_Persiste */ public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) { - if (M_ChangeNotice_ID < 1) - throw new IllegalArgumentException ("M_ChangeNotice_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + if (M_ChangeNotice_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); } /** Get Change Notice. @@ -177,8 +178,6 @@ public class X_M_ChangeNotice extends PO implements I_M_ChangeNotice, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_ChangeRequest.java b/base/src/org/compiere/model/X_M_ChangeRequest.java index 5e0fdaa116..bf0f146f9a 100644 --- a/base/src/org/compiere/model/X_M_ChangeRequest.java +++ b/base/src/org/compiere/model/X_M_ChangeRequest.java @@ -117,8 +117,6 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -224,9 +222,10 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis */ public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) { - if (M_ChangeRequest_ID < 1) - throw new IllegalArgumentException ("M_ChangeRequest_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); + if (M_ChangeRequest_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); } /** Get Change Request. @@ -269,8 +268,6 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_Cost.java b/base/src/org/compiere/model/X_M_Cost.java index 8156ebb0d2..3684e3c42f 100644 --- a/base/src/org/compiere/model/X_M_Cost.java +++ b/base/src/org/compiere/model/X_M_Cost.java @@ -103,9 +103,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -202,8 +203,6 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setCurrentCostPrice (BigDecimal CurrentCostPrice) { - if (CurrentCostPrice == null) - throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); } @@ -224,8 +223,6 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setCurrentCostPriceLL (BigDecimal CurrentCostPriceLL) { - if (CurrentCostPriceLL == null) - throw new IllegalArgumentException ("CurrentCostPriceLL is mandatory."); set_Value (COLUMNNAME_CurrentCostPriceLL, CurrentCostPriceLL); } @@ -246,8 +243,6 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setCurrentQty (BigDecimal CurrentQty) { - if (CurrentQty == null) - throw new IllegalArgumentException ("CurrentQty is mandatory."); set_Value (COLUMNNAME_CurrentQty, CurrentQty); } @@ -283,8 +278,6 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent @param FutureCostPrice Future Cost Price */ public void setFutureCostPrice (BigDecimal FutureCostPrice) { - if (FutureCostPrice == null) - throw new IllegalArgumentException ("FutureCostPrice is mandatory."); set_Value (COLUMNNAME_FutureCostPrice, FutureCostPrice); } @@ -345,9 +338,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -383,9 +377,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setM_CostElement_ID (int M_CostElement_ID) { - if (M_CostElement_ID < 1) - throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + if (M_CostElement_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. @@ -421,9 +416,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setM_CostType_ID (int M_CostType_ID) { - if (M_CostType_ID < 1) - throw new IllegalArgumentException ("M_CostType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + if (M_CostType_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); } /** Get Cost Type. @@ -459,9 +455,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_M_CostDetail.java b/base/src/org/compiere/model/X_M_CostDetail.java index 6353d630c7..23b70a96e4 100644 --- a/base/src/org/compiere/model/X_M_CostDetail.java +++ b/base/src/org/compiere/model/X_M_CostDetail.java @@ -86,8 +86,6 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setAmt (BigDecimal Amt) { - if (Amt == null) - throw new IllegalArgumentException ("Amt is mandatory."); set_Value (COLUMNNAME_Amt, Amt); } @@ -124,9 +122,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -344,9 +343,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -366,9 +366,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setM_CostDetail_ID (int M_CostDetail_ID) { - if (M_CostDetail_ID < 1) - throw new IllegalArgumentException ("M_CostDetail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostDetail_ID, Integer.valueOf(M_CostDetail_ID)); + if (M_CostDetail_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostDetail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostDetail_ID, Integer.valueOf(M_CostDetail_ID)); } /** Get Cost Detail. @@ -560,9 +561,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -700,8 +702,6 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_CostElement.java b/base/src/org/compiere/model/X_M_CostElement.java index 38be367ed9..c411501c43 100644 --- a/base/src/org/compiere/model/X_M_CostElement.java +++ b/base/src/org/compiere/model/X_M_CostElement.java @@ -91,7 +91,7 @@ public class X_M_CostElement extends PO implements I_M_CostElement, I_Persistent */ public void setCostElementType (String CostElementType) { - if (CostElementType == null) throw new IllegalArgumentException ("CostElementType is mandatory"); + set_Value (COLUMNNAME_CostElementType, CostElementType); } @@ -188,9 +188,10 @@ public class X_M_CostElement extends PO implements I_M_CostElement, I_Persistent */ public void setM_CostElement_ID (int M_CostElement_ID) { - if (M_CostElement_ID < 1) - throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + if (M_CostElement_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. @@ -210,8 +211,6 @@ public class X_M_CostElement extends PO implements I_M_CostElement, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_CostQueue.java b/base/src/org/compiere/model/X_M_CostQueue.java index 9313340706..ec66661b67 100644 --- a/base/src/org/compiere/model/X_M_CostQueue.java +++ b/base/src/org/compiere/model/X_M_CostQueue.java @@ -102,9 +102,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -124,8 +125,6 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setCurrentCostPrice (BigDecimal CurrentCostPrice) { - if (CurrentCostPrice == null) - throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); } @@ -146,8 +145,6 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setCurrentQty (BigDecimal CurrentQty) { - if (CurrentQty == null) - throw new IllegalArgumentException ("CurrentQty is mandatory."); set_Value (COLUMNNAME_CurrentQty, CurrentQty); } @@ -168,9 +165,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -206,9 +204,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setM_CostElement_ID (int M_CostElement_ID) { - if (M_CostElement_ID < 1) - throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + if (M_CostElement_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. @@ -228,9 +227,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setM_CostQueue_ID (int M_CostQueue_ID) { - if (M_CostQueue_ID < 1) - throw new IllegalArgumentException ("M_CostQueue_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostQueue_ID, Integer.valueOf(M_CostQueue_ID)); + if (M_CostQueue_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostQueue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostQueue_ID, Integer.valueOf(M_CostQueue_ID)); } /** Get Cost Queue. @@ -266,9 +266,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setM_CostType_ID (int M_CostType_ID) { - if (M_CostType_ID < 1) - throw new IllegalArgumentException ("M_CostType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + if (M_CostType_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); } /** Get Cost Type. @@ -304,9 +305,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_M_CostType.java b/base/src/org/compiere/model/X_M_CostType.java index c3068a0579..4cad10276e 100644 --- a/base/src/org/compiere/model/X_M_CostType.java +++ b/base/src/org/compiere/model/X_M_CostType.java @@ -111,9 +111,10 @@ public class X_M_CostType extends PO implements I_M_CostType, I_Persistent */ public void setM_CostType_ID (int M_CostType_ID) { - if (M_CostType_ID < 1) - throw new IllegalArgumentException ("M_CostType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + if (M_CostType_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); } /** Get Cost Type. @@ -133,8 +134,6 @@ public class X_M_CostType extends PO implements I_M_CostType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_Demand.java b/base/src/org/compiere/model/X_M_Demand.java index a1ead36f62..5aedc00452 100644 --- a/base/src/org/compiere/model/X_M_Demand.java +++ b/base/src/org/compiere/model/X_M_Demand.java @@ -98,9 +98,10 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -136,9 +137,10 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent */ public void setC_Year_ID (int C_Year_ID) { - if (C_Year_ID < 1) - throw new IllegalArgumentException ("C_Year_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + if (C_Year_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Year_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); } /** Get Year. @@ -216,9 +218,10 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent */ public void setM_Demand_ID (int M_Demand_ID) { - if (M_Demand_ID < 1) - throw new IllegalArgumentException ("M_Demand_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); + if (M_Demand_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); } /** Get Demand. @@ -238,8 +241,6 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_DemandDetail.java b/base/src/org/compiere/model/X_M_DemandDetail.java index d60f77a167..89933ff200 100644 --- a/base/src/org/compiere/model/X_M_DemandDetail.java +++ b/base/src/org/compiere/model/X_M_DemandDetail.java @@ -118,9 +118,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste */ public void setM_DemandDetail_ID (int M_DemandDetail_ID) { - if (M_DemandDetail_ID < 1) - throw new IllegalArgumentException ("M_DemandDetail_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DemandDetail_ID, Integer.valueOf(M_DemandDetail_ID)); + if (M_DemandDetail_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DemandDetail_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DemandDetail_ID, Integer.valueOf(M_DemandDetail_ID)); } /** Get Demand Detail. @@ -164,9 +165,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste */ public void setM_DemandLine_ID (int M_DemandLine_ID) { - if (M_DemandLine_ID < 1) - throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); + if (M_DemandLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); } /** Get Demand Line. diff --git a/base/src/org/compiere/model/X_M_DemandLine.java b/base/src/org/compiere/model/X_M_DemandLine.java index 7cc7c67cad..01457c5520 100644 --- a/base/src/org/compiere/model/X_M_DemandLine.java +++ b/base/src/org/compiere/model/X_M_DemandLine.java @@ -101,9 +101,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -147,9 +148,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setM_Demand_ID (int M_Demand_ID) { - if (M_Demand_ID < 1) - throw new IllegalArgumentException ("M_Demand_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); + if (M_Demand_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); } /** Get Demand. @@ -169,9 +171,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setM_DemandLine_ID (int M_DemandLine_ID) { - if (M_DemandLine_ID < 1) - throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); + if (M_DemandLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); } /** Get Demand Line. @@ -207,9 +210,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -229,8 +233,6 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } @@ -251,8 +253,6 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent */ public void setQtyCalculated (BigDecimal QtyCalculated) { - if (QtyCalculated == null) - throw new IllegalArgumentException ("QtyCalculated is mandatory."); set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); } diff --git a/base/src/org/compiere/model/X_M_DiscountSchema.java b/base/src/org/compiere/model/X_M_DiscountSchema.java index a7f25971b6..8158bc940c 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchema.java +++ b/base/src/org/compiere/model/X_M_DiscountSchema.java @@ -134,7 +134,7 @@ public class X_M_DiscountSchema extends PO implements I_M_DiscountSchema, I_Pers */ public void setDiscountType (String DiscountType) { - if (DiscountType == null) throw new IllegalArgumentException ("DiscountType is mandatory"); + set_Value (COLUMNNAME_DiscountType, DiscountType); } @@ -220,9 +220,10 @@ public class X_M_DiscountSchema extends PO implements I_M_DiscountSchema, I_Pers */ public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) { - if (M_DiscountSchema_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + if (M_DiscountSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); } /** Get Discount Schema. @@ -242,8 +243,6 @@ public class X_M_DiscountSchema extends PO implements I_M_DiscountSchema, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -307,8 +306,6 @@ public class X_M_DiscountSchema extends PO implements I_M_DiscountSchema, I_Pers */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java index 56e7c9ed0d..597bd9c8c0 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java @@ -87,8 +87,6 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre */ public void setBreakDiscount (BigDecimal BreakDiscount) { - if (BreakDiscount == null) - throw new IllegalArgumentException ("BreakDiscount is mandatory."); set_Value (COLUMNNAME_BreakDiscount, BreakDiscount); } @@ -109,8 +107,6 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre */ public void setBreakValue (BigDecimal BreakValue) { - if (BreakValue == null) - throw new IllegalArgumentException ("BreakValue is mandatory."); set_Value (COLUMNNAME_BreakValue, BreakValue); } @@ -155,9 +151,10 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre */ public void setM_DiscountSchemaBreak_ID (int M_DiscountSchemaBreak_ID) { - if (M_DiscountSchemaBreak_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchemaBreak_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaBreak_ID, Integer.valueOf(M_DiscountSchemaBreak_ID)); + if (M_DiscountSchemaBreak_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaBreak_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaBreak_ID, Integer.valueOf(M_DiscountSchemaBreak_ID)); } /** Get Discount Schema Break. @@ -193,9 +190,10 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre */ public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) { - if (M_DiscountSchema_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + if (M_DiscountSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); } /** Get Discount Schema. diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java index 27272aea83..6ac39f6e7a 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java @@ -166,9 +166,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setC_ConversionType_ID (int C_ConversionType_ID) { - if (C_ConversionType_ID < 1) - throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); - set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); } /** Get Currency Type. @@ -205,8 +206,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setConversionDate (Timestamp ConversionDate) { - if (ConversionDate == null) - throw new IllegalArgumentException ("ConversionDate is mandatory."); set_Value (COLUMNNAME_ConversionDate, ConversionDate); } @@ -252,8 +251,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_AddAmt (BigDecimal Limit_AddAmt) { - if (Limit_AddAmt == null) - throw new IllegalArgumentException ("Limit_AddAmt is mandatory."); set_Value (COLUMNNAME_Limit_AddAmt, Limit_AddAmt); } @@ -284,7 +281,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_Base (String Limit_Base) { - if (Limit_Base == null) throw new IllegalArgumentException ("Limit_Base is mandatory"); + set_Value (COLUMNNAME_Limit_Base, Limit_Base); } @@ -302,8 +299,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_Discount (BigDecimal Limit_Discount) { - if (Limit_Discount == null) - throw new IllegalArgumentException ("Limit_Discount is mandatory."); set_Value (COLUMNNAME_Limit_Discount, Limit_Discount); } @@ -344,8 +339,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt) { - if (Limit_MaxAmt == null) - throw new IllegalArgumentException ("Limit_MaxAmt is mandatory."); set_Value (COLUMNNAME_Limit_MaxAmt, Limit_MaxAmt); } @@ -366,8 +359,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_MinAmt (BigDecimal Limit_MinAmt) { - if (Limit_MinAmt == null) - throw new IllegalArgumentException ("Limit_MinAmt is mandatory."); set_Value (COLUMNNAME_Limit_MinAmt, Limit_MinAmt); } @@ -406,7 +397,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setLimit_Rounding (String Limit_Rounding) { - if (Limit_Rounding == null) throw new IllegalArgumentException ("Limit_Rounding is mandatory"); + set_Value (COLUMNNAME_Limit_Rounding, Limit_Rounding); } @@ -424,8 +415,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_AddAmt (BigDecimal List_AddAmt) { - if (List_AddAmt == null) - throw new IllegalArgumentException ("List_AddAmt is mandatory."); set_Value (COLUMNNAME_List_AddAmt, List_AddAmt); } @@ -456,7 +445,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_Base (String List_Base) { - if (List_Base == null) throw new IllegalArgumentException ("List_Base is mandatory"); + set_Value (COLUMNNAME_List_Base, List_Base); } @@ -474,8 +463,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_Discount (BigDecimal List_Discount) { - if (List_Discount == null) - throw new IllegalArgumentException ("List_Discount is mandatory."); set_Value (COLUMNNAME_List_Discount, List_Discount); } @@ -516,8 +503,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_MaxAmt (BigDecimal List_MaxAmt) { - if (List_MaxAmt == null) - throw new IllegalArgumentException ("List_MaxAmt is mandatory."); set_Value (COLUMNNAME_List_MaxAmt, List_MaxAmt); } @@ -538,8 +523,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_MinAmt (BigDecimal List_MinAmt) { - if (List_MinAmt == null) - throw new IllegalArgumentException ("List_MinAmt is mandatory."); set_Value (COLUMNNAME_List_MinAmt, List_MinAmt); } @@ -578,7 +561,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setList_Rounding (String List_Rounding) { - if (List_Rounding == null) throw new IllegalArgumentException ("List_Rounding is mandatory"); + set_Value (COLUMNNAME_List_Rounding, List_Rounding); } @@ -612,9 +595,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) { - if (M_DiscountSchema_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + if (M_DiscountSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); } /** Get Discount Schema. @@ -634,9 +618,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID) { - if (M_DiscountSchemaLine_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchemaLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaLine_ID, Integer.valueOf(M_DiscountSchemaLine_ID)); + if (M_DiscountSchemaLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaLine_ID, Integer.valueOf(M_DiscountSchemaLine_ID)); } /** Get Discount Pricelist. @@ -762,8 +747,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_AddAmt (BigDecimal Std_AddAmt) { - if (Std_AddAmt == null) - throw new IllegalArgumentException ("Std_AddAmt is mandatory."); set_Value (COLUMNNAME_Std_AddAmt, Std_AddAmt); } @@ -794,7 +777,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_Base (String Std_Base) { - if (Std_Base == null) throw new IllegalArgumentException ("Std_Base is mandatory"); + set_Value (COLUMNNAME_Std_Base, Std_Base); } @@ -812,8 +795,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_Discount (BigDecimal Std_Discount) { - if (Std_Discount == null) - throw new IllegalArgumentException ("Std_Discount is mandatory."); set_Value (COLUMNNAME_Std_Discount, Std_Discount); } @@ -854,8 +835,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_MaxAmt (BigDecimal Std_MaxAmt) { - if (Std_MaxAmt == null) - throw new IllegalArgumentException ("Std_MaxAmt is mandatory."); set_Value (COLUMNNAME_Std_MaxAmt, Std_MaxAmt); } @@ -876,8 +855,6 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_MinAmt (BigDecimal Std_MinAmt) { - if (Std_MinAmt == null) - throw new IllegalArgumentException ("Std_MinAmt is mandatory."); set_Value (COLUMNNAME_Std_MinAmt, Std_MinAmt); } @@ -916,7 +893,7 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine */ public void setStd_Rounding (String Std_Rounding) { - if (Std_Rounding == null) throw new IllegalArgumentException ("Std_Rounding is mandatory"); + set_Value (COLUMNNAME_Std_Rounding, Std_Rounding); } diff --git a/base/src/org/compiere/model/X_M_DistributionList.java b/base/src/org/compiere/model/X_M_DistributionList.java index 9aa0868af1..6de4f9ea5f 100644 --- a/base/src/org/compiere/model/X_M_DistributionList.java +++ b/base/src/org/compiere/model/X_M_DistributionList.java @@ -113,9 +113,10 @@ public class X_M_DistributionList extends PO implements I_M_DistributionList, I_ */ public void setM_DistributionList_ID (int M_DistributionList_ID) { - if (M_DistributionList_ID < 1) - throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + if (M_DistributionList_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); } /** Get Distribution List. @@ -135,8 +136,6 @@ public class X_M_DistributionList extends PO implements I_M_DistributionList, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_DistributionListLine.java b/base/src/org/compiere/model/X_M_DistributionListLine.java index c61a33a189..12accfcd6c 100644 --- a/base/src/org/compiere/model/X_M_DistributionListLine.java +++ b/base/src/org/compiere/model/X_M_DistributionListLine.java @@ -100,9 +100,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -138,9 +139,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -193,9 +195,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList */ public void setM_DistributionList_ID (int M_DistributionList_ID) { - if (M_DistributionList_ID < 1) - throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + if (M_DistributionList_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); } /** Get Distribution List. @@ -223,9 +226,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList */ public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) { - if (M_DistributionListLine_ID < 1) - throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); + if (M_DistributionListLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); } /** Get Distribution List Line. @@ -245,8 +249,6 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList */ public void setMinQty (BigDecimal MinQty) { - if (MinQty == null) - throw new IllegalArgumentException ("MinQty is mandatory."); set_Value (COLUMNNAME_MinQty, MinQty); } diff --git a/base/src/org/compiere/model/X_M_DistributionRun.java b/base/src/org/compiere/model/X_M_DistributionRun.java index 97e1d8579b..594bcd194e 100644 --- a/base/src/org/compiere/model/X_M_DistributionRun.java +++ b/base/src/org/compiere/model/X_M_DistributionRun.java @@ -200,9 +200,10 @@ public class X_M_DistributionRun extends PO implements I_M_DistributionRun, I_Pe */ public void setM_DistributionRun_ID (int M_DistributionRun_ID) { - if (M_DistributionRun_ID < 1) - throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + if (M_DistributionRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); } /** Get Distribution Run. @@ -222,8 +223,6 @@ public class X_M_DistributionRun extends PO implements I_M_DistributionRun, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_DistributionRunLine.java b/base/src/org/compiere/model/X_M_DistributionRunLine.java index aca6a39de3..0dda714d10 100644 --- a/base/src/org/compiere/model/X_M_DistributionRunLine.java +++ b/base/src/org/compiere/model/X_M_DistributionRunLine.java @@ -141,9 +141,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setM_DistributionList_ID (int M_DistributionList_ID) { - if (M_DistributionList_ID < 1) - throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); - set_Value (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + if (M_DistributionList_ID < 1) + set_Value (COLUMNNAME_M_DistributionList_ID, null); + else + set_Value (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); } /** Get Distribution List. @@ -179,9 +180,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setM_DistributionRun_ID (int M_DistributionRun_ID) { - if (M_DistributionRun_ID < 1) - throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + if (M_DistributionRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); } /** Get Distribution Run. @@ -209,9 +211,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) { - if (M_DistributionRunLine_ID < 1) - throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); + if (M_DistributionRunLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); } /** Get Distribution Run Line. @@ -231,8 +234,6 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setMinQty (BigDecimal MinQty) { - if (MinQty == null) - throw new IllegalArgumentException ("MinQty is mandatory."); set_Value (COLUMNNAME_MinQty, MinQty); } @@ -269,9 +270,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -291,8 +293,6 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi */ public void setTotalQty (BigDecimal TotalQty) { - if (TotalQty == null) - throw new IllegalArgumentException ("TotalQty is mandatory."); set_Value (COLUMNNAME_TotalQty, TotalQty); } diff --git a/base/src/org/compiere/model/X_M_Forecast.java b/base/src/org/compiere/model/X_M_Forecast.java index 59006d3bbd..caf865bd98 100644 --- a/base/src/org/compiere/model/X_M_Forecast.java +++ b/base/src/org/compiere/model/X_M_Forecast.java @@ -98,9 +98,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -136,9 +137,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent */ public void setC_Year_ID (int C_Year_ID) { - if (C_Year_ID < 1) - throw new IllegalArgumentException ("C_Year_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + if (C_Year_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Year_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); } /** Get Year. @@ -216,9 +218,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent */ public void setM_Forecast_ID (int M_Forecast_ID) { - if (M_Forecast_ID < 1) - throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + if (M_Forecast_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); } /** Get Forecast. @@ -277,8 +280,6 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_ForecastLine.java b/base/src/org/compiere/model/X_M_ForecastLine.java index ca50a756ea..fe3ac9a37c 100644 --- a/base/src/org/compiere/model/X_M_ForecastLine.java +++ b/base/src/org/compiere/model/X_M_ForecastLine.java @@ -104,9 +104,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setC_Period_ID (int C_Period_ID) { - if (C_Period_ID < 1) - throw new IllegalArgumentException ("C_Period_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @@ -134,8 +135,6 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setDatePromised (Timestamp DatePromised) { - if (DatePromised == null) - throw new IllegalArgumentException ("DatePromised is mandatory."); set_Value (COLUMNNAME_DatePromised, DatePromised); } @@ -169,9 +168,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setM_Forecast_ID (int M_Forecast_ID) { - if (M_Forecast_ID < 1) - throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + if (M_Forecast_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); } /** Get Forecast. @@ -191,9 +191,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setM_ForecastLine_ID (int M_ForecastLine_ID) { - if (M_ForecastLine_ID < 1) - throw new IllegalArgumentException ("M_ForecastLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ForecastLine_ID, Integer.valueOf(M_ForecastLine_ID)); + if (M_ForecastLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ForecastLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ForecastLine_ID, Integer.valueOf(M_ForecastLine_ID)); } /** Get Forecast Line. @@ -229,9 +230,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -267,9 +269,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -289,8 +292,6 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } @@ -311,8 +312,6 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste */ public void setQtyCalculated (BigDecimal QtyCalculated) { - if (QtyCalculated == null) - throw new IllegalArgumentException ("QtyCalculated is mandatory."); set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); } diff --git a/base/src/org/compiere/model/X_M_Freight.java b/base/src/org/compiere/model/X_M_Freight.java index b38ae7d756..ed0a1b7921 100644 --- a/base/src/org/compiere/model/X_M_Freight.java +++ b/base/src/org/compiere/model/X_M_Freight.java @@ -141,9 +141,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -202,8 +203,6 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setFreightAmt (BigDecimal FreightAmt) { - if (FreightAmt == null) - throw new IllegalArgumentException ("FreightAmt is mandatory."); set_Value (COLUMNNAME_FreightAmt, FreightAmt); } @@ -240,9 +239,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setM_FreightCategory_ID (int M_FreightCategory_ID) { - if (M_FreightCategory_ID < 1) - throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); - set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + if (M_FreightCategory_ID < 1) + set_Value (COLUMNNAME_M_FreightCategory_ID, null); + else + set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); } /** Get Freight Category. @@ -262,9 +262,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setM_Freight_ID (int M_Freight_ID) { - if (M_Freight_ID < 1) - throw new IllegalArgumentException ("M_Freight_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Freight_ID, Integer.valueOf(M_Freight_ID)); + if (M_Freight_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Freight_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Freight_ID, Integer.valueOf(M_Freight_ID)); } /** Get Freight. @@ -300,9 +301,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setM_Shipper_ID (int M_Shipper_ID) { - if (M_Shipper_ID < 1) - throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + if (M_Shipper_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); } /** Get Shipper. @@ -376,8 +378,6 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_M_FreightCategory.java b/base/src/org/compiere/model/X_M_FreightCategory.java index db8c6b7af5..b5ade7c259 100644 --- a/base/src/org/compiere/model/X_M_FreightCategory.java +++ b/base/src/org/compiere/model/X_M_FreightCategory.java @@ -112,9 +112,10 @@ public class X_M_FreightCategory extends PO implements I_M_FreightCategory, I_Pe */ public void setM_FreightCategory_ID (int M_FreightCategory_ID) { - if (M_FreightCategory_ID < 1) - throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + if (M_FreightCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_FreightCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); } /** Get Freight Category. @@ -134,8 +135,6 @@ public class X_M_FreightCategory extends PO implements I_M_FreightCategory, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -161,8 +160,6 @@ public class X_M_FreightCategory extends PO implements I_M_FreightCategory, I_Pe */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_M_InOut.java b/base/src/org/compiere/model/X_M_InOut.java index 392bef425f..331ab45ec1 100644 --- a/base/src/org/compiere/model/X_M_InOut.java +++ b/base/src/org/compiere/model/X_M_InOut.java @@ -229,9 +229,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -267,9 +268,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -351,9 +353,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -555,8 +558,6 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -639,7 +640,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDeliveryRule (String DeliveryRule) { - if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); } @@ -665,7 +666,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDeliveryViaRule (String DeliveryViaRule) { - if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); } @@ -730,7 +731,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -774,7 +775,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -792,8 +793,6 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -918,7 +917,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setFreightCostRule (String FreightCostRule) { - if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); } @@ -1097,9 +1096,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setM_InOut_ID (int M_InOut_ID) { - if (M_InOut_ID < 1) - throw new IllegalArgumentException ("M_InOut_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + if (M_InOut_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); } /** Get Shipment/Receipt. @@ -1119,8 +1119,6 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } @@ -1164,7 +1162,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setMovementType (String MovementType) { - if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); } @@ -1276,9 +1274,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -1388,7 +1387,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent */ public void setPriorityRule (String PriorityRule) { - if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); + set_Value (COLUMNNAME_PriorityRule, PriorityRule); } diff --git a/base/src/org/compiere/model/X_M_InOutConfirm.java b/base/src/org/compiere/model/X_M_InOutConfirm.java index 4ae162b864..067b9cffa0 100644 --- a/base/src/org/compiere/model/X_M_InOutConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutConfirm.java @@ -180,7 +180,7 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setConfirmType (String ConfirmType) { - if (ConfirmType == null) throw new IllegalArgumentException ("ConfirmType is mandatory"); + set_Value (COLUMNNAME_ConfirmType, ConfirmType); } @@ -259,7 +259,7 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -303,7 +303,7 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -321,8 +321,6 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -420,9 +418,10 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) { - if (M_InOutConfirm_ID < 1) - throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); + if (M_InOutConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); } /** Get Ship/Receipt Confirmation. @@ -458,9 +457,10 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste */ public void setM_InOut_ID (int M_InOut_ID) { - if (M_InOut_ID < 1) - throw new IllegalArgumentException ("M_InOut_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + if (M_InOut_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); } /** Get Shipment/Receipt. diff --git a/base/src/org/compiere/model/X_M_InOutLine.java b/base/src/org/compiere/model/X_M_InOutLine.java index 81069cc0ff..a089c6248f 100644 --- a/base/src/org/compiere/model/X_M_InOutLine.java +++ b/base/src/org/compiere/model/X_M_InOutLine.java @@ -426,9 +426,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -541,9 +542,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -579,9 +581,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setM_InOut_ID (int M_InOut_ID) { - if (M_InOut_ID < 1) - throw new IllegalArgumentException ("M_InOut_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + if (M_InOut_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); } /** Get Shipment/Receipt. @@ -601,9 +604,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -646,8 +650,6 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -787,8 +789,6 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setQtyEntered (BigDecimal QtyEntered) { - if (QtyEntered == null) - throw new IllegalArgumentException ("QtyEntered is mandatory."); set_Value (COLUMNNAME_QtyEntered, QtyEntered); } diff --git a/base/src/org/compiere/model/X_M_InOutLineConfirm.java b/base/src/org/compiere/model/X_M_InOutLineConfirm.java index ae72fdef6c..dcc1d6bc80 100644 --- a/base/src/org/compiere/model/X_M_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutLineConfirm.java @@ -141,8 +141,6 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ */ public void setConfirmedQty (BigDecimal ConfirmedQty) { - if (ConfirmedQty == null) - throw new IllegalArgumentException ("ConfirmedQty is mandatory."); set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); } @@ -216,9 +214,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ */ public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) { - if (M_InOutConfirm_ID < 1) - throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); + if (M_InOutConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); } /** Get Ship/Receipt Confirmation. @@ -238,9 +237,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ */ public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) { - if (M_InOutLineConfirm_ID < 1) - throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); + if (M_InOutLineConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLineConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); } /** Get Ship/Receipt Confirmation Line. @@ -276,9 +276,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -389,8 +390,6 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ */ public void setTargetQty (BigDecimal TargetQty) { - if (TargetQty == null) - throw new IllegalArgumentException ("TargetQty is mandatory."); set_ValueNoCheck (COLUMNNAME_TargetQty, TargetQty); } diff --git a/base/src/org/compiere/model/X_M_InOutLineMA.java b/base/src/org/compiere/model/X_M_InOutLineMA.java index f31c10bb91..b87a354cd1 100644 --- a/base/src/org/compiere/model/X_M_InOutLineMA.java +++ b/base/src/org/compiere/model/X_M_InOutLineMA.java @@ -82,9 +82,10 @@ public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -120,9 +121,10 @@ public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -150,8 +152,6 @@ public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } diff --git a/base/src/org/compiere/model/X_M_Inventory.java b/base/src/org/compiere/model/X_M_Inventory.java index 885603ae3a..1b3b599451 100644 --- a/base/src/org/compiere/model/X_M_Inventory.java +++ b/base/src/org/compiere/model/X_M_Inventory.java @@ -230,9 +230,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -338,7 +339,7 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -382,7 +383,7 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -400,8 +401,6 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -468,9 +467,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setM_Inventory_ID (int M_Inventory_ID) { - if (M_Inventory_ID < 1) - throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + if (M_Inventory_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); } /** Get Phys.Inventory. @@ -490,8 +490,6 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } @@ -564,9 +562,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. diff --git a/base/src/org/compiere/model/X_M_InventoryLine.java b/base/src/org/compiere/model/X_M_InventoryLine.java index 277fb26297..4543a2a06e 100644 --- a/base/src/org/compiere/model/X_M_InventoryLine.java +++ b/base/src/org/compiere/model/X_M_InventoryLine.java @@ -153,7 +153,7 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setInventoryType (String InventoryType) { - if (InventoryType == null) throw new IllegalArgumentException ("InventoryType is mandatory"); + set_Value (COLUMNNAME_InventoryType, InventoryType); } @@ -199,9 +199,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -237,9 +238,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setM_Inventory_ID (int M_Inventory_ID) { - if (M_Inventory_ID < 1) - throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + if (M_Inventory_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); } /** Get Phys.Inventory. @@ -259,9 +261,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setM_InventoryLine_ID (int M_InventoryLine_ID) { - if (M_InventoryLine_ID < 1) - throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + if (M_InventoryLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); } /** Get Phys.Inventory Line. @@ -281,9 +284,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -303,9 +307,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -349,8 +354,6 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setQtyBook (BigDecimal QtyBook) { - if (QtyBook == null) - throw new IllegalArgumentException ("QtyBook is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyBook, QtyBook); } @@ -371,8 +374,6 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis */ public void setQtyCount (BigDecimal QtyCount) { - if (QtyCount == null) - throw new IllegalArgumentException ("QtyCount is mandatory."); set_Value (COLUMNNAME_QtyCount, QtyCount); } @@ -391,8 +392,6 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis @param QtyCsv QtyCsv */ public void setQtyCsv (BigDecimal QtyCsv) { - if (QtyCsv == null) - throw new IllegalArgumentException ("QtyCsv is mandatory."); set_Value (COLUMNNAME_QtyCsv, QtyCsv); } diff --git a/base/src/org/compiere/model/X_M_InventoryLineMA.java b/base/src/org/compiere/model/X_M_InventoryLineMA.java index c26875ef05..3f5c67ef21 100644 --- a/base/src/org/compiere/model/X_M_InventoryLineMA.java +++ b/base/src/org/compiere/model/X_M_InventoryLineMA.java @@ -82,9 +82,10 @@ public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Pe */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -120,9 +121,10 @@ public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Pe */ public void setM_InventoryLine_ID (int M_InventoryLine_ID) { - if (M_InventoryLine_ID < 1) - throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + if (M_InventoryLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); } /** Get Phys.Inventory Line. @@ -150,8 +152,6 @@ public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Pe */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } diff --git a/base/src/org/compiere/model/X_M_Locator.java b/base/src/org/compiere/model/X_M_Locator.java index fadbdbfb2c..db8bf0f484 100644 --- a/base/src/org/compiere/model/X_M_Locator.java +++ b/base/src/org/compiere/model/X_M_Locator.java @@ -110,9 +110,10 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -148,9 +149,10 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -190,8 +192,6 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } @@ -217,8 +217,6 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setX (String X) { - if (X == null) - throw new IllegalArgumentException ("X is mandatory."); set_Value (COLUMNNAME_X, X); } @@ -236,8 +234,6 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setY (String Y) { - if (Y == null) - throw new IllegalArgumentException ("Y is mandatory."); set_Value (COLUMNNAME_Y, Y); } @@ -255,8 +251,6 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent */ public void setZ (String Z) { - if (Z == null) - throw new IllegalArgumentException ("Z is mandatory."); set_Value (COLUMNNAME_Z, Z); } diff --git a/base/src/org/compiere/model/X_M_Lot.java b/base/src/org/compiere/model/X_M_Lot.java index 2eec41b83c..5232217c48 100644 --- a/base/src/org/compiere/model/X_M_Lot.java +++ b/base/src/org/compiere/model/X_M_Lot.java @@ -188,9 +188,10 @@ public class X_M_Lot extends PO implements I_M_Lot, I_Persistent */ public void setM_Lot_ID (int M_Lot_ID) { - if (M_Lot_ID < 1) - throw new IllegalArgumentException ("M_Lot_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Lot_ID, Integer.valueOf(M_Lot_ID)); + if (M_Lot_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Lot_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Lot_ID, Integer.valueOf(M_Lot_ID)); } /** Get Lot. @@ -226,9 +227,10 @@ public class X_M_Lot extends PO implements I_M_Lot, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -256,8 +258,6 @@ public class X_M_Lot extends PO implements I_M_Lot, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_LotCtl.java b/base/src/org/compiere/model/X_M_LotCtl.java index 3bc3dcbab0..b53c15e61d 100644 --- a/base/src/org/compiere/model/X_M_LotCtl.java +++ b/base/src/org/compiere/model/X_M_LotCtl.java @@ -140,9 +140,10 @@ public class X_M_LotCtl extends PO implements I_M_LotCtl, I_Persistent */ public void setM_LotCtl_ID (int M_LotCtl_ID) { - if (M_LotCtl_ID < 1) - throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + if (M_LotCtl_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); } /** Get Lot Control. @@ -162,8 +163,6 @@ public class X_M_LotCtl extends PO implements I_M_LotCtl, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_LotCtlExclude.java b/base/src/org/compiere/model/X_M_LotCtlExclude.java index bd0232ac1b..e4cd5d1b57 100644 --- a/base/src/org/compiere/model/X_M_LotCtlExclude.java +++ b/base/src/org/compiere/model/X_M_LotCtlExclude.java @@ -96,9 +96,10 @@ public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persis */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -142,9 +143,10 @@ public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persis */ public void setM_LotCtlExclude_ID (int M_LotCtlExclude_ID) { - if (M_LotCtlExclude_ID < 1) - throw new IllegalArgumentException ("M_LotCtlExclude_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_LotCtlExclude_ID, Integer.valueOf(M_LotCtlExclude_ID)); + if (M_LotCtlExclude_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_LotCtlExclude_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_LotCtlExclude_ID, Integer.valueOf(M_LotCtlExclude_ID)); } /** Get Exclude Lot. @@ -180,9 +182,10 @@ public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persis */ public void setM_LotCtl_ID (int M_LotCtl_ID) { - if (M_LotCtl_ID < 1) - throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + if (M_LotCtl_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); } /** Get Lot Control. diff --git a/base/src/org/compiere/model/X_M_MatchInv.java b/base/src/org/compiere/model/X_M_MatchInv.java index 4c347ae7ed..879d47b580 100644 --- a/base/src/org/compiere/model/X_M_MatchInv.java +++ b/base/src/org/compiere/model/X_M_MatchInv.java @@ -106,9 +106,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) { - if (C_InvoiceLine_ID < 1) - throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + if (C_InvoiceLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); } /** Get Invoice Line. @@ -128,8 +129,6 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -147,8 +146,6 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); } @@ -208,7 +205,7 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -247,9 +244,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -269,9 +267,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setM_MatchInv_ID (int M_MatchInv_ID) { - if (M_MatchInv_ID < 1) - throw new IllegalArgumentException ("M_MatchInv_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, Integer.valueOf(M_MatchInv_ID)); + if (M_MatchInv_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, Integer.valueOf(M_MatchInv_ID)); } /** Get Match Invoice. @@ -307,9 +306,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -398,8 +398,6 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_ValueNoCheck (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_MatchPO.java b/base/src/org/compiere/model/X_M_MatchPO.java index c2e1970070..9be13e6194 100644 --- a/base/src/org/compiere/model/X_M_MatchPO.java +++ b/base/src/org/compiere/model/X_M_MatchPO.java @@ -145,9 +145,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setC_OrderLine_ID (int C_OrderLine_ID) { - if (C_OrderLine_ID < 1) - throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + if (C_OrderLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); } /** Get Sales Order Line. @@ -167,8 +168,6 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_Value (COLUMNNAME_DateAcct, DateAcct); } @@ -186,8 +185,6 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); } @@ -271,7 +268,7 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -310,9 +307,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -332,9 +330,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setM_MatchPO_ID (int M_MatchPO_ID) { - if (M_MatchPO_ID < 1) - throw new IllegalArgumentException ("M_MatchPO_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MatchPO_ID, Integer.valueOf(M_MatchPO_ID)); + if (M_MatchPO_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MatchPO_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MatchPO_ID, Integer.valueOf(M_MatchPO_ID)); } /** Get Match PO. @@ -370,9 +369,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -481,8 +481,6 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_ValueNoCheck (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_Movement.java b/base/src/org/compiere/model/X_M_Movement.java index c66cd28171..3c45d1fc2b 100644 --- a/base/src/org/compiere/model/X_M_Movement.java +++ b/base/src/org/compiere/model/X_M_Movement.java @@ -354,9 +354,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -610,7 +611,7 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -654,7 +655,7 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -672,8 +673,6 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -795,9 +794,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setM_Movement_ID (int M_Movement_ID) { - if (M_Movement_ID < 1) - throw new IllegalArgumentException ("M_Movement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + if (M_Movement_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); } /** Get Inventory Move. @@ -817,8 +817,6 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } diff --git a/base/src/org/compiere/model/X_M_MovementConfirm.java b/base/src/org/compiere/model/X_M_MovementConfirm.java index ae87b6ce39..0b18116f8e 100644 --- a/base/src/org/compiere/model/X_M_MovementConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementConfirm.java @@ -154,7 +154,7 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -198,7 +198,7 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -216,8 +216,6 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -306,9 +304,10 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe */ public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) { - if (M_MovementConfirm_ID < 1) - throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); + if (M_MovementConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); } /** Get Move Confirm. @@ -344,9 +343,10 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe */ public void setM_Movement_ID (int M_Movement_ID) { - if (M_Movement_ID < 1) - throw new IllegalArgumentException ("M_Movement_ID is mandatory."); - set_Value (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + if (M_Movement_ID < 1) + set_Value (COLUMNNAME_M_Movement_ID, null); + else + set_Value (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); } /** Get Inventory Move. diff --git a/base/src/org/compiere/model/X_M_MovementLine.java b/base/src/org/compiere/model/X_M_MovementLine.java index 634684359d..1e5bc5d014 100644 --- a/base/src/org/compiere/model/X_M_MovementLine.java +++ b/base/src/org/compiere/model/X_M_MovementLine.java @@ -194,7 +194,7 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -240,9 +240,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -262,9 +263,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_LocatorTo_ID (int M_LocatorTo_ID) { - if (M_LocatorTo_ID < 1) - throw new IllegalArgumentException ("M_LocatorTo_ID is mandatory."); - set_Value (COLUMNNAME_M_LocatorTo_ID, Integer.valueOf(M_LocatorTo_ID)); + if (M_LocatorTo_ID < 1) + set_Value (COLUMNNAME_M_LocatorTo_ID, null); + else + set_Value (COLUMNNAME_M_LocatorTo_ID, Integer.valueOf(M_LocatorTo_ID)); } /** Get Locator To. @@ -300,9 +302,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_Movement_ID (int M_Movement_ID) { - if (M_Movement_ID < 1) - throw new IllegalArgumentException ("M_Movement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + if (M_Movement_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); } /** Get Inventory Move. @@ -322,9 +325,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_MovementLine_ID (int M_MovementLine_ID) { - if (M_MovementLine_ID < 1) - throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + if (M_MovementLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); } /** Get Move Line. @@ -344,8 +348,6 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -366,9 +368,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -455,8 +458,6 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste */ public void setTargetQty (BigDecimal TargetQty) { - if (TargetQty == null) - throw new IllegalArgumentException ("TargetQty is mandatory."); set_Value (COLUMNNAME_TargetQty, TargetQty); } diff --git a/base/src/org/compiere/model/X_M_MovementLineConfirm.java b/base/src/org/compiere/model/X_M_MovementLineConfirm.java index 1308ed8fa7..7477fbda7f 100644 --- a/base/src/org/compiere/model/X_M_MovementLineConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementLineConfirm.java @@ -87,8 +87,6 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setConfirmedQty (BigDecimal ConfirmedQty) { - if (ConfirmedQty == null) - throw new IllegalArgumentException ("ConfirmedQty is mandatory."); set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); } @@ -126,8 +124,6 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setDifferenceQty (BigDecimal DifferenceQty) { - if (DifferenceQty == null) - throw new IllegalArgumentException ("DifferenceQty is mandatory."); set_Value (COLUMNNAME_DifferenceQty, DifferenceQty); } @@ -203,9 +199,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) { - if (M_MovementConfirm_ID < 1) - throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); + if (M_MovementConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); } /** Get Move Confirm. @@ -233,9 +230,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setM_MovementLineConfirm_ID (int M_MovementLineConfirm_ID) { - if (M_MovementLineConfirm_ID < 1) - throw new IllegalArgumentException ("M_MovementLineConfirm_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MovementLineConfirm_ID, Integer.valueOf(M_MovementLineConfirm_ID)); + if (M_MovementLineConfirm_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementLineConfirm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementLineConfirm_ID, Integer.valueOf(M_MovementLineConfirm_ID)); } /** Get Move Line Confirm. @@ -271,9 +269,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setM_MovementLine_ID (int M_MovementLine_ID) { - if (M_MovementLine_ID < 1) - throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); - set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + if (M_MovementLine_ID < 1) + set_Value (COLUMNNAME_M_MovementLine_ID, null); + else + set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); } /** Get Move Line. @@ -317,8 +316,6 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setScrappedQty (BigDecimal ScrappedQty) { - if (ScrappedQty == null) - throw new IllegalArgumentException ("ScrappedQty is mandatory."); set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); } @@ -339,8 +336,6 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi */ public void setTargetQty (BigDecimal TargetQty) { - if (TargetQty == null) - throw new IllegalArgumentException ("TargetQty is mandatory."); set_Value (COLUMNNAME_TargetQty, TargetQty); } diff --git a/base/src/org/compiere/model/X_M_MovementLineMA.java b/base/src/org/compiere/model/X_M_MovementLineMA.java index 9a3b69a4f4..26ea64517c 100644 --- a/base/src/org/compiere/model/X_M_MovementLineMA.java +++ b/base/src/org/compiere/model/X_M_MovementLineMA.java @@ -81,9 +81,10 @@ public class X_M_MovementLineMA extends PO implements I_M_MovementLineMA, I_Pers */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -119,9 +120,10 @@ public class X_M_MovementLineMA extends PO implements I_M_MovementLineMA, I_Pers */ public void setM_MovementLine_ID (int M_MovementLine_ID) { - if (M_MovementLine_ID < 1) - throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + if (M_MovementLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); } /** Get Move Line. diff --git a/base/src/org/compiere/model/X_M_OperationResource.java b/base/src/org/compiere/model/X_M_OperationResource.java index 2a330b7903..7a42b526c3 100644 --- a/base/src/org/compiere/model/X_M_OperationResource.java +++ b/base/src/org/compiere/model/X_M_OperationResource.java @@ -197,9 +197,10 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setM_OperationResource_ID (int M_OperationResource_ID) { - if (M_OperationResource_ID < 1) - throw new IllegalArgumentException ("M_OperationResource_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_OperationResource_ID, Integer.valueOf(M_OperationResource_ID)); + if (M_OperationResource_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_OperationResource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_OperationResource_ID, Integer.valueOf(M_OperationResource_ID)); } /** Get Operation Resource. @@ -235,9 +236,10 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setM_ProductOperation_ID (int M_ProductOperation_ID) { - if (M_ProductOperation_ID < 1) - throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); + if (M_ProductOperation_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); } /** Get Product Operation. @@ -257,8 +259,6 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -284,8 +284,6 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setSetupTime (BigDecimal SetupTime) { - if (SetupTime == null) - throw new IllegalArgumentException ("SetupTime is mandatory."); set_Value (COLUMNNAME_SetupTime, SetupTime); } @@ -306,8 +304,6 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setTeardownTime (BigDecimal TeardownTime) { - if (TeardownTime == null) - throw new IllegalArgumentException ("TeardownTime is mandatory."); set_Value (COLUMNNAME_TeardownTime, TeardownTime); } @@ -328,8 +324,6 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, */ public void setUnitRuntime (BigDecimal UnitRuntime) { - if (UnitRuntime == null) - throw new IllegalArgumentException ("UnitRuntime is mandatory."); set_Value (COLUMNNAME_UnitRuntime, UnitRuntime); } diff --git a/base/src/org/compiere/model/X_M_Package.java b/base/src/org/compiere/model/X_M_Package.java index 57a59a3a72..d0d841c513 100644 --- a/base/src/org/compiere/model/X_M_Package.java +++ b/base/src/org/compiere/model/X_M_Package.java @@ -115,8 +115,6 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -150,9 +148,10 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent */ public void setM_InOut_ID (int M_InOut_ID) { - if (M_InOut_ID < 1) - throw new IllegalArgumentException ("M_InOut_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + if (M_InOut_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); } /** Get Shipment/Receipt. @@ -172,9 +171,10 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent */ public void setM_Package_ID (int M_Package_ID) { - if (M_Package_ID < 1) - throw new IllegalArgumentException ("M_Package_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); + if (M_Package_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Package_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); } /** Get Package. @@ -210,9 +210,10 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent */ public void setM_Shipper_ID (int M_Shipper_ID) { - if (M_Shipper_ID < 1) - throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); - set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + if (M_Shipper_ID < 1) + set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); } /** Get Shipper. diff --git a/base/src/org/compiere/model/X_M_PackageLine.java b/base/src/org/compiere/model/X_M_PackageLine.java index de5a50faa5..d3c482261f 100644 --- a/base/src/org/compiere/model/X_M_PackageLine.java +++ b/base/src/org/compiere/model/X_M_PackageLine.java @@ -116,9 +116,10 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) - throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @@ -154,9 +155,10 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent */ public void setM_Package_ID (int M_Package_ID) { - if (M_Package_ID < 1) - throw new IllegalArgumentException ("M_Package_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); + if (M_Package_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Package_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); } /** Get Package. @@ -184,9 +186,10 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent */ public void setM_PackageLine_ID (int M_PackageLine_ID) { - if (M_PackageLine_ID < 1) - throw new IllegalArgumentException ("M_PackageLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PackageLine_ID, Integer.valueOf(M_PackageLine_ID)); + if (M_PackageLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PackageLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PackageLine_ID, Integer.valueOf(M_PackageLine_ID)); } /** Get Package Line. @@ -206,8 +209,6 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_PerpetualInv.java b/base/src/org/compiere/model/X_M_PerpetualInv.java index 98a62e53ce..adb56fff57 100644 --- a/base/src/org/compiere/model/X_M_PerpetualInv.java +++ b/base/src/org/compiere/model/X_M_PerpetualInv.java @@ -129,8 +129,6 @@ public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persiste */ public void setDateNextRun (Timestamp DateNextRun) { - if (DateNextRun == null) - throw new IllegalArgumentException ("DateNextRun is mandatory."); set_ValueNoCheck (COLUMNNAME_DateNextRun, DateNextRun); } @@ -165,9 +163,10 @@ public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persiste */ public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) { - if (M_PerpetualInv_ID < 1) - throw new IllegalArgumentException ("M_PerpetualInv_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, Integer.valueOf(M_PerpetualInv_ID)); + if (M_PerpetualInv_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, Integer.valueOf(M_PerpetualInv_ID)); } /** Get Perpetual Inventory. @@ -265,8 +264,6 @@ public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_PriceList.java b/base/src/org/compiere/model/X_M_PriceList.java index d474cb1689..9e747c24e5 100644 --- a/base/src/org/compiere/model/X_M_PriceList.java +++ b/base/src/org/compiere/model/X_M_PriceList.java @@ -127,9 +127,10 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -307,9 +308,10 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -329,8 +331,6 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -356,8 +356,6 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent */ public void setPricePrecision (BigDecimal PricePrecision) { - if (PricePrecision == null) - throw new IllegalArgumentException ("PricePrecision is mandatory."); set_Value (COLUMNNAME_PricePrecision, PricePrecision); } diff --git a/base/src/org/compiere/model/X_M_PriceList_Version.java b/base/src/org/compiere/model/X_M_PriceList_Version.java index c2d876166f..67ff997b37 100644 --- a/base/src/org/compiere/model/X_M_PriceList_Version.java +++ b/base/src/org/compiere/model/X_M_PriceList_Version.java @@ -118,9 +118,10 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, */ public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) { - if (M_DiscountSchema_ID < 1) - throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); - set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + if (M_DiscountSchema_ID < 1) + set_Value (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); } /** Get Discount Schema. @@ -156,9 +157,10 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -201,9 +203,10 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, */ public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) { - if (M_PriceList_Version_ID < 1) - throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + if (M_PriceList_Version_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); } /** Get Price List Version. @@ -223,8 +226,6 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -264,8 +265,6 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, */ public void setValidFrom (Timestamp ValidFrom) { - if (ValidFrom == null) - throw new IllegalArgumentException ("ValidFrom is mandatory."); set_Value (COLUMNNAME_ValidFrom, ValidFrom); } diff --git a/base/src/org/compiere/model/X_M_Product.java b/base/src/org/compiere/model/X_M_Product.java index 983a710976..75f369a05c 100644 --- a/base/src/org/compiere/model/X_M_Product.java +++ b/base/src/org/compiere/model/X_M_Product.java @@ -205,9 +205,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -243,9 +244,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -780,7 +782,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setM_AttributeSet_ID (int M_AttributeSet_ID) { - if (M_AttributeSet_ID < 1) + if (M_AttributeSet_ID < 0) set_Value (COLUMNNAME_M_AttributeSet_ID, null); else set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); @@ -803,9 +805,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -903,9 +906,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. @@ -925,9 +929,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -947,8 +952,6 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -999,7 +1002,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setProductType (String ProductType) { - if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory"); + set_Value (COLUMNNAME_ProductType, ProductType); } @@ -1291,8 +1294,6 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_M_ProductDownload.java b/base/src/org/compiere/model/X_M_ProductDownload.java index 17bac1b003..a6487d5a13 100644 --- a/base/src/org/compiere/model/X_M_ProductDownload.java +++ b/base/src/org/compiere/model/X_M_ProductDownload.java @@ -81,8 +81,6 @@ public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Pe */ public void setDownloadURL (String DownloadURL) { - if (DownloadURL == null) - throw new IllegalArgumentException ("DownloadURL is mandatory."); set_Value (COLUMNNAME_DownloadURL, DownloadURL); } @@ -100,9 +98,10 @@ public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Pe */ public void setM_ProductDownload_ID (int M_ProductDownload_ID) { - if (M_ProductDownload_ID < 1) - throw new IllegalArgumentException ("M_ProductDownload_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductDownload_ID, Integer.valueOf(M_ProductDownload_ID)); + if (M_ProductDownload_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductDownload_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductDownload_ID, Integer.valueOf(M_ProductDownload_ID)); } /** Get Product Download. @@ -138,9 +137,10 @@ public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Pe */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -160,8 +160,6 @@ public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_ProductOperation.java b/base/src/org/compiere/model/X_M_ProductOperation.java index 1324d636ad..624ab9a6a1 100644 --- a/base/src/org/compiere/model/X_M_ProductOperation.java +++ b/base/src/org/compiere/model/X_M_ProductOperation.java @@ -132,9 +132,10 @@ public class X_M_ProductOperation extends PO implements I_M_ProductOperation, I_ */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -154,9 +155,10 @@ public class X_M_ProductOperation extends PO implements I_M_ProductOperation, I_ */ public void setM_ProductOperation_ID (int M_ProductOperation_ID) { - if (M_ProductOperation_ID < 1) - throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); + if (M_ProductOperation_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); } /** Get Product Operation. @@ -176,8 +178,6 @@ public class X_M_ProductOperation extends PO implements I_M_ProductOperation, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_ProductPrice.java b/base/src/org/compiere/model/X_M_ProductPrice.java index 2c039b6605..379e2c648e 100644 --- a/base/src/org/compiere/model/X_M_ProductPrice.java +++ b/base/src/org/compiere/model/X_M_ProductPrice.java @@ -99,9 +99,10 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste */ public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) { - if (M_PriceList_Version_ID < 1) - throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + if (M_PriceList_Version_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); } /** Get Price List Version. @@ -137,9 +138,10 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -159,8 +161,6 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste */ public void setPriceLimit (BigDecimal PriceLimit) { - if (PriceLimit == null) - throw new IllegalArgumentException ("PriceLimit is mandatory."); set_Value (COLUMNNAME_PriceLimit, PriceLimit); } @@ -181,8 +181,6 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste */ public void setPriceList (BigDecimal PriceList) { - if (PriceList == null) - throw new IllegalArgumentException ("PriceList is mandatory."); set_Value (COLUMNNAME_PriceList, PriceList); } @@ -203,8 +201,6 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste */ public void setPriceStd (BigDecimal PriceStd) { - if (PriceStd == null) - throw new IllegalArgumentException ("PriceStd is mandatory."); set_Value (COLUMNNAME_PriceStd, PriceStd); } diff --git a/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java b/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java index f2cb2eecdf..916f76cdea 100644 --- a/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java +++ b/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java @@ -86,8 +86,6 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setBreakValue (BigDecimal BreakValue) { - if (BreakValue == null) - throw new IllegalArgumentException ("BreakValue is mandatory."); set_ValueNoCheck (COLUMNNAME_BreakValue, BreakValue); } @@ -108,9 +106,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -146,9 +145,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) { - if (M_PriceList_Version_ID < 1) - throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + if (M_PriceList_Version_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); } /** Get Price List Version. @@ -184,9 +184,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -204,9 +205,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV @param M_ProductPriceVendorBreak_ID Product Price Vendor Break */ public void setM_ProductPriceVendorBreak_ID (int M_ProductPriceVendorBreak_ID) { - if (M_ProductPriceVendorBreak_ID < 1) - throw new IllegalArgumentException ("M_ProductPriceVendorBreak_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductPriceVendorBreak_ID, Integer.valueOf(M_ProductPriceVendorBreak_ID)); + if (M_ProductPriceVendorBreak_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductPriceVendorBreak_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductPriceVendorBreak_ID, Integer.valueOf(M_ProductPriceVendorBreak_ID)); } /** Get Product Price Vendor Break. @@ -225,8 +227,6 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setPriceLimit (BigDecimal PriceLimit) { - if (PriceLimit == null) - throw new IllegalArgumentException ("PriceLimit is mandatory."); set_Value (COLUMNNAME_PriceLimit, PriceLimit); } @@ -247,8 +247,6 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setPriceList (BigDecimal PriceList) { - if (PriceList == null) - throw new IllegalArgumentException ("PriceList is mandatory."); set_Value (COLUMNNAME_PriceList, PriceList); } @@ -269,8 +267,6 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV */ public void setPriceStd (BigDecimal PriceStd) { - if (PriceStd == null) - throw new IllegalArgumentException ("PriceStd is mandatory."); set_Value (COLUMNNAME_PriceStd, PriceStd); } diff --git a/base/src/org/compiere/model/X_M_Product_Acct.java b/base/src/org/compiere/model/X_M_Product_Acct.java index 099f33e2b5..7e423f430f 100644 --- a/base/src/org/compiere/model/X_M_Product_Acct.java +++ b/base/src/org/compiere/model/X_M_Product_Acct.java @@ -116,9 +116,10 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -154,9 +155,10 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_M_Product_BOM.java b/base/src/org/compiere/model/X_M_Product_BOM.java index c088788396..51f7db1c54 100644 --- a/base/src/org/compiere/model/X_M_Product_BOM.java +++ b/base/src/org/compiere/model/X_M_Product_BOM.java @@ -86,8 +86,6 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent */ public void setBOMQty (BigDecimal BOMQty) { - if (BOMQty == null) - throw new IllegalArgumentException ("BOMQty is mandatory."); set_Value (COLUMNNAME_BOMQty, BOMQty); } @@ -185,9 +183,10 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent @param M_Product_BOM_ID BOM Line */ public void setM_Product_BOM_ID (int M_Product_BOM_ID) { - if (M_Product_BOM_ID < 1) - throw new IllegalArgumentException ("M_Product_BOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_BOM_ID, Integer.valueOf(M_Product_BOM_ID)); + if (M_Product_BOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_BOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_BOM_ID, Integer.valueOf(M_Product_BOM_ID)); } /** Get BOM Line. @@ -206,9 +205,10 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent */ public void setM_ProductBOM_ID (int M_ProductBOM_ID) { - if (M_ProductBOM_ID < 1) - throw new IllegalArgumentException ("M_ProductBOM_ID is mandatory."); - set_Value (COLUMNNAME_M_ProductBOM_ID, Integer.valueOf(M_ProductBOM_ID)); + if (M_ProductBOM_ID < 1) + set_Value (COLUMNNAME_M_ProductBOM_ID, null); + else + set_Value (COLUMNNAME_M_ProductBOM_ID, Integer.valueOf(M_ProductBOM_ID)); } /** Get BOM Product. @@ -252,9 +252,10 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. diff --git a/base/src/org/compiere/model/X_M_Product_Category.java b/base/src/org/compiere/model/X_M_Product_Category.java index d1510c1587..526a279e3d 100644 --- a/base/src/org/compiere/model/X_M_Product_Category.java +++ b/base/src/org/compiere/model/X_M_Product_Category.java @@ -237,7 +237,7 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ */ public void setMMPolicy (String MMPolicy) { - if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory"); + set_Value (COLUMNNAME_MMPolicy, MMPolicy); } @@ -255,9 +255,10 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. @@ -297,8 +298,6 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -324,8 +323,6 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ */ public void setPlannedMargin (BigDecimal PlannedMargin) { - if (PlannedMargin == null) - throw new IllegalArgumentException ("PlannedMargin is mandatory."); set_Value (COLUMNNAME_PlannedMargin, PlannedMargin); } @@ -346,8 +343,6 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_M_Product_Category_Acct.java b/base/src/org/compiere/model/X_M_Product_Category_Acct.java index ce16a9521f..7ee4166954 100644 --- a/base/src/org/compiere/model/X_M_Product_Category_Acct.java +++ b/base/src/org/compiere/model/X_M_Product_Category_Acct.java @@ -116,9 +116,10 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -218,9 +219,10 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. diff --git a/base/src/org/compiere/model/X_M_Product_Costing.java b/base/src/org/compiere/model/X_M_Product_Costing.java index 65a3d1ef20..a118440721 100644 --- a/base/src/org/compiere/model/X_M_Product_Costing.java +++ b/base/src/org/compiere/model/X_M_Product_Costing.java @@ -110,9 +110,10 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -132,8 +133,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostAverage (BigDecimal CostAverage) { - if (CostAverage == null) - throw new IllegalArgumentException ("CostAverage is mandatory."); set_ValueNoCheck (COLUMNNAME_CostAverage, CostAverage); } @@ -154,8 +153,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostAverageCumAmt (BigDecimal CostAverageCumAmt) { - if (CostAverageCumAmt == null) - throw new IllegalArgumentException ("CostAverageCumAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_CostAverageCumAmt, CostAverageCumAmt); } @@ -176,8 +173,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostAverageCumQty (BigDecimal CostAverageCumQty) { - if (CostAverageCumQty == null) - throw new IllegalArgumentException ("CostAverageCumQty is mandatory."); set_ValueNoCheck (COLUMNNAME_CostAverageCumQty, CostAverageCumQty); } @@ -198,8 +193,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostStandard (BigDecimal CostStandard) { - if (CostStandard == null) - throw new IllegalArgumentException ("CostStandard is mandatory."); set_ValueNoCheck (COLUMNNAME_CostStandard, CostStandard); } @@ -220,8 +213,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostStandardCumAmt (BigDecimal CostStandardCumAmt) { - if (CostStandardCumAmt == null) - throw new IllegalArgumentException ("CostStandardCumAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_CostStandardCumAmt, CostStandardCumAmt); } @@ -242,8 +233,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostStandardCumQty (BigDecimal CostStandardCumQty) { - if (CostStandardCumQty == null) - throw new IllegalArgumentException ("CostStandardCumQty is mandatory."); set_ValueNoCheck (COLUMNNAME_CostStandardCumQty, CostStandardCumQty); } @@ -264,8 +253,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostStandardPOAmt (BigDecimal CostStandardPOAmt) { - if (CostStandardPOAmt == null) - throw new IllegalArgumentException ("CostStandardPOAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_CostStandardPOAmt, CostStandardPOAmt); } @@ -286,8 +273,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCostStandardPOQty (BigDecimal CostStandardPOQty) { - if (CostStandardPOQty == null) - throw new IllegalArgumentException ("CostStandardPOQty is mandatory."); set_ValueNoCheck (COLUMNNAME_CostStandardPOQty, CostStandardPOQty); } @@ -308,8 +293,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setCurrentCostPrice (BigDecimal CurrentCostPrice) { - if (CurrentCostPrice == null) - throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); } @@ -328,8 +311,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe @param FutureCostPrice Future Cost Price */ public void setFutureCostPrice (BigDecimal FutureCostPrice) { - if (FutureCostPrice == null) - throw new IllegalArgumentException ("FutureCostPrice is mandatory."); set_Value (COLUMNNAME_FutureCostPrice, FutureCostPrice); } @@ -365,9 +346,10 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -387,8 +369,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setPriceLastInv (BigDecimal PriceLastInv) { - if (PriceLastInv == null) - throw new IllegalArgumentException ("PriceLastInv is mandatory."); set_ValueNoCheck (COLUMNNAME_PriceLastInv, PriceLastInv); } @@ -409,8 +389,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setPriceLastPO (BigDecimal PriceLastPO) { - if (PriceLastPO == null) - throw new IllegalArgumentException ("PriceLastPO is mandatory."); set_ValueNoCheck (COLUMNNAME_PriceLastPO, PriceLastPO); } @@ -431,8 +409,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setTotalInvAmt (BigDecimal TotalInvAmt) { - if (TotalInvAmt == null) - throw new IllegalArgumentException ("TotalInvAmt is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalInvAmt, TotalInvAmt); } @@ -453,8 +429,6 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe */ public void setTotalInvQty (BigDecimal TotalInvQty) { - if (TotalInvQty == null) - throw new IllegalArgumentException ("TotalInvQty is mandatory."); set_ValueNoCheck (COLUMNNAME_TotalInvQty, TotalInvQty); } diff --git a/base/src/org/compiere/model/X_M_Product_PO.java b/base/src/org/compiere/model/X_M_Product_PO.java index e9abf380dd..dc31807fd5 100644 --- a/base/src/org/compiere/model/X_M_Product_PO.java +++ b/base/src/org/compiere/model/X_M_Product_PO.java @@ -103,9 +103,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -361,9 +362,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -594,8 +596,6 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent */ public void setVendorProductNo (String VendorProductNo) { - if (VendorProductNo == null) - throw new IllegalArgumentException ("VendorProductNo is mandatory."); set_Value (COLUMNNAME_VendorProductNo, VendorProductNo); } diff --git a/base/src/org/compiere/model/X_M_Production.java b/base/src/org/compiere/model/X_M_Production.java index 7dea1bdeb9..81aa0baf8a 100644 --- a/base/src/org/compiere/model/X_M_Production.java +++ b/base/src/org/compiere/model/X_M_Production.java @@ -263,8 +263,6 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } @@ -282,9 +280,10 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent */ public void setM_Production_ID (int M_Production_ID) { - if (M_Production_ID < 1) - throw new IllegalArgumentException ("M_Production_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); + if (M_Production_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Production_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); } /** Get Production. @@ -304,8 +303,6 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_ProductionLine.java b/base/src/org/compiere/model/X_M_ProductionLine.java index 4d1d694e11..b147d9c89c 100644 --- a/base/src/org/compiere/model/X_M_ProductionLine.java +++ b/base/src/org/compiere/model/X_M_ProductionLine.java @@ -134,9 +134,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -156,9 +157,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -178,8 +180,6 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -216,9 +216,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -238,9 +239,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setM_ProductionLine_ID (int M_ProductionLine_ID) { - if (M_ProductionLine_ID < 1) - throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + if (M_ProductionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); } /** Get Production Line. @@ -276,9 +278,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers */ public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) { - if (M_ProductionPlan_ID < 1) - throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); + if (M_ProductionPlan_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); } /** Get Production Plan. diff --git a/base/src/org/compiere/model/X_M_ProductionLineMA.java b/base/src/org/compiere/model/X_M_ProductionLineMA.java index 8450ffbd6b..8856a141d9 100644 --- a/base/src/org/compiere/model/X_M_ProductionLineMA.java +++ b/base/src/org/compiere/model/X_M_ProductionLineMA.java @@ -82,9 +82,10 @@ public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_ */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -104,8 +105,6 @@ public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_ */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -142,9 +141,10 @@ public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_ */ public void setM_ProductionLine_ID (int M_ProductionLine_ID) { - if (M_ProductionLine_ID < 1) - throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + if (M_ProductionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); } /** Get Production Line. diff --git a/base/src/org/compiere/model/X_M_ProductionPlan.java b/base/src/org/compiere/model/X_M_ProductionPlan.java index de33c8f0de..2f5d1cc33b 100644 --- a/base/src/org/compiere/model/X_M_ProductionPlan.java +++ b/base/src/org/compiere/model/X_M_ProductionPlan.java @@ -134,9 +134,10 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -156,9 +157,10 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -194,9 +196,10 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers */ public void setM_Production_ID (int M_Production_ID) { - if (M_Production_ID < 1) - throw new IllegalArgumentException ("M_Production_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); + if (M_Production_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Production_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); } /** Get Production. @@ -216,9 +219,10 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers */ public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) { - if (M_ProductionPlan_ID < 1) - throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); + if (M_ProductionPlan_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); } /** Get Production Plan. @@ -262,8 +266,6 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers */ public void setProductionQty (BigDecimal ProductionQty) { - if (ProductionQty == null) - throw new IllegalArgumentException ("ProductionQty is mandatory."); set_Value (COLUMNNAME_ProductionQty, ProductionQty); } diff --git a/base/src/org/compiere/model/X_M_RMA.java b/base/src/org/compiere/model/X_M_RMA.java index 7f845444e5..5b57ed65d1 100644 --- a/base/src/org/compiere/model/X_M_RMA.java +++ b/base/src/org/compiere/model/X_M_RMA.java @@ -26,15 +26,15 @@ import org.compiere.util.Env; import org.compiere.util.KeyNamePair; /** Generated Model for M_RMA - * @author Adempiere (generated) + * @author Adempiere (generated) * @version Release 3.5.3a - $Id$ */ -public class X_M_RMA extends PO implements I_M_RMA, I_Persistent +public class X_M_RMA extends PO implements I_M_RMA, I_Persistent { /** * */ - private static final long serialVersionUID = 20090601L; + private static final long serialVersionUID = 20081221L; /** Standard Constructor */ public X_M_RMA (Properties ctx, int M_RMA_ID, String trxName) @@ -52,8 +52,8 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent setIsApproved (false); setIsSOTrx (false); // @IsSOTrx@ - setM_RMAType_ID (0); setM_RMA_ID (0); + setM_RMAType_ID (0); setName (null); setProcessed (false); setSalesRep_ID (0); @@ -67,7 +67,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** AccessLevel - * @return 1 - Org + * @return 1 - Org */ protected int get_AccessLevel() { @@ -89,7 +89,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Amount. - @param Amt + @param Amt Amount */ public void setAmt (BigDecimal Amt) @@ -100,7 +100,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Amount. @return Amount */ - public BigDecimal getAmt () + public BigDecimal getAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); if (bd == null) @@ -108,7 +108,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return bd; } - public I_C_BPartner getC_BPartner() throws RuntimeException + public I_C_BPartner getC_BPartner() throws RuntimeException { Class clazz = MTable.getClass(I_C_BPartner.Table_Name); I_C_BPartner result = null; @@ -125,21 +125,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Business Partner . - @param C_BPartner_ID + @param C_BPartner_ID Identifies a Business Partner */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) + if (C_BPartner_ID < 1) set_Value (COLUMNNAME_C_BPartner_ID, null); - else + else set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @return Identifies a Business Partner */ - public int getC_BPartner_ID () + public int getC_BPartner_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); if (ii == null) @@ -147,7 +147,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } - public I_C_Currency getC_Currency() throws RuntimeException + public I_C_Currency getC_Currency() throws RuntimeException { Class clazz = MTable.getClass(I_C_Currency.Table_Name); I_C_Currency result = null; @@ -164,21 +164,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Currency. - @param C_Currency_ID + @param C_Currency_ID The Currency for this record */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) + if (C_Currency_ID < 1) set_Value (COLUMNNAME_C_Currency_ID, null); - else + else set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @return The Currency for this record */ - public int getC_Currency_ID () + public int getC_Currency_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); if (ii == null) @@ -187,21 +187,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Document Type. - @param C_DocType_ID + @param C_DocType_ID Document type or rules */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); - else + else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @return Document type or rules */ - public int getC_DocType_ID () + public int getC_DocType_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); if (ii == null) @@ -209,7 +209,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } - public I_C_Order getC_Order() throws RuntimeException + public I_C_Order getC_Order() throws RuntimeException { Class clazz = MTable.getClass(I_C_Order.Table_Name); I_C_Order result = null; @@ -226,21 +226,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Order. - @param C_Order_ID + @param C_Order_ID Order */ public void setC_Order_ID (int C_Order_ID) { - if (C_Order_ID < 1) + if (C_Order_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); - else + else set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); } /** Get Order. @return Order */ - public int getC_Order_ID () + public int getC_Order_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); if (ii == null) @@ -249,7 +249,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Description. - @param Description + @param Description Optional short description of the record */ public void setDescription (String Description) @@ -260,7 +260,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Description. @return Optional short description of the record */ - public String getDescription () + public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } @@ -296,7 +296,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Wait Complete = WC */ public static final String DOCACTION_WaitComplete = "WC"; /** Set Document Action. - @param DocAction + @param DocAction The targeted status of the document */ public void setDocAction (String DocAction) @@ -308,7 +308,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Document Action. @return The targeted status of the document */ - public String getDocAction () + public String getDocAction () { return (String)get_Value(COLUMNNAME_DocAction); } @@ -340,7 +340,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Waiting Confirmation = WC */ public static final String DOCSTATUS_WaitingConfirmation = "WC"; /** Set Document Status. - @param DocStatus + @param DocStatus The current status of the document */ public void setDocStatus (String DocStatus) @@ -352,13 +352,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Document Status. @return The current status of the document */ - public String getDocStatus () + public String getDocStatus () { return (String)get_Value(COLUMNNAME_DocStatus); } /** Set Document No. - @param DocumentNo + @param DocumentNo Document sequence number of the document */ public void setDocumentNo (String DocumentNo) @@ -369,7 +369,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Document No. @return Document sequence number of the document */ - public String getDocumentNo () + public String getDocumentNo () { return (String)get_Value(COLUMNNAME_DocumentNo); } @@ -377,13 +377,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Record ID/ColumnName @return ID/ColumnName pair */ - public KeyNamePair getKeyNamePair() + public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getDocumentNo()); } /** Set Generate To. - @param GenerateTo + @param GenerateTo Generate To */ public void setGenerateTo (String GenerateTo) @@ -394,13 +394,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Generate To. @return Generate To */ - public String getGenerateTo () + public String getGenerateTo () { return (String)get_Value(COLUMNNAME_GenerateTo); } /** Set Comment/Help. - @param Help + @param Help Comment or Hint */ public void setHelp (String Help) @@ -411,27 +411,27 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Comment/Help. @return Comment or Hint */ - public String getHelp () + public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Shipment/Receipt. - @param InOut_ID + @param InOut_ID MaterialShipment Document */ public void setInOut_ID (int InOut_ID) { - if (InOut_ID < 1) + if (InOut_ID < 1) set_ValueNoCheck (COLUMNNAME_InOut_ID, null); - else + else set_ValueNoCheck (COLUMNNAME_InOut_ID, Integer.valueOf(InOut_ID)); } /** Get Shipment/Receipt. @return MaterialShipment Document */ - public int getInOut_ID () + public int getInOut_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_InOut_ID); if (ii == null) @@ -440,7 +440,7 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Approved. - @param IsApproved + @param IsApproved Indicates if this document requires approval */ public void setIsApproved (boolean IsApproved) @@ -451,20 +451,20 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Approved. @return Indicates if this document requires approval */ - public boolean isApproved () + public boolean isApproved () { Object oo = get_Value(COLUMNNAME_IsApproved); - if (oo != null) + if (oo != null) { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Sales Transaction. - @param IsSOTrx + @param IsSOTrx This is a Sales Transaction */ public void setIsSOTrx (boolean IsSOTrx) @@ -475,19 +475,42 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Sales Transaction. @return This is a Sales Transaction */ - public boolean isSOTrx () + public boolean isSOTrx () { Object oo = get_Value(COLUMNNAME_IsSOTrx); - if (oo != null) + if (oo != null) { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } - public I_M_RMAType getM_RMAType() throws RuntimeException + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_RMA_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMAType getM_RMAType() throws RuntimeException { Class clazz = MTable.getClass(I_M_RMAType.Table_Name); I_M_RMAType result = null; @@ -504,21 +527,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set RMA Type. - @param M_RMAType_ID + @param M_RMAType_ID Return Material Authorization Type */ public void setM_RMAType_ID (int M_RMAType_ID) { - if (M_RMAType_ID < 1) + if (M_RMAType_ID < 1) set_Value (COLUMNNAME_M_RMAType_ID, null); - else + else set_Value (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); } /** Get RMA Type. @return Return Material Authorization Type */ - public int getM_RMAType_ID () + public int getM_RMAType_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_RMAType_ID); if (ii == null) @@ -526,31 +549,8 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } - /** Set RMA. - @param M_RMA_ID - Return Material Authorization - */ - public void setM_RMA_ID (int M_RMA_ID) - { - if (M_RMA_ID < 1) - set_ValueNoCheck (COLUMNNAME_M_RMA_ID, null); - else - set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); - } - - /** Get RMA. - @return Return Material Authorization - */ - public int getM_RMA_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - /** Set Name. - @param Name + @param Name Alphanumeric identifier of the entity */ public void setName (String Name) @@ -561,13 +561,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Name. @return Alphanumeric identifier of the entity */ - public String getName () + public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Set Processed. - @param Processed + @param Processed The document has been processed */ public void setProcessed (boolean Processed) @@ -578,13 +578,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Processed. @return The document has been processed */ - public boolean isProcessed () + public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); - if (oo != null) + if (oo != null) { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; @@ -599,13 +599,13 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent /** Get Process Now. @return Process Now */ - public boolean isProcessing () + public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); - if (oo != null) + if (oo != null) { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; @@ -615,15 +615,15 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent @param Ref_RMA_ID Referenced RMA */ public void setRef_RMA_ID (int Ref_RMA_ID) { - if (Ref_RMA_ID < 1) + if (Ref_RMA_ID < 1) set_Value (COLUMNNAME_Ref_RMA_ID, null); - else + else set_Value (COLUMNNAME_Ref_RMA_ID, Integer.valueOf(Ref_RMA_ID)); } /** Get Referenced RMA. @return Referenced RMA */ - public int getRef_RMA_ID () + public int getRef_RMA_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Ref_RMA_ID); if (ii == null) @@ -632,21 +632,21 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent } /** Set Sales Representative. - @param SalesRep_ID + @param SalesRep_ID Sales Representative or Company Agent */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) + if (SalesRep_ID < 1) set_Value (COLUMNNAME_SalesRep_ID, null); - else + else set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. @return Sales Representative or Company Agent */ - public int getSalesRep_ID () + public int getSalesRep_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); if (ii == null) diff --git a/base/src/org/compiere/model/X_M_RMALine.java b/base/src/org/compiere/model/X_M_RMALine.java index 75ba78e83d..6fb96e3e1b 100644 --- a/base/src/org/compiere/model/X_M_RMALine.java +++ b/base/src/org/compiere/model/X_M_RMALine.java @@ -26,15 +26,15 @@ import org.compiere.util.Env; import org.compiere.util.KeyNamePair; /** Generated Model for M_RMALine - * @author Adempiere (generated) + * @author Adempiere (generated) * @version Release 3.5.3a - $Id$ */ -public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent +public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent { /** * */ - private static final long serialVersionUID = 20090601; + private static final long serialVersionUID = 20081221L; /** Standard Constructor */ public X_M_RMALine (Properties ctx, int M_RMALine_ID, String trxName) @@ -42,8 +42,8 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent super (ctx, M_RMALine_ID, trxName); /** if (M_RMALine_ID == 0) { - setM_RMALine_ID (0); setM_RMA_ID (0); + setM_RMALine_ID (0); setProcessed (false); setQty (Env.ZERO); } */ @@ -56,7 +56,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** AccessLevel - * @return 1 - Org + * @return 1 - Org */ protected int get_AccessLevel() { @@ -78,7 +78,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Amount. - @param Amt + @param Amt Amount */ public void setAmt (BigDecimal Amt) @@ -89,7 +89,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Amount. @return Amount */ - public BigDecimal getAmt () + public BigDecimal getAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); if (bd == null) @@ -97,7 +97,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent return bd; } - public I_C_Charge getC_Charge() throws RuntimeException + public I_C_Charge getC_Charge() throws RuntimeException { Class clazz = MTable.getClass(I_C_Charge.Table_Name); I_C_Charge result = null; @@ -114,21 +114,21 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Charge. - @param C_Charge_ID + @param C_Charge_ID Additional document charges */ public void setC_Charge_ID (int C_Charge_ID) { - if (C_Charge_ID < 1) + if (C_Charge_ID < 1) set_Value (COLUMNNAME_C_Charge_ID, null); - else + else set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); } /** Get Charge. @return Additional document charges */ - public int getC_Charge_ID () + public int getC_Charge_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); if (ii == null) @@ -137,7 +137,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Description. - @param Description + @param Description Optional short description of the record */ public void setDescription (String Description) @@ -148,13 +148,13 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Description. @return Optional short description of the record */ - public String getDescription () + public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Line No. - @param Line + @param Line Unique line for this document */ public void setLine (int Line) @@ -165,7 +165,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Line No. @return Unique line for this document */ - public int getLine () + public int getLine () { Integer ii = (Integer)get_Value(COLUMNNAME_Line); if (ii == null) @@ -174,7 +174,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Line Amount. - @param LineNetAmt + @param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ public void setLineNetAmt (BigDecimal LineNetAmt) @@ -185,7 +185,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Line Amount. @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ - public BigDecimal getLineNetAmt () + public BigDecimal getLineNetAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); if (bd == null) @@ -193,7 +193,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent return bd; } - public I_M_InOutLine getM_InOutLine() throws RuntimeException + public I_M_InOutLine getM_InOutLine() throws RuntimeException { Class clazz = MTable.getClass(I_M_InOutLine.Table_Name); I_M_InOutLine result = null; @@ -210,21 +210,21 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Shipment/Receipt Line. - @param M_InOutLine_ID + @param M_InOutLine_ID Line on Shipment or Receipt document */ public void setM_InOutLine_ID (int M_InOutLine_ID) { - if (M_InOutLine_ID < 1) + if (M_InOutLine_ID < 1) set_Value (COLUMNNAME_M_InOutLine_ID, null); - else + else set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); } /** Get Shipment/Receipt Line. @return Line on Shipment or Receipt document */ - public int getM_InOutLine_ID () + public int getM_InOutLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); if (ii == null) @@ -232,30 +232,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent return ii.intValue(); } - /** Set RMA Line. - @param M_RMALine_ID - Return Material Authorization Line - */ - public void setM_RMALine_ID (int M_RMALine_ID) - { - if (M_RMALine_ID < 1) - set_ValueNoCheck (COLUMNNAME_M_RMALine_ID, null); - else - set_ValueNoCheck (COLUMNNAME_M_RMALine_ID, Integer.valueOf(M_RMALine_ID)); - } - - /** Get RMA Line. - @return Return Material Authorization Line - */ - public int getM_RMALine_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_M_RMALine_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - public I_M_RMA getM_RMA() throws RuntimeException + public I_M_RMA getM_RMA() throws RuntimeException { Class clazz = MTable.getClass(I_M_RMA.Table_Name); I_M_RMA result = null; @@ -272,21 +249,21 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set RMA. - @param M_RMA_ID + @param M_RMA_ID Return Material Authorization */ public void setM_RMA_ID (int M_RMA_ID) { - if (M_RMA_ID < 1) + if (M_RMA_ID < 1) set_ValueNoCheck (COLUMNNAME_M_RMA_ID, null); - else + else set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); } /** Get RMA. @return Return Material Authorization */ - public int getM_RMA_ID () + public int getM_RMA_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); if (ii == null) @@ -297,13 +274,36 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Record ID/ColumnName @return ID/ColumnName pair */ - public KeyNamePair getKeyNamePair() + public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getM_RMA_ID())); } + /** Set RMA Line. + @param M_RMALine_ID + Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID) + { + if (M_RMALine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_RMALine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_RMALine_ID, Integer.valueOf(M_RMALine_ID)); + } + + /** Get RMA Line. + @return Return Material Authorization Line + */ + public int getM_RMALine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMALine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Processed. - @param Processed + @param Processed The document has been processed */ public void setProcessed (boolean Processed) @@ -314,20 +314,20 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Processed. @return The document has been processed */ - public boolean isProcessed () + public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); - if (oo != null) + if (oo != null) { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Quantity. - @param Qty + @param Qty Quantity */ public void setQty (BigDecimal Qty) @@ -338,7 +338,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Quantity. @return Quantity */ - public BigDecimal getQty () + public BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) @@ -347,7 +347,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Delivered Quantity. - @param QtyDelivered + @param QtyDelivered Delivered Quantity */ public void setQtyDelivered (BigDecimal QtyDelivered) @@ -358,7 +358,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Delivered Quantity. @return Delivered Quantity */ - public BigDecimal getQtyDelivered () + public BigDecimal getQtyDelivered () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyDelivered); if (bd == null) @@ -367,7 +367,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent } /** Set Quantity Invoiced. - @param QtyInvoiced + @param QtyInvoiced Invoiced Quantity */ public void setQtyInvoiced (BigDecimal QtyInvoiced) @@ -378,7 +378,7 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent /** Get Quantity Invoiced. @return Invoiced Quantity */ - public BigDecimal getQtyInvoiced () + public BigDecimal getQtyInvoiced () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); if (bd == null) @@ -390,15 +390,15 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent @param Ref_RMALine_ID Referenced RMA Line */ public void setRef_RMALine_ID (int Ref_RMALine_ID) { - if (Ref_RMALine_ID < 1) + if (Ref_RMALine_ID < 1) set_Value (COLUMNNAME_Ref_RMALine_ID, null); - else + else set_Value (COLUMNNAME_Ref_RMALine_ID, Integer.valueOf(Ref_RMALine_ID)); } /** Get Referenced RMA Line. @return Referenced RMA Line */ - public int getRef_RMALine_ID () + public int getRef_RMALine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Ref_RMALine_ID); if (ii == null) diff --git a/base/src/org/compiere/model/X_M_RMAType.java b/base/src/org/compiere/model/X_M_RMAType.java index 08810acfbb..925f756650 100644 --- a/base/src/org/compiere/model/X_M_RMAType.java +++ b/base/src/org/compiere/model/X_M_RMAType.java @@ -111,9 +111,10 @@ public class X_M_RMAType extends PO implements I_M_RMAType, I_Persistent */ public void setM_RMAType_ID (int M_RMAType_ID) { - if (M_RMAType_ID < 1) - throw new IllegalArgumentException ("M_RMAType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); + if (M_RMAType_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); } /** Get RMA Type. @@ -133,8 +134,6 @@ public class X_M_RMAType extends PO implements I_M_RMAType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_RelatedProduct.java b/base/src/org/compiere/model/X_M_RelatedProduct.java index 81263cf63e..f5ca2c27b5 100644 --- a/base/src/org/compiere/model/X_M_RelatedProduct.java +++ b/base/src/org/compiere/model/X_M_RelatedProduct.java @@ -113,9 +113,10 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -135,8 +136,6 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -154,9 +153,10 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers */ public void setRelatedProduct_ID (int RelatedProduct_ID) { - if (RelatedProduct_ID < 1) - throw new IllegalArgumentException ("RelatedProduct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_RelatedProduct_ID, Integer.valueOf(RelatedProduct_ID)); + if (RelatedProduct_ID < 1) + set_ValueNoCheck (COLUMNNAME_RelatedProduct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_RelatedProduct_ID, Integer.valueOf(RelatedProduct_ID)); } /** Get Related Product. @@ -182,7 +182,7 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers @param RelatedProductType Related Product Type */ public void setRelatedProductType (String RelatedProductType) { - if (RelatedProductType == null) throw new IllegalArgumentException ("RelatedProductType is mandatory"); + set_ValueNoCheck (COLUMNNAME_RelatedProductType, RelatedProductType); } diff --git a/base/src/org/compiere/model/X_M_Replenish.java b/base/src/org/compiere/model/X_M_Replenish.java index b282b63c35..d534c197c2 100644 --- a/base/src/org/compiere/model/X_M_Replenish.java +++ b/base/src/org/compiere/model/X_M_Replenish.java @@ -83,8 +83,6 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent */ public void setLevel_Max (BigDecimal Level_Max) { - if (Level_Max == null) - throw new IllegalArgumentException ("Level_Max is mandatory."); set_Value (COLUMNNAME_Level_Max, Level_Max); } @@ -105,8 +103,6 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent */ public void setLevel_Min (BigDecimal Level_Min) { - if (Level_Min == null) - throw new IllegalArgumentException ("Level_Min is mandatory."); set_Value (COLUMNNAME_Level_Min, Level_Min); } @@ -182,9 +178,10 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -220,9 +217,10 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -275,7 +273,7 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent */ public void setReplenishType (String ReplenishType) { - if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory"); + set_Value (COLUMNNAME_ReplenishType, ReplenishType); } diff --git a/base/src/org/compiere/model/X_M_Requisition.java b/base/src/org/compiere/model/X_M_Requisition.java index 2fbc2b2463..ad38cf9bfb 100644 --- a/base/src/org/compiere/model/X_M_Requisition.java +++ b/base/src/org/compiere/model/X_M_Requisition.java @@ -115,9 +115,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -153,9 +154,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @@ -175,8 +177,6 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setDateDoc (Timestamp DateDoc) { - if (DateDoc == null) - throw new IllegalArgumentException ("DateDoc is mandatory."); set_Value (COLUMNNAME_DateDoc, DateDoc); } @@ -194,8 +194,6 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setDateRequired (Timestamp DateRequired) { - if (DateRequired == null) - throw new IllegalArgumentException ("DateRequired is mandatory."); set_Value (COLUMNNAME_DateRequired, DateRequired); } @@ -260,7 +258,7 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -304,7 +302,7 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -322,8 +320,6 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @@ -406,9 +402,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -428,9 +425,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setM_Requisition_ID (int M_Requisition_ID) { - if (M_Requisition_ID < 1) - throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); + if (M_Requisition_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); } /** Get Requisition. @@ -466,9 +464,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -524,7 +523,7 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setPriorityRule (String PriorityRule) { - if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); + set_Value (COLUMNNAME_PriorityRule, PriorityRule); } @@ -587,8 +586,6 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent */ public void setTotalLines (BigDecimal TotalLines) { - if (TotalLines == null) - throw new IllegalArgumentException ("TotalLines is mandatory."); set_Value (COLUMNNAME_TotalLines, TotalLines); } diff --git a/base/src/org/compiere/model/X_M_RequisitionLine.java b/base/src/org/compiere/model/X_M_RequisitionLine.java index 3350326a40..feab67f83c 100644 --- a/base/src/org/compiere/model/X_M_RequisitionLine.java +++ b/base/src/org/compiere/model/X_M_RequisitionLine.java @@ -249,8 +249,6 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setLineNetAmt (BigDecimal LineNetAmt) { - if (LineNetAmt == null) - throw new IllegalArgumentException ("LineNetAmt is mandatory."); set_Value (COLUMNNAME_LineNetAmt, LineNetAmt); } @@ -271,7 +269,7 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 1) + if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); @@ -349,9 +347,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setM_Requisition_ID (int M_Requisition_ID) { - if (M_Requisition_ID < 1) - throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); + if (M_Requisition_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); } /** Get Requisition. @@ -371,9 +370,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setM_RequisitionLine_ID (int M_RequisitionLine_ID) { - if (M_RequisitionLine_ID < 1) - throw new IllegalArgumentException ("M_RequisitionLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_RequisitionLine_ID, Integer.valueOf(M_RequisitionLine_ID)); + if (M_RequisitionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_RequisitionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_RequisitionLine_ID, Integer.valueOf(M_RequisitionLine_ID)); } /** Get Requisition Line. @@ -393,8 +393,6 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setPriceActual (BigDecimal PriceActual) { - if (PriceActual == null) - throw new IllegalArgumentException ("PriceActual is mandatory."); set_Value (COLUMNNAME_PriceActual, PriceActual); } @@ -415,8 +413,6 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_SerNoCtl.java b/base/src/org/compiere/model/X_M_SerNoCtl.java index 4933275e74..3e14c30991 100644 --- a/base/src/org/compiere/model/X_M_SerNoCtl.java +++ b/base/src/org/compiere/model/X_M_SerNoCtl.java @@ -140,9 +140,10 @@ public class X_M_SerNoCtl extends PO implements I_M_SerNoCtl, I_Persistent */ public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) { - if (M_SerNoCtl_ID < 1) - throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); + if (M_SerNoCtl_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); } /** Get Serial No Control. @@ -162,8 +163,6 @@ public class X_M_SerNoCtl extends PO implements I_M_SerNoCtl, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java index dfbbc75376..e74c50e315 100644 --- a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java +++ b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java @@ -96,9 +96,10 @@ public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Pe */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -142,9 +143,10 @@ public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Pe */ public void setM_SerNoCtlExclude_ID (int M_SerNoCtlExclude_ID) { - if (M_SerNoCtlExclude_ID < 1) - throw new IllegalArgumentException ("M_SerNoCtlExclude_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_SerNoCtlExclude_ID, Integer.valueOf(M_SerNoCtlExclude_ID)); + if (M_SerNoCtlExclude_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_SerNoCtlExclude_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_SerNoCtlExclude_ID, Integer.valueOf(M_SerNoCtlExclude_ID)); } /** Get Exclude SerNo. @@ -180,9 +182,10 @@ public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Pe */ public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) { - if (M_SerNoCtl_ID < 1) - throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); + if (M_SerNoCtl_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); } /** Get Serial No Control. diff --git a/base/src/org/compiere/model/X_M_Shipper.java b/base/src/org/compiere/model/X_M_Shipper.java index d087f557c0..4ba4d952b7 100644 --- a/base/src/org/compiere/model/X_M_Shipper.java +++ b/base/src/org/compiere/model/X_M_Shipper.java @@ -135,9 +135,10 @@ public class X_M_Shipper extends PO implements I_M_Shipper, I_Persistent */ public void setM_Shipper_ID (int M_Shipper_ID) { - if (M_Shipper_ID < 1) - throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + if (M_Shipper_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); } /** Get Shipper. @@ -157,8 +158,6 @@ public class X_M_Shipper extends PO implements I_M_Shipper, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } diff --git a/base/src/org/compiere/model/X_M_Storage.java b/base/src/org/compiere/model/X_M_Storage.java index 97ba7bc3f0..b3f1004313 100644 --- a/base/src/org/compiere/model/X_M_Storage.java +++ b/base/src/org/compiere/model/X_M_Storage.java @@ -102,9 +102,10 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -124,9 +125,10 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -162,9 +164,10 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -184,8 +187,6 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setQtyOnHand (BigDecimal QtyOnHand) { - if (QtyOnHand == null) - throw new IllegalArgumentException ("QtyOnHand is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyOnHand, QtyOnHand); } @@ -206,8 +207,6 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setQtyOrdered (BigDecimal QtyOrdered) { - if (QtyOrdered == null) - throw new IllegalArgumentException ("QtyOrdered is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyOrdered, QtyOrdered); } @@ -228,8 +227,6 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent */ public void setQtyReserved (BigDecimal QtyReserved) { - if (QtyReserved == null) - throw new IllegalArgumentException ("QtyReserved is mandatory."); set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); } diff --git a/base/src/org/compiere/model/X_M_Substitute.java b/base/src/org/compiere/model/X_M_Substitute.java index 9bb6512d71..871089e17f 100644 --- a/base/src/org/compiere/model/X_M_Substitute.java +++ b/base/src/org/compiere/model/X_M_Substitute.java @@ -113,9 +113,10 @@ public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -135,8 +136,6 @@ public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -162,9 +161,10 @@ public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent */ public void setSubstitute_ID (int Substitute_ID) { - if (Substitute_ID < 1) - throw new IllegalArgumentException ("Substitute_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); + if (Substitute_ID < 1) + set_ValueNoCheck (COLUMNNAME_Substitute_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); } /** Get Substitute. diff --git a/base/src/org/compiere/model/X_M_Transaction.java b/base/src/org/compiere/model/X_M_Transaction.java index 238a5064b9..3929bb84d9 100644 --- a/base/src/org/compiere/model/X_M_Transaction.java +++ b/base/src/org/compiere/model/X_M_Transaction.java @@ -126,9 +126,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -226,9 +227,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -287,8 +289,6 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_ValueNoCheck (COLUMNNAME_MovementDate, MovementDate); } @@ -314,8 +314,6 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_ValueNoCheck (COLUMNNAME_MovementQty, MovementQty); } @@ -362,7 +360,7 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setMovementType (String MovementType) { - if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); } @@ -396,9 +394,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -455,9 +454,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent @param M_Transaction_ID Inventory Transaction */ public void setM_Transaction_ID (int M_Transaction_ID) { - if (M_Transaction_ID < 1) - throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + if (M_Transaction_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); } /** Get Inventory Transaction. diff --git a/base/src/org/compiere/model/X_M_TransactionAllocation.java b/base/src/org/compiere/model/X_M_TransactionAllocation.java index dccfdfee23..504f5c3258 100644 --- a/base/src/org/compiere/model/X_M_TransactionAllocation.java +++ b/base/src/org/compiere/model/X_M_TransactionAllocation.java @@ -93,7 +93,7 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo */ public void setAllocationStrategyType (String AllocationStrategyType) { - if (AllocationStrategyType == null) throw new IllegalArgumentException ("AllocationStrategyType is mandatory"); + set_Value (COLUMNNAME_AllocationStrategyType, AllocationStrategyType); } @@ -159,9 +159,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -275,9 +276,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -350,9 +352,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo @param M_Transaction_ID Inventory Transaction */ public void setM_Transaction_ID (int M_Transaction_ID) { - if (M_Transaction_ID < 1) - throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + if (M_Transaction_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); } /** Get Inventory Transaction. @@ -463,8 +466,6 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } diff --git a/base/src/org/compiere/model/X_M_Warehouse.java b/base/src/org/compiere/model/X_M_Warehouse.java index 1055c1a8c3..16b56f9b4a 100644 --- a/base/src/org/compiere/model/X_M_Warehouse.java +++ b/base/src/org/compiere/model/X_M_Warehouse.java @@ -81,9 +81,10 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent */ public void setC_Location_ID (int C_Location_ID) { - if (C_Location_ID < 1) - throw new IllegalArgumentException ("C_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + if (C_Location_ID < 1) + set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); } /** Get Address. @@ -144,9 +145,10 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -189,8 +191,6 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -233,8 +233,6 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent */ public void setSeparator (String Separator) { - if (Separator == null) - throw new IllegalArgumentException ("Separator is mandatory."); set_Value (COLUMNNAME_Separator, Separator); } @@ -252,8 +250,6 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_M_Warehouse_Acct.java b/base/src/org/compiere/model/X_M_Warehouse_Acct.java index 84fb2e5a96..ba7629ceb2 100644 --- a/base/src/org/compiere/model/X_M_Warehouse_Acct.java +++ b/base/src/org/compiere/model/X_M_Warehouse_Acct.java @@ -98,9 +98,10 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -136,9 +137,10 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. diff --git a/base/src/org/compiere/model/X_PA_Achievement.java b/base/src/org/compiere/model/X_PA_Achievement.java index b17ac610e2..17ae96c3c3 100644 --- a/base/src/org/compiere/model/X_PA_Achievement.java +++ b/base/src/org/compiere/model/X_PA_Achievement.java @@ -144,8 +144,6 @@ public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persiste */ public void setManualActual (BigDecimal ManualActual) { - if (ManualActual == null) - throw new IllegalArgumentException ("ManualActual is mandatory."); set_Value (COLUMNNAME_ManualActual, ManualActual); } @@ -166,8 +164,6 @@ public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -210,9 +206,10 @@ public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persiste */ public void setPA_Achievement_ID (int PA_Achievement_ID) { - if (PA_Achievement_ID < 1) - throw new IllegalArgumentException ("PA_Achievement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Achievement_ID, Integer.valueOf(PA_Achievement_ID)); + if (PA_Achievement_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Achievement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Achievement_ID, Integer.valueOf(PA_Achievement_ID)); } /** Get Achievement. @@ -248,9 +245,10 @@ public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persiste */ public void setPA_Measure_ID (int PA_Measure_ID) { - if (PA_Measure_ID < 1) - throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); + if (PA_Measure_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); } /** Get Measure. diff --git a/base/src/org/compiere/model/X_PA_Benchmark.java b/base/src/org/compiere/model/X_PA_Benchmark.java index c135872acc..b8b1466559 100644 --- a/base/src/org/compiere/model/X_PA_Benchmark.java +++ b/base/src/org/compiere/model/X_PA_Benchmark.java @@ -84,7 +84,7 @@ public class X_PA_Benchmark extends PO implements I_PA_Benchmark, I_Persistent */ public void setAccumulationType (String AccumulationType) { - if (AccumulationType == null) throw new IllegalArgumentException ("AccumulationType is mandatory"); + set_Value (COLUMNNAME_AccumulationType, AccumulationType); } @@ -136,8 +136,6 @@ public class X_PA_Benchmark extends PO implements I_PA_Benchmark, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -163,9 +161,10 @@ public class X_PA_Benchmark extends PO implements I_PA_Benchmark, I_Persistent */ public void setPA_Benchmark_ID (int PA_Benchmark_ID) { - if (PA_Benchmark_ID < 1) - throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); + if (PA_Benchmark_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); } /** Get Benchmark. diff --git a/base/src/org/compiere/model/X_PA_BenchmarkData.java b/base/src/org/compiere/model/X_PA_BenchmarkData.java index a08784c10f..7ec77ef8bb 100644 --- a/base/src/org/compiere/model/X_PA_BenchmarkData.java +++ b/base/src/org/compiere/model/X_PA_BenchmarkData.java @@ -85,8 +85,6 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers */ public void setBenchmarkDate (Timestamp BenchmarkDate) { - if (BenchmarkDate == null) - throw new IllegalArgumentException ("BenchmarkDate is mandatory."); set_Value (COLUMNNAME_BenchmarkDate, BenchmarkDate); } @@ -104,8 +102,6 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers */ public void setBenchmarkValue (BigDecimal BenchmarkValue) { - if (BenchmarkValue == null) - throw new IllegalArgumentException ("BenchmarkValue is mandatory."); set_Value (COLUMNNAME_BenchmarkValue, BenchmarkValue); } @@ -143,8 +139,6 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -170,9 +164,10 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers */ public void setPA_BenchmarkData_ID (int PA_BenchmarkData_ID) { - if (PA_BenchmarkData_ID < 1) - throw new IllegalArgumentException ("PA_BenchmarkData_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, Integer.valueOf(PA_BenchmarkData_ID)); + if (PA_BenchmarkData_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, Integer.valueOf(PA_BenchmarkData_ID)); } /** Get Benchmark Data. @@ -208,9 +203,10 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers */ public void setPA_Benchmark_ID (int PA_Benchmark_ID) { - if (PA_Benchmark_ID < 1) - throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); + if (PA_Benchmark_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); } /** Get Benchmark. diff --git a/base/src/org/compiere/model/X_PA_ColorSchema.java b/base/src/org/compiere/model/X_PA_ColorSchema.java index fbb6e56841..e1544e6935 100644 --- a/base/src/org/compiere/model/X_PA_ColorSchema.java +++ b/base/src/org/compiere/model/X_PA_ColorSchema.java @@ -83,9 +83,10 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste */ public void setAD_PrintColor1_ID (int AD_PrintColor1_ID) { - if (AD_PrintColor1_ID < 1) - throw new IllegalArgumentException ("AD_PrintColor1_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintColor1_ID, Integer.valueOf(AD_PrintColor1_ID)); + if (AD_PrintColor1_ID < 1) + set_Value (COLUMNNAME_AD_PrintColor1_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor1_ID, Integer.valueOf(AD_PrintColor1_ID)); } /** Get Color 1. @@ -105,9 +106,10 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste */ public void setAD_PrintColor2_ID (int AD_PrintColor2_ID) { - if (AD_PrintColor2_ID < 1) - throw new IllegalArgumentException ("AD_PrintColor2_ID is mandatory."); - set_Value (COLUMNNAME_AD_PrintColor2_ID, Integer.valueOf(AD_PrintColor2_ID)); + if (AD_PrintColor2_ID < 1) + set_Value (COLUMNNAME_AD_PrintColor2_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor2_ID, Integer.valueOf(AD_PrintColor2_ID)); } /** Get Color 2. @@ -290,8 +292,6 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -317,9 +317,10 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste */ public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) { - if (PA_ColorSchema_ID < 1) - throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); + if (PA_ColorSchema_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ColorSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); } /** Get Color Schema. diff --git a/base/src/org/compiere/model/X_PA_DashboardContent.java b/base/src/org/compiere/model/X_PA_DashboardContent.java index 4c573eeee3..f550a7ced7 100644 --- a/base/src/org/compiere/model/X_PA_DashboardContent.java +++ b/base/src/org/compiere/model/X_PA_DashboardContent.java @@ -217,8 +217,6 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent, */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -242,9 +240,10 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent, @param PA_DashboardContent_ID PA_DashboardContent_ID */ public void setPA_DashboardContent_ID (int PA_DashboardContent_ID) { - if (PA_DashboardContent_ID < 1) - throw new IllegalArgumentException ("PA_DashboardContent_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, Integer.valueOf(PA_DashboardContent_ID)); + if (PA_DashboardContent_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, Integer.valueOf(PA_DashboardContent_ID)); } /** Get PA_DashboardContent_ID. diff --git a/base/src/org/compiere/model/X_PA_Goal.java b/base/src/org/compiere/model/X_PA_Goal.java index 6a424f2cf8..3aa61c6b9f 100644 --- a/base/src/org/compiere/model/X_PA_Goal.java +++ b/base/src/org/compiere/model/X_PA_Goal.java @@ -107,7 +107,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -237,8 +237,6 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setGoalPerformance (BigDecimal GoalPerformance) { - if (GoalPerformance == null) - throw new IllegalArgumentException ("GoalPerformance is mandatory."); set_ValueNoCheck (COLUMNNAME_GoalPerformance, GoalPerformance); } @@ -283,8 +281,6 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setMeasureActual (BigDecimal MeasureActual) { - if (MeasureActual == null) - throw new IllegalArgumentException ("MeasureActual is mandatory."); set_ValueNoCheck (COLUMNNAME_MeasureActual, MeasureActual); } @@ -351,7 +347,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setMeasureScope (String MeasureScope) { - if (MeasureScope == null) throw new IllegalArgumentException ("MeasureScope is mandatory"); + set_Value (COLUMNNAME_MeasureScope, MeasureScope); } @@ -369,8 +365,6 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setMeasureTarget (BigDecimal MeasureTarget) { - if (MeasureTarget == null) - throw new IllegalArgumentException ("MeasureTarget is mandatory."); set_Value (COLUMNNAME_MeasureTarget, MeasureTarget); } @@ -391,8 +385,6 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -451,9 +443,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) { - if (PA_ColorSchema_ID < 1) - throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); - set_Value (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); + if (PA_ColorSchema_ID < 1) + set_Value (COLUMNNAME_PA_ColorSchema_ID, null); + else + set_Value (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); } /** Get Color Schema. @@ -473,9 +466,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setPA_Goal_ID (int PA_Goal_ID) { - if (PA_Goal_ID < 1) - throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); + if (PA_Goal_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Goal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); } /** Get Goal. @@ -557,8 +551,6 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent */ public void setRelativeWeight (BigDecimal RelativeWeight) { - if (RelativeWeight == null) - throw new IllegalArgumentException ("RelativeWeight is mandatory."); set_Value (COLUMNNAME_RelativeWeight, RelativeWeight); } diff --git a/base/src/org/compiere/model/X_PA_GoalRestriction.java b/base/src/org/compiere/model/X_PA_GoalRestriction.java index fb58f3c17d..18b37b01db 100644 --- a/base/src/org/compiere/model/X_PA_GoalRestriction.java +++ b/base/src/org/compiere/model/X_PA_GoalRestriction.java @@ -171,7 +171,7 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ */ public void setGoalRestrictionType (String GoalRestrictionType) { - if (GoalRestrictionType == null) throw new IllegalArgumentException ("GoalRestrictionType is mandatory"); + set_Value (COLUMNNAME_GoalRestrictionType, GoalRestrictionType); } @@ -267,8 +267,6 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -333,9 +331,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ */ public void setPA_Goal_ID (int PA_Goal_ID) { - if (PA_Goal_ID < 1) - throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); - set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); + if (PA_Goal_ID < 1) + set_Value (COLUMNNAME_PA_Goal_ID, null); + else + set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); } /** Get Goal. @@ -355,9 +354,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ */ public void setPA_GoalRestriction_ID (int PA_GoalRestriction_ID) { - if (PA_GoalRestriction_ID < 1) - throw new IllegalArgumentException ("PA_GoalRestriction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_GoalRestriction_ID, Integer.valueOf(PA_GoalRestriction_ID)); + if (PA_GoalRestriction_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_GoalRestriction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_GoalRestriction_ID, Integer.valueOf(PA_GoalRestriction_ID)); } /** Get Goal Restriction. diff --git a/base/src/org/compiere/model/X_PA_Hierarchy.java b/base/src/org/compiere/model/X_PA_Hierarchy.java index fa3692e638..c17c899958 100644 --- a/base/src/org/compiere/model/X_PA_Hierarchy.java +++ b/base/src/org/compiere/model/X_PA_Hierarchy.java @@ -85,9 +85,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Account_ID (int AD_Tree_Account_ID) { - if (AD_Tree_Account_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Account_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Account_ID, Integer.valueOf(AD_Tree_Account_ID)); + if (AD_Tree_Account_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Account_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Account_ID, Integer.valueOf(AD_Tree_Account_ID)); } /** Get Account Tree. @@ -107,9 +108,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID) { - if (AD_Tree_Activity_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Activity_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Activity_ID, Integer.valueOf(AD_Tree_Activity_ID)); + if (AD_Tree_Activity_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Activity_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Activity_ID, Integer.valueOf(AD_Tree_Activity_ID)); } /** Get Activity Tree. @@ -129,9 +131,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID) { - if (AD_Tree_BPartner_ID < 1) - throw new IllegalArgumentException ("AD_Tree_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_BPartner_ID, Integer.valueOf(AD_Tree_BPartner_ID)); + if (AD_Tree_BPartner_ID < 1) + set_Value (COLUMNNAME_AD_Tree_BPartner_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_BPartner_ID, Integer.valueOf(AD_Tree_BPartner_ID)); } /** Get BPartner Tree. @@ -151,9 +154,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID) { - if (AD_Tree_Campaign_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Campaign_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Campaign_ID, Integer.valueOf(AD_Tree_Campaign_ID)); + if (AD_Tree_Campaign_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Campaign_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Campaign_ID, Integer.valueOf(AD_Tree_Campaign_ID)); } /** Get Campaign Tree. @@ -173,9 +177,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) { - if (AD_Tree_Org_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Org_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); + if (AD_Tree_Org_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Org_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); } /** Get Organization Tree. @@ -195,9 +200,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Product_ID (int AD_Tree_Product_ID) { - if (AD_Tree_Product_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Product_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Product_ID, Integer.valueOf(AD_Tree_Product_ID)); + if (AD_Tree_Product_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Product_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Product_ID, Integer.valueOf(AD_Tree_Product_ID)); } /** Get Product Tree. @@ -217,9 +223,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_Project_ID (int AD_Tree_Project_ID) { - if (AD_Tree_Project_ID < 1) - throw new IllegalArgumentException ("AD_Tree_Project_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_Project_ID, Integer.valueOf(AD_Tree_Project_ID)); + if (AD_Tree_Project_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Project_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Project_ID, Integer.valueOf(AD_Tree_Project_ID)); } /** Get Project Tree. @@ -239,9 +246,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID) { - if (AD_Tree_SalesRegion_ID < 1) - throw new IllegalArgumentException ("AD_Tree_SalesRegion_ID is mandatory."); - set_Value (COLUMNNAME_AD_Tree_SalesRegion_ID, Integer.valueOf(AD_Tree_SalesRegion_ID)); + if (AD_Tree_SalesRegion_ID < 1) + set_Value (COLUMNNAME_AD_Tree_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_SalesRegion_ID, Integer.valueOf(AD_Tree_SalesRegion_ID)); } /** Get Sales Region Tree. @@ -295,8 +303,6 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -322,9 +328,10 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent */ public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) { - if (PA_Hierarchy_ID < 1) - throw new IllegalArgumentException ("PA_Hierarchy_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, Integer.valueOf(PA_Hierarchy_ID)); + if (PA_Hierarchy_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, Integer.valueOf(PA_Hierarchy_ID)); } /** Get Reporting Hierarchy. diff --git a/base/src/org/compiere/model/X_PA_Measure.java b/base/src/org/compiere/model/X_PA_Measure.java index 00ea962d54..372d30ecb1 100644 --- a/base/src/org/compiere/model/X_PA_Measure.java +++ b/base/src/org/compiere/model/X_PA_Measure.java @@ -201,7 +201,7 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent */ public void setMeasureDataType (String MeasureDataType) { - if (MeasureDataType == null) throw new IllegalArgumentException ("MeasureDataType is mandatory"); + set_Value (COLUMNNAME_MeasureDataType, MeasureDataType); } @@ -235,7 +235,7 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent */ public void setMeasureType (String MeasureType) { - if (MeasureType == null) throw new IllegalArgumentException ("MeasureType is mandatory"); + set_Value (COLUMNNAME_MeasureType, MeasureType); } @@ -253,8 +253,6 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -397,9 +395,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent */ public void setPA_Measure_ID (int PA_Measure_ID) { - if (PA_Measure_ID < 1) - throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); + if (PA_Measure_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); } /** Get Measure. diff --git a/base/src/org/compiere/model/X_PA_MeasureCalc.java b/base/src/org/compiere/model/X_PA_MeasureCalc.java index aeefe45131..790d835dcb 100644 --- a/base/src/org/compiere/model/X_PA_MeasureCalc.java +++ b/base/src/org/compiere/model/X_PA_MeasureCalc.java @@ -107,9 +107,10 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setAD_Table_ID (int AD_Table_ID) { - if (AD_Table_ID < 1) - throw new IllegalArgumentException ("AD_Table_ID is mandatory."); - set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @@ -146,8 +147,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setDateColumn (String DateColumn) { - if (DateColumn == null) - throw new IllegalArgumentException ("DateColumn is mandatory."); set_Value (COLUMNNAME_DateColumn, DateColumn); } @@ -202,8 +201,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setKeyColumn (String KeyColumn) { - if (KeyColumn == null) - throw new IllegalArgumentException ("KeyColumn is mandatory."); set_Value (COLUMNNAME_KeyColumn, KeyColumn); } @@ -221,8 +218,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -248,8 +243,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setOrgColumn (String OrgColumn) { - if (OrgColumn == null) - throw new IllegalArgumentException ("OrgColumn is mandatory."); set_Value (COLUMNNAME_OrgColumn, OrgColumn); } @@ -267,9 +260,10 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) { - if (PA_MeasureCalc_ID < 1) - throw new IllegalArgumentException ("PA_MeasureCalc_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_MeasureCalc_ID, Integer.valueOf(PA_MeasureCalc_ID)); + if (PA_MeasureCalc_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_MeasureCalc_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_MeasureCalc_ID, Integer.valueOf(PA_MeasureCalc_ID)); } /** Get Measure Calculation. @@ -306,8 +300,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setSelectClause (String SelectClause) { - if (SelectClause == null) - throw new IllegalArgumentException ("SelectClause is mandatory."); set_Value (COLUMNNAME_SelectClause, SelectClause); } @@ -325,8 +317,6 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste */ public void setWhereClause (String WhereClause) { - if (WhereClause == null) - throw new IllegalArgumentException ("WhereClause is mandatory."); set_Value (COLUMNNAME_WhereClause, WhereClause); } diff --git a/base/src/org/compiere/model/X_PA_Ratio.java b/base/src/org/compiere/model/X_PA_Ratio.java index 8eaacea176..052f5a1eda 100644 --- a/base/src/org/compiere/model/X_PA_Ratio.java +++ b/base/src/org/compiere/model/X_PA_Ratio.java @@ -96,9 +96,10 @@ public class X_PA_Ratio extends PO implements I_PA_Ratio, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -152,8 +153,6 @@ public class X_PA_Ratio extends PO implements I_PA_Ratio, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -179,9 +178,10 @@ public class X_PA_Ratio extends PO implements I_PA_Ratio, I_Persistent */ public void setPA_Ratio_ID (int PA_Ratio_ID) { - if (PA_Ratio_ID < 1) - throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); + if (PA_Ratio_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); } /** Get Ratio. diff --git a/base/src/org/compiere/model/X_PA_RatioElement.java b/base/src/org/compiere/model/X_PA_RatioElement.java index d8f63f5a18..624704bf09 100644 --- a/base/src/org/compiere/model/X_PA_RatioElement.java +++ b/base/src/org/compiere/model/X_PA_RatioElement.java @@ -146,8 +146,6 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -204,9 +202,10 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis */ public void setPA_RatioElement_ID (int PA_RatioElement_ID) { - if (PA_RatioElement_ID < 1) - throw new IllegalArgumentException ("PA_RatioElement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_RatioElement_ID, Integer.valueOf(PA_RatioElement_ID)); + if (PA_RatioElement_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_RatioElement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_RatioElement_ID, Integer.valueOf(PA_RatioElement_ID)); } /** Get Ratio Element. @@ -242,9 +241,10 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis */ public void setPA_Ratio_ID (int PA_Ratio_ID) { - if (PA_Ratio_ID < 1) - throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); + if (PA_Ratio_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); } /** Get Ratio. @@ -327,7 +327,7 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis */ public void setRatioElementType (String RatioElementType) { - if (RatioElementType == null) throw new IllegalArgumentException ("RatioElementType is mandatory"); + set_Value (COLUMNNAME_RatioElementType, RatioElementType); } @@ -355,7 +355,7 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis */ public void setRatioOperand (String RatioOperand) { - if (RatioOperand == null) throw new IllegalArgumentException ("RatioOperand is mandatory"); + set_Value (COLUMNNAME_RatioOperand, RatioOperand); } diff --git a/base/src/org/compiere/model/X_PA_Report.java b/base/src/org/compiere/model/X_PA_Report.java index ed7dd689e8..3753b10b50 100644 --- a/base/src/org/compiere/model/X_PA_Report.java +++ b/base/src/org/compiere/model/X_PA_Report.java @@ -141,9 +141,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { - if (C_AcctSchema_ID < 1) - throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); - set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + if (C_AcctSchema_ID < 1) + set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @@ -179,9 +180,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent */ public void setC_Calendar_ID (int C_Calendar_ID) { - if (C_Calendar_ID < 1) - throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); - set_Value (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + if (C_Calendar_ID < 1) + set_Value (COLUMNNAME_C_Calendar_ID, null); + else + set_Value (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); } /** Get Calendar. @@ -303,8 +305,6 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -346,9 +346,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent */ public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) { - if (PA_ReportColumnSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); - set_Value (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + if (PA_ReportColumnSet_ID < 1) + set_Value (COLUMNNAME_PA_ReportColumnSet_ID, null); + else + set_Value (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); } /** Get Report Column Set. @@ -368,9 +369,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent */ public void setPA_Report_ID (int PA_Report_ID) { - if (PA_Report_ID < 1) - throw new IllegalArgumentException ("PA_Report_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_Report_ID, Integer.valueOf(PA_Report_ID)); + if (PA_Report_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_Report_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_Report_ID, Integer.valueOf(PA_Report_ID)); } /** Get Financial Report. @@ -404,9 +406,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent @param PA_ReportLineSet_ID Report Line Set */ public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) { - if (PA_ReportLineSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); - set_Value (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + if (PA_ReportLineSet_ID < 1) + set_Value (COLUMNNAME_PA_ReportLineSet_ID, null); + else + set_Value (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); } /** Get Report Line Set. diff --git a/base/src/org/compiere/model/X_PA_ReportColumn.java b/base/src/org/compiere/model/X_PA_ReportColumn.java index ef737c08be..5c7c7f2f72 100644 --- a/base/src/org/compiere/model/X_PA_ReportColumn.java +++ b/base/src/org/compiere/model/X_PA_ReportColumn.java @@ -432,7 +432,7 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis @param ColumnType Column Type */ public void setColumnType (String ColumnType) { - if (ColumnType == null) throw new IllegalArgumentException ("ColumnType is mandatory"); + set_Value (COLUMNNAME_ColumnType, ColumnType); } @@ -1074,8 +1074,6 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -1170,9 +1168,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis */ public void setPA_ReportColumn_ID (int PA_ReportColumn_ID) { - if (PA_ReportColumn_ID < 1) - throw new IllegalArgumentException ("PA_ReportColumn_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportColumn_ID, Integer.valueOf(PA_ReportColumn_ID)); + if (PA_ReportColumn_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportColumn_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportColumn_ID, Integer.valueOf(PA_ReportColumn_ID)); } /** Get Report Column. @@ -1208,9 +1207,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis */ public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) { - if (PA_ReportColumnSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + if (PA_ReportColumnSet_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); } /** Get Report Column Set. @@ -1242,7 +1242,7 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis */ public void setPostingType (String PostingType) { - if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + set_Value (COLUMNNAME_PostingType, PostingType); } diff --git a/base/src/org/compiere/model/X_PA_ReportColumnSet.java b/base/src/org/compiere/model/X_PA_ReportColumnSet.java index 84f00f307d..039046d62c 100644 --- a/base/src/org/compiere/model/X_PA_ReportColumnSet.java +++ b/base/src/org/compiere/model/X_PA_ReportColumnSet.java @@ -95,8 +95,6 @@ public class X_PA_ReportColumnSet extends PO implements I_PA_ReportColumnSet, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -122,9 +120,10 @@ public class X_PA_ReportColumnSet extends PO implements I_PA_ReportColumnSet, I_ */ public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) { - if (PA_ReportColumnSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + if (PA_ReportColumnSet_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); } /** Get Report Column Set. diff --git a/base/src/org/compiere/model/X_PA_ReportLine.java b/base/src/org/compiere/model/X_PA_ReportLine.java index 8e37bd00ce..d1dc9a55ef 100644 --- a/base/src/org/compiere/model/X_PA_ReportLine.java +++ b/base/src/org/compiere/model/X_PA_ReportLine.java @@ -240,7 +240,7 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent @param LineType Line Type */ public void setLineType (String LineType) { - if (LineType == null) throw new IllegalArgumentException ("LineType is mandatory"); + set_Value (COLUMNNAME_LineType, LineType); } @@ -257,8 +257,6 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -328,9 +326,10 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent @param PA_ReportLine_ID Report Line */ public void setPA_ReportLine_ID (int PA_ReportLine_ID) { - if (PA_ReportLine_ID < 1) - throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + if (PA_ReportLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); } /** Get Report Line. @@ -363,9 +362,10 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent @param PA_ReportLineSet_ID Report Line Set */ public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) { - if (PA_ReportLineSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + if (PA_ReportLineSet_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); } /** Get Report Line Set. diff --git a/base/src/org/compiere/model/X_PA_ReportLineSet.java b/base/src/org/compiere/model/X_PA_ReportLineSet.java index 8cb733aaf4..ed09d1b64f 100644 --- a/base/src/org/compiere/model/X_PA_ReportLineSet.java +++ b/base/src/org/compiere/model/X_PA_ReportLineSet.java @@ -95,8 +95,6 @@ public class X_PA_ReportLineSet extends PO implements I_PA_ReportLineSet, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -120,9 +118,10 @@ public class X_PA_ReportLineSet extends PO implements I_PA_ReportLineSet, I_Pers @param PA_ReportLineSet_ID Report Line Set */ public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) { - if (PA_ReportLineSet_ID < 1) - throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + if (PA_ReportLineSet_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); } /** Get Report Line Set. diff --git a/base/src/org/compiere/model/X_PA_ReportSource.java b/base/src/org/compiere/model/X_PA_ReportSource.java index cdea67468e..84fc75cfc3 100644 --- a/base/src/org/compiere/model/X_PA_ReportSource.java +++ b/base/src/org/compiere/model/X_PA_ReportSource.java @@ -421,7 +421,7 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis */ public void setElementType (String ElementType) { - if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); + set_Value (COLUMNNAME_ElementType, ElementType); } @@ -811,9 +811,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis @param PA_ReportLine_ID Report Line */ public void setPA_ReportLine_ID (int PA_ReportLine_ID) { - if (PA_ReportLine_ID < 1) - throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + if (PA_ReportLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); } /** Get Report Line. @@ -832,9 +833,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis */ public void setPA_ReportSource_ID (int PA_ReportSource_ID) { - if (PA_ReportSource_ID < 1) - throw new IllegalArgumentException ("PA_ReportSource_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportSource_ID, Integer.valueOf(PA_ReportSource_ID)); + if (PA_ReportSource_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportSource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportSource_ID, Integer.valueOf(PA_ReportSource_ID)); } /** Get Report Source. diff --git a/base/src/org/compiere/model/X_PA_SLA_Criteria.java b/base/src/org/compiere/model/X_PA_SLA_Criteria.java index c03b7e9c13..8de5b7ea0f 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Criteria.java +++ b/base/src/org/compiere/model/X_PA_SLA_Criteria.java @@ -154,8 +154,6 @@ public class X_PA_SLA_Criteria extends PO implements I_PA_SLA_Criteria, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -181,9 +179,10 @@ public class X_PA_SLA_Criteria extends PO implements I_PA_SLA_Criteria, I_Persis */ public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) { - if (PA_SLA_Criteria_ID < 1) - throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); + if (PA_SLA_Criteria_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_SLA_Criteria_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); } /** Get SLA Criteria. diff --git a/base/src/org/compiere/model/X_PA_SLA_Goal.java b/base/src/org/compiere/model/X_PA_SLA_Goal.java index 9506eb0751..8adb304863 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Goal.java +++ b/base/src/org/compiere/model/X_PA_SLA_Goal.java @@ -103,9 +103,10 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -176,8 +177,6 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setMeasureActual (BigDecimal MeasureActual) { - if (MeasureActual == null) - throw new IllegalArgumentException ("MeasureActual is mandatory."); set_Value (COLUMNNAME_MeasureActual, MeasureActual); } @@ -198,8 +197,6 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setMeasureTarget (BigDecimal MeasureTarget) { - if (MeasureTarget == null) - throw new IllegalArgumentException ("MeasureTarget is mandatory."); set_Value (COLUMNNAME_MeasureTarget, MeasureTarget); } @@ -220,8 +217,6 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -263,9 +258,10 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) { - if (PA_SLA_Criteria_ID < 1) - throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); - set_Value (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); + if (PA_SLA_Criteria_ID < 1) + set_Value (COLUMNNAME_PA_SLA_Criteria_ID, null); + else + set_Value (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); } /** Get SLA Criteria. @@ -285,9 +281,10 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent */ public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) { - if (PA_SLA_Goal_ID < 1) - throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); + if (PA_SLA_Goal_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); } /** Get SLA Goal. diff --git a/base/src/org/compiere/model/X_PA_SLA_Measure.java b/base/src/org/compiere/model/X_PA_SLA_Measure.java index 336ef3cf1d..4c47ca7792 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Measure.java +++ b/base/src/org/compiere/model/X_PA_SLA_Measure.java @@ -124,8 +124,6 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste */ public void setDateTrx (Timestamp DateTrx) { - if (DateTrx == null) - throw new IllegalArgumentException ("DateTrx is mandatory."); set_Value (COLUMNNAME_DateTrx, DateTrx); } @@ -168,8 +166,6 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste */ public void setMeasureActual (BigDecimal MeasureActual) { - if (MeasureActual == null) - throw new IllegalArgumentException ("MeasureActual is mandatory."); set_Value (COLUMNNAME_MeasureActual, MeasureActual); } @@ -206,9 +202,10 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste */ public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) { - if (PA_SLA_Goal_ID < 1) - throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); + if (PA_SLA_Goal_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); } /** Get SLA Goal. @@ -228,9 +225,10 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste */ public void setPA_SLA_Measure_ID (int PA_SLA_Measure_ID) { - if (PA_SLA_Measure_ID < 1) - throw new IllegalArgumentException ("PA_SLA_Measure_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_SLA_Measure_ID, Integer.valueOf(PA_SLA_Measure_ID)); + if (PA_SLA_Measure_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_SLA_Measure_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_SLA_Measure_ID, Integer.valueOf(PA_SLA_Measure_ID)); } /** Get SLA Measure. @@ -295,7 +293,7 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); diff --git a/base/src/org/compiere/model/X_RV_BPartner.java b/base/src/org/compiere/model/X_RV_BPartner.java index d3064768c6..bec845d25f 100644 --- a/base/src/org/compiere/model/X_RV_BPartner.java +++ b/base/src/org/compiere/model/X_RV_BPartner.java @@ -353,9 +353,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -391,9 +392,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -429,9 +431,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. @@ -467,9 +470,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setC_Country_ID (int C_Country_ID) { - if (C_Country_ID < 1) - throw new IllegalArgumentException ("C_Country_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + if (C_Country_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Country_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); } /** Get Country. @@ -657,8 +661,6 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setContactName (String ContactName) { - if (ContactName == null) - throw new IllegalArgumentException ("ContactName is mandatory."); set_ValueNoCheck (COLUMNNAME_ContactName, ContactName); } @@ -676,8 +678,6 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setCountryName (String CountryName) { - if (CountryName == null) - throw new IllegalArgumentException ("CountryName is mandatory."); set_ValueNoCheck (COLUMNNAME_CountryName, CountryName); } @@ -1452,8 +1452,6 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_ValueNoCheck (COLUMNNAME_Name, Name); } @@ -1498,7 +1496,7 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setNotificationType (String NotificationType) { - if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory"); + set_ValueNoCheck (COLUMNNAME_NotificationType, NotificationType); } @@ -2120,8 +2118,6 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_ValueNoCheck (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_RV_WarehousePrice.java b/base/src/org/compiere/model/X_RV_WarehousePrice.java index 133e7c799e..5bb4d2656d 100644 --- a/base/src/org/compiere/model/X_RV_WarehousePrice.java +++ b/base/src/org/compiere/model/X_RV_WarehousePrice.java @@ -101,9 +101,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -183,9 +184,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) { - if (M_PriceList_Version_ID < 1) - throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + if (M_PriceList_Version_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); } /** Get Price List Version. @@ -221,9 +223,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -259,9 +262,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -281,8 +285,6 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_ValueNoCheck (COLUMNNAME_Name, Name); } @@ -491,8 +493,6 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_ValueNoCheck (COLUMNNAME_Value, Value); } @@ -510,8 +510,6 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe */ public void setWarehouseName (String WarehouseName) { - if (WarehouseName == null) - throw new IllegalArgumentException ("WarehouseName is mandatory."); set_ValueNoCheck (COLUMNNAME_WarehouseName, WarehouseName); } diff --git a/base/src/org/compiere/model/X_R_Category.java b/base/src/org/compiere/model/X_R_Category.java index 8b3bdb46e3..671d5771eb 100644 --- a/base/src/org/compiere/model/X_R_Category.java +++ b/base/src/org/compiere/model/X_R_Category.java @@ -152,8 +152,6 @@ public class X_R_Category extends PO implements I_R_Category, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -179,9 +177,10 @@ public class X_R_Category extends PO implements I_R_Category, I_Persistent */ public void setR_Category_ID (int R_Category_ID) { - if (R_Category_ID < 1) - throw new IllegalArgumentException ("R_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + if (R_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); } /** Get Category. diff --git a/base/src/org/compiere/model/X_R_CategoryUpdates.java b/base/src/org/compiere/model/X_R_CategoryUpdates.java index 2cf8fe178b..62c1a72e47 100644 --- a/base/src/org/compiere/model/X_R_CategoryUpdates.java +++ b/base/src/org/compiere/model/X_R_CategoryUpdates.java @@ -95,9 +95,10 @@ public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -157,9 +158,10 @@ public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Pe */ public void setR_Category_ID (int R_Category_ID) { - if (R_Category_ID < 1) - throw new IllegalArgumentException ("R_Category_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + if (R_Category_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); } /** Get Category. diff --git a/base/src/org/compiere/model/X_R_ContactInterest.java b/base/src/org/compiere/model/X_R_ContactInterest.java index 50c1b46bd4..65f9bd01ff 100644 --- a/base/src/org/compiere/model/X_R_ContactInterest.java +++ b/base/src/org/compiere/model/X_R_ContactInterest.java @@ -97,9 +97,10 @@ public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Pe */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -160,9 +161,10 @@ public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Pe */ public void setR_InterestArea_ID (int R_InterestArea_ID) { - if (R_InterestArea_ID < 1) - throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + if (R_InterestArea_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); } /** Get Interest Area. diff --git a/base/src/org/compiere/model/X_R_Group.java b/base/src/org/compiere/model/X_R_Group.java index 21029e65d9..374caa5242 100644 --- a/base/src/org/compiere/model/X_R_Group.java +++ b/base/src/org/compiere/model/X_R_Group.java @@ -152,8 +152,6 @@ public class X_R_Group extends PO implements I_R_Group, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -218,9 +216,10 @@ public class X_R_Group extends PO implements I_R_Group, I_Persistent */ public void setR_Group_ID (int R_Group_ID) { - if (R_Group_ID < 1) - throw new IllegalArgumentException ("R_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + if (R_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); } /** Get Group. diff --git a/base/src/org/compiere/model/X_R_GroupUpdates.java b/base/src/org/compiere/model/X_R_GroupUpdates.java index 4f5225aa4b..3427035c67 100644 --- a/base/src/org/compiere/model/X_R_GroupUpdates.java +++ b/base/src/org/compiere/model/X_R_GroupUpdates.java @@ -95,9 +95,10 @@ public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persiste */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -157,9 +158,10 @@ public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persiste */ public void setR_Group_ID (int R_Group_ID) { - if (R_Group_ID < 1) - throw new IllegalArgumentException ("R_Group_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + if (R_Group_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); } /** Get Group. diff --git a/base/src/org/compiere/model/X_R_InterestArea.java b/base/src/org/compiere/model/X_R_InterestArea.java index 8e24cc0928..b1a98e7d22 100644 --- a/base/src/org/compiere/model/X_R_InterestArea.java +++ b/base/src/org/compiere/model/X_R_InterestArea.java @@ -121,8 +121,6 @@ public class X_R_InterestArea extends PO implements I_R_InterestArea, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -148,9 +146,10 @@ public class X_R_InterestArea extends PO implements I_R_InterestArea, I_Persiste */ public void setR_InterestArea_ID (int R_InterestArea_ID) { - if (R_InterestArea_ID < 1) - throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + if (R_InterestArea_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); } /** Get Interest Area. @@ -170,8 +169,6 @@ public class X_R_InterestArea extends PO implements I_R_InterestArea, I_Persiste */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_R_IssueKnown.java b/base/src/org/compiere/model/X_R_IssueKnown.java index fa4266fe8d..8f529520ef 100644 --- a/base/src/org/compiere/model/X_R_IssueKnown.java +++ b/base/src/org/compiere/model/X_R_IssueKnown.java @@ -114,8 +114,6 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent */ public void setIssueSummary (String IssueSummary) { - if (IssueSummary == null) - throw new IllegalArgumentException ("IssueSummary is mandatory."); set_Value (COLUMNNAME_IssueSummary, IssueSummary); } @@ -191,8 +189,6 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent */ public void setReleaseNo (String ReleaseNo) { - if (ReleaseNo == null) - throw new IllegalArgumentException ("ReleaseNo is mandatory."); set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); } @@ -218,9 +214,10 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent */ public void setR_IssueKnown_ID (int R_IssueKnown_ID) { - if (R_IssueKnown_ID < 1) - throw new IllegalArgumentException ("R_IssueKnown_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueKnown_ID, Integer.valueOf(R_IssueKnown_ID)); + if (R_IssueKnown_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueKnown_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueKnown_ID, Integer.valueOf(R_IssueKnown_ID)); } /** Get Known Issue. diff --git a/base/src/org/compiere/model/X_R_IssueProject.java b/base/src/org/compiere/model/X_R_IssueProject.java index 8b9d4f822c..1287ffa274 100644 --- a/base/src/org/compiere/model/X_R_IssueProject.java +++ b/base/src/org/compiere/model/X_R_IssueProject.java @@ -175,8 +175,6 @@ public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -219,9 +217,10 @@ public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persiste */ public void setR_IssueProject_ID (int R_IssueProject_ID) { - if (R_IssueProject_ID < 1) - throw new IllegalArgumentException ("R_IssueProject_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueProject_ID, Integer.valueOf(R_IssueProject_ID)); + if (R_IssueProject_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueProject_ID, Integer.valueOf(R_IssueProject_ID)); } /** Get Issue Project. @@ -266,7 +265,7 @@ public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persiste */ public void setSystemStatus (String SystemStatus) { - if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); + set_Value (COLUMNNAME_SystemStatus, SystemStatus); } diff --git a/base/src/org/compiere/model/X_R_IssueRecommendation.java b/base/src/org/compiere/model/X_R_IssueRecommendation.java index f082f9ce0b..f2bd02e5bd 100644 --- a/base/src/org/compiere/model/X_R_IssueRecommendation.java +++ b/base/src/org/compiere/model/X_R_IssueRecommendation.java @@ -111,8 +111,6 @@ public class X_R_IssueRecommendation extends PO implements I_R_IssueRecommendati */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -138,9 +136,10 @@ public class X_R_IssueRecommendation extends PO implements I_R_IssueRecommendati */ public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID) { - if (R_IssueRecommendation_ID < 1) - throw new IllegalArgumentException ("R_IssueRecommendation_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueRecommendation_ID, Integer.valueOf(R_IssueRecommendation_ID)); + if (R_IssueRecommendation_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueRecommendation_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueRecommendation_ID, Integer.valueOf(R_IssueRecommendation_ID)); } /** Get Issue Recommendation. diff --git a/base/src/org/compiere/model/X_R_IssueStatus.java b/base/src/org/compiere/model/X_R_IssueStatus.java index 395c9acd05..467e0fd011 100644 --- a/base/src/org/compiere/model/X_R_IssueStatus.java +++ b/base/src/org/compiere/model/X_R_IssueStatus.java @@ -94,8 +94,6 @@ public class X_R_IssueStatus extends PO implements I_R_IssueStatus, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -121,9 +119,10 @@ public class X_R_IssueStatus extends PO implements I_R_IssueStatus, I_Persistent */ public void setR_IssueStatus_ID (int R_IssueStatus_ID) { - if (R_IssueStatus_ID < 1) - throw new IllegalArgumentException ("R_IssueStatus_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, Integer.valueOf(R_IssueStatus_ID)); + if (R_IssueStatus_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, Integer.valueOf(R_IssueStatus_ID)); } /** Get Issue Status. diff --git a/base/src/org/compiere/model/X_R_IssueSystem.java b/base/src/org/compiere/model/X_R_IssueSystem.java index db8d84cd9d..d74665e9aa 100644 --- a/base/src/org/compiere/model/X_R_IssueSystem.java +++ b/base/src/org/compiere/model/X_R_IssueSystem.java @@ -119,8 +119,6 @@ public class X_R_IssueSystem extends PO implements I_R_IssueSystem, I_Persistent */ public void setDBAddress (String DBAddress) { - if (DBAddress == null) - throw new IllegalArgumentException ("DBAddress is mandatory."); set_ValueNoCheck (COLUMNNAME_DBAddress, DBAddress); } @@ -163,9 +161,10 @@ public class X_R_IssueSystem extends PO implements I_R_IssueSystem, I_Persistent */ public void setR_IssueSystem_ID (int R_IssueSystem_ID) { - if (R_IssueSystem_ID < 1) - throw new IllegalArgumentException ("R_IssueSystem_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueSystem_ID, Integer.valueOf(R_IssueSystem_ID)); + if (R_IssueSystem_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueSystem_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueSystem_ID, Integer.valueOf(R_IssueSystem_ID)); } /** Get Issue System. @@ -210,7 +209,7 @@ public class X_R_IssueSystem extends PO implements I_R_IssueSystem, I_Persistent */ public void setSystemStatus (String SystemStatus) { - if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); + set_Value (COLUMNNAME_SystemStatus, SystemStatus); } diff --git a/base/src/org/compiere/model/X_R_IssueUser.java b/base/src/org/compiere/model/X_R_IssueUser.java index 22d360cc0f..36f891be94 100644 --- a/base/src/org/compiere/model/X_R_IssueUser.java +++ b/base/src/org/compiere/model/X_R_IssueUser.java @@ -135,9 +135,10 @@ public class X_R_IssueUser extends PO implements I_R_IssueUser, I_Persistent */ public void setR_IssueUser_ID (int R_IssueUser_ID) { - if (R_IssueUser_ID < 1) - throw new IllegalArgumentException ("R_IssueUser_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_IssueUser_ID, Integer.valueOf(R_IssueUser_ID)); + if (R_IssueUser_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_IssueUser_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_IssueUser_ID, Integer.valueOf(R_IssueUser_ID)); } /** Get IssueUser. @@ -157,8 +158,6 @@ public class X_R_IssueUser extends PO implements I_R_IssueUser, I_Persistent */ public void setUserName (String UserName) { - if (UserName == null) - throw new IllegalArgumentException ("UserName is mandatory."); set_ValueNoCheck (COLUMNNAME_UserName, UserName); } diff --git a/base/src/org/compiere/model/X_R_MailText.java b/base/src/org/compiere/model/X_R_MailText.java index ffb8aae15c..ba1c414b19 100644 --- a/base/src/org/compiere/model/X_R_MailText.java +++ b/base/src/org/compiere/model/X_R_MailText.java @@ -120,8 +120,6 @@ public class X_R_MailText extends PO implements I_R_MailText, I_Persistent */ public void setMailText (String MailText) { - if (MailText == null) - throw new IllegalArgumentException ("MailText is mandatory."); set_Value (COLUMNNAME_MailText, MailText); } @@ -173,8 +171,6 @@ public class X_R_MailText extends PO implements I_R_MailText, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -200,9 +196,10 @@ public class X_R_MailText extends PO implements I_R_MailText, I_Persistent */ public void setR_MailText_ID (int R_MailText_ID) { - if (R_MailText_ID < 1) - throw new IllegalArgumentException ("R_MailText_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + if (R_MailText_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_MailText_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); } /** Get Mail Template. diff --git a/base/src/org/compiere/model/X_R_Request.java b/base/src/org/compiere/model/X_R_Request.java index 54d88337f9..cccf30b21d 100644 --- a/base/src/org/compiere/model/X_R_Request.java +++ b/base/src/org/compiere/model/X_R_Request.java @@ -153,7 +153,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_Value (COLUMNNAME_AD_Role_ID, null); else set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -460,7 +460,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setConfidentialType (String ConfidentialType) { - if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); } @@ -488,7 +488,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setConfidentialTypeEntry (String ConfidentialTypeEntry) { - if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory"); + set_Value (COLUMNNAME_ConfidentialTypeEntry, ConfidentialTypeEntry); } @@ -708,8 +708,6 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -743,7 +741,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setDueType (String DueType) { - if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory"); + set_Value (COLUMNNAME_DueType, DueType); } @@ -1105,7 +1103,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setPriority (String Priority) { - if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory"); + set_Value (COLUMNNAME_Priority, Priority); } @@ -1276,7 +1274,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 1) + if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); @@ -1299,8 +1297,6 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setRequestAmt (BigDecimal RequestAmt) { - if (RequestAmt == null) - throw new IllegalArgumentException ("RequestAmt is mandatory."); set_Value (COLUMNNAME_RequestAmt, RequestAmt); } @@ -1416,9 +1412,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setR_Request_ID (int R_Request_ID) { - if (R_Request_ID < 1) - throw new IllegalArgumentException ("R_Request_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + if (R_Request_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Request_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); } /** Get Request. @@ -1477,9 +1474,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setR_RequestType_ID (int R_RequestType_ID) { - if (R_RequestType_ID < 1) - throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); - set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + if (R_RequestType_ID < 1) + set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); } /** Get Request Type. @@ -1673,8 +1671,6 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent */ public void setSummary (String Summary) { - if (Summary == null) - throw new IllegalArgumentException ("Summary is mandatory."); set_Value (COLUMNNAME_Summary, Summary); } diff --git a/base/src/org/compiere/model/X_R_RequestAction.java b/base/src/org/compiere/model/X_R_RequestAction.java index 0b02b777f5..c64accbaa9 100644 --- a/base/src/org/compiere/model/X_R_RequestAction.java +++ b/base/src/org/compiere/model/X_R_RequestAction.java @@ -136,7 +136,7 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 1) + if (AD_Role_ID < 0) set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); @@ -955,9 +955,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis */ public void setR_RequestAction_ID (int R_RequestAction_ID) { - if (R_RequestAction_ID < 1) - throw new IllegalArgumentException ("R_RequestAction_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestAction_ID, Integer.valueOf(R_RequestAction_ID)); + if (R_RequestAction_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestAction_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestAction_ID, Integer.valueOf(R_RequestAction_ID)); } /** Get Request History. @@ -993,9 +994,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis */ public void setR_Request_ID (int R_Request_ID) { - if (R_Request_ID < 1) - throw new IllegalArgumentException ("R_Request_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + if (R_Request_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Request_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); } /** Get Request. diff --git a/base/src/org/compiere/model/X_R_RequestProcessor.java b/base/src/org/compiere/model/X_R_RequestProcessor.java index e0141fad48..cbf5d4c1ee 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor.java @@ -173,7 +173,7 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ */ public void setFrequencyType (String FrequencyType) { - if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); + set_Value (COLUMNNAME_FrequencyType, FrequencyType); } @@ -231,8 +231,6 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -339,9 +337,10 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ */ public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) { - if (R_RequestProcessor_ID < 1) - throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + if (R_RequestProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); } /** Get Request Processor. @@ -400,9 +399,10 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ */ public void setSupervisor_ID (int Supervisor_ID) { - if (Supervisor_ID < 1) - throw new IllegalArgumentException ("Supervisor_ID is mandatory."); - set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. diff --git a/base/src/org/compiere/model/X_R_RequestProcessorLog.java b/base/src/org/compiere/model/X_R_RequestProcessorLog.java index 4677eae797..d711bb3da1 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessorLog.java +++ b/base/src/org/compiere/model/X_R_RequestProcessorLog.java @@ -170,9 +170,10 @@ public class X_R_RequestProcessorLog extends PO implements I_R_RequestProcessorL */ public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) { - if (R_RequestProcessor_ID < 1) - throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + if (R_RequestProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); } /** Get Request Processor. @@ -192,9 +193,10 @@ public class X_R_RequestProcessorLog extends PO implements I_R_RequestProcessorL */ public void setR_RequestProcessorLog_ID (int R_RequestProcessorLog_ID) { - if (R_RequestProcessorLog_ID < 1) - throw new IllegalArgumentException ("R_RequestProcessorLog_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestProcessorLog_ID, Integer.valueOf(R_RequestProcessorLog_ID)); + if (R_RequestProcessorLog_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestProcessorLog_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestProcessorLog_ID, Integer.valueOf(R_RequestProcessorLog_ID)); } /** Get Request Processor Log. diff --git a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java index 946c33c63e..fa59efc0b7 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java @@ -97,9 +97,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -152,9 +153,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess */ public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) { - if (R_RequestProcessor_ID < 1) - throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + if (R_RequestProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); } /** Get Request Processor. @@ -174,9 +176,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess */ public void setR_RequestProcessor_Route_ID (int R_RequestProcessor_Route_ID) { - if (R_RequestProcessor_Route_ID < 1) - throw new IllegalArgumentException ("R_RequestProcessor_Route_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_Route_ID, Integer.valueOf(R_RequestProcessor_Route_ID)); + if (R_RequestProcessor_Route_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_Route_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_Route_ID, Integer.valueOf(R_RequestProcessor_Route_ID)); } /** Get Request Routing. diff --git a/base/src/org/compiere/model/X_R_RequestType.java b/base/src/org/compiere/model/X_R_RequestType.java index 41aa501d6b..8a42c6c5b1 100644 --- a/base/src/org/compiere/model/X_R_RequestType.java +++ b/base/src/org/compiere/model/X_R_RequestType.java @@ -124,7 +124,7 @@ public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent */ public void setConfidentialType (String ConfidentialType) { - if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); } @@ -371,8 +371,6 @@ public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -398,9 +396,10 @@ public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent */ public void setR_RequestType_ID (int R_RequestType_ID) { - if (R_RequestType_ID < 1) - throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + if (R_RequestType_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); } /** Get Request Type. @@ -436,9 +435,10 @@ public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent */ public void setR_StatusCategory_ID (int R_StatusCategory_ID) { - if (R_StatusCategory_ID < 1) - throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); - set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + if (R_StatusCategory_ID < 1) + set_Value (COLUMNNAME_R_StatusCategory_ID, null); + else + set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); } /** Get Status Category. diff --git a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java index a93bf408e6..b687384680 100644 --- a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java @@ -95,9 +95,10 @@ public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -157,9 +158,10 @@ public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates */ public void setR_RequestType_ID (int R_RequestType_ID) { - if (R_RequestType_ID < 1) - throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + if (R_RequestType_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); } /** Get Request Type. diff --git a/base/src/org/compiere/model/X_R_RequestUpdate.java b/base/src/org/compiere/model/X_R_RequestUpdate.java index d1dd1d7d22..d035ea213a 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdate.java +++ b/base/src/org/compiere/model/X_R_RequestUpdate.java @@ -93,7 +93,7 @@ public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persis */ public void setConfidentialTypeEntry (String ConfidentialTypeEntry) { - if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory"); + set_Value (COLUMNNAME_ConfidentialTypeEntry, ConfidentialTypeEntry); } @@ -224,9 +224,10 @@ public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persis */ public void setR_Request_ID (int R_Request_ID) { - if (R_Request_ID < 1) - throw new IllegalArgumentException ("R_Request_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + if (R_Request_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Request_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); } /** Get Request. @@ -246,9 +247,10 @@ public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persis */ public void setR_RequestUpdate_ID (int R_RequestUpdate_ID) { - if (R_RequestUpdate_ID < 1) - throw new IllegalArgumentException ("R_RequestUpdate_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_RequestUpdate_ID, Integer.valueOf(R_RequestUpdate_ID)); + if (R_RequestUpdate_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_RequestUpdate_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestUpdate_ID, Integer.valueOf(R_RequestUpdate_ID)); } /** Get Request Update. diff --git a/base/src/org/compiere/model/X_R_RequestUpdates.java b/base/src/org/compiere/model/X_R_RequestUpdates.java index 485a572b16..f911d12e83 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestUpdates.java @@ -95,9 +95,10 @@ public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Pers */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -157,9 +158,10 @@ public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Pers */ public void setR_Request_ID (int R_Request_ID) { - if (R_Request_ID < 1) - throw new IllegalArgumentException ("R_Request_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + if (R_Request_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Request_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); } /** Get Request. diff --git a/base/src/org/compiere/model/X_R_Resolution.java b/base/src/org/compiere/model/X_R_Resolution.java index 4c181f8b64..8fb5d457be 100644 --- a/base/src/org/compiere/model/X_R_Resolution.java +++ b/base/src/org/compiere/model/X_R_Resolution.java @@ -111,8 +111,6 @@ public class X_R_Resolution extends PO implements I_R_Resolution, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -138,9 +136,10 @@ public class X_R_Resolution extends PO implements I_R_Resolution, I_Persistent */ public void setR_Resolution_ID (int R_Resolution_ID) { - if (R_Resolution_ID < 1) - throw new IllegalArgumentException ("R_Resolution_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); + if (R_Resolution_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); } /** Get Resolution. diff --git a/base/src/org/compiere/model/X_R_StandardResponse.java b/base/src/org/compiere/model/X_R_StandardResponse.java index 6d923824e4..97e3552dc0 100644 --- a/base/src/org/compiere/model/X_R_StandardResponse.java +++ b/base/src/org/compiere/model/X_R_StandardResponse.java @@ -78,8 +78,6 @@ public class X_R_StandardResponse extends PO implements I_R_StandardResponse, I_ */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -105,8 +103,6 @@ public class X_R_StandardResponse extends PO implements I_R_StandardResponse, I_ */ public void setResponseText (String ResponseText) { - if (ResponseText == null) - throw new IllegalArgumentException ("ResponseText is mandatory."); set_Value (COLUMNNAME_ResponseText, ResponseText); } @@ -124,9 +120,10 @@ public class X_R_StandardResponse extends PO implements I_R_StandardResponse, I_ */ public void setR_StandardResponse_ID (int R_StandardResponse_ID) { - if (R_StandardResponse_ID < 1) - throw new IllegalArgumentException ("R_StandardResponse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); + if (R_StandardResponse_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); } /** Get Standard Response. diff --git a/base/src/org/compiere/model/X_R_Status.java b/base/src/org/compiere/model/X_R_Status.java index 0c91935239..598239a7e9 100644 --- a/base/src/org/compiere/model/X_R_Status.java +++ b/base/src/org/compiere/model/X_R_Status.java @@ -243,8 +243,6 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -301,9 +299,10 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent */ public void setR_StatusCategory_ID (int R_StatusCategory_ID) { - if (R_StatusCategory_ID < 1) - throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); - set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + if (R_StatusCategory_ID < 1) + set_Value (COLUMNNAME_R_StatusCategory_ID, null); + else + set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); } /** Get Status Category. @@ -323,9 +322,10 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent */ public void setR_Status_ID (int R_Status_ID) { - if (R_Status_ID < 1) - throw new IllegalArgumentException ("R_Status_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); + if (R_Status_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_Status_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); } /** Get Status. @@ -416,8 +416,6 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_R_StatusCategory.java b/base/src/org/compiere/model/X_R_StatusCategory.java index 5207c56e44..8386a10114 100644 --- a/base/src/org/compiere/model/X_R_StatusCategory.java +++ b/base/src/org/compiere/model/X_R_StatusCategory.java @@ -136,8 +136,6 @@ public class X_R_StatusCategory extends PO implements I_R_StatusCategory, I_Pers */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -163,9 +161,10 @@ public class X_R_StatusCategory extends PO implements I_R_StatusCategory, I_Pers */ public void setR_StatusCategory_ID (int R_StatusCategory_ID) { - if (R_StatusCategory_ID < 1) - throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + if (R_StatusCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_R_StatusCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); } /** Get Status Category. diff --git a/base/src/org/compiere/model/X_S_ExpenseType.java b/base/src/org/compiere/model/X_S_ExpenseType.java index bdf0f72bf0..d3f6f156a0 100644 --- a/base/src/org/compiere/model/X_S_ExpenseType.java +++ b/base/src/org/compiere/model/X_S_ExpenseType.java @@ -100,9 +100,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -138,9 +139,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -217,9 +219,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. @@ -239,8 +242,6 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -266,9 +267,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setS_ExpenseType_ID (int S_ExpenseType_ID) { - if (S_ExpenseType_ID < 1) - throw new IllegalArgumentException ("S_ExpenseType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); + if (S_ExpenseType_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); } /** Get Expense Type. @@ -288,8 +290,6 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_S_Resource.java b/base/src/org/compiere/model/X_S_Resource.java index 8eec496be4..67ec30ecb9 100644 --- a/base/src/org/compiere/model/X_S_Resource.java +++ b/base/src/org/compiere/model/X_S_Resource.java @@ -264,9 +264,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -286,8 +287,6 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -311,8 +310,6 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent @param PercentUtilization % Utilization */ public void setPercentUtilization (BigDecimal PercentUtilization) { - if (PercentUtilization == null) - throw new IllegalArgumentException ("PercentUtilization is mandatory."); set_Value (COLUMNNAME_PercentUtilization, PercentUtilization); } @@ -369,9 +366,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent */ public void setS_Resource_ID (int S_Resource_ID) { - if (S_Resource_ID < 1) - throw new IllegalArgumentException ("S_Resource_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + if (S_Resource_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); } /** Get Resource. @@ -405,9 +403,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent @param S_ResourceType_ID Resource Type */ public void setS_ResourceType_ID (int S_ResourceType_ID) { - if (S_ResourceType_ID < 1) - throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); - set_Value (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); + if (S_ResourceType_ID < 1) + set_Value (COLUMNNAME_S_ResourceType_ID, null); + else + set_Value (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); } /** Get Resource Type. @@ -426,8 +425,6 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_S_ResourceAssignment.java b/base/src/org/compiere/model/X_S_ResourceAssignment.java index a4f6827ab2..0888cfb66f 100644 --- a/base/src/org/compiere/model/X_S_ResourceAssignment.java +++ b/base/src/org/compiere/model/X_S_ResourceAssignment.java @@ -85,8 +85,6 @@ public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment */ public void setAssignDateFrom (Timestamp AssignDateFrom) { - if (AssignDateFrom == null) - throw new IllegalArgumentException ("AssignDateFrom is mandatory."); set_ValueNoCheck (COLUMNNAME_AssignDateFrom, AssignDateFrom); } @@ -162,8 +160,6 @@ public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -201,9 +197,10 @@ public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment */ public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) { - if (S_ResourceAssignment_ID < 1) - throw new IllegalArgumentException ("S_ResourceAssignment_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + if (S_ResourceAssignment_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); } /** Get Resource Assignment. @@ -239,9 +236,10 @@ public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment */ public void setS_Resource_ID (int S_Resource_ID) { - if (S_Resource_ID < 1) - throw new IllegalArgumentException ("S_Resource_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + if (S_Resource_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); } /** Get Resource. diff --git a/base/src/org/compiere/model/X_S_ResourceType.java b/base/src/org/compiere/model/X_S_ResourceType.java index 8a8bc3aeac..795149dd59 100644 --- a/base/src/org/compiere/model/X_S_ResourceType.java +++ b/base/src/org/compiere/model/X_S_ResourceType.java @@ -158,9 +158,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -196,9 +197,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -323,9 +325,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. @@ -345,8 +348,6 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -538,9 +539,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste @param S_ResourceType_ID Resource Type */ public void setS_ResourceType_ID (int S_ResourceType_ID) { - if (S_ResourceType_ID < 1) - throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); + if (S_ResourceType_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_ResourceType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); } /** Get Resource Type. @@ -593,8 +595,6 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste */ public void setValue (String Value) { - if (Value == null) - throw new IllegalArgumentException ("Value is mandatory."); set_Value (COLUMNNAME_Value, Value); } diff --git a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java index fa2f37ece1..9e692e9c10 100644 --- a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java +++ b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java @@ -81,8 +81,6 @@ public class X_S_ResourceUnAvailable extends PO implements I_S_ResourceUnAvailab */ public void setDateFrom (Timestamp DateFrom) { - if (DateFrom == null) - throw new IllegalArgumentException ("DateFrom is mandatory."); set_Value (COLUMNNAME_DateFrom, DateFrom); } @@ -150,9 +148,10 @@ public class X_S_ResourceUnAvailable extends PO implements I_S_ResourceUnAvailab */ public void setS_Resource_ID (int S_Resource_ID) { - if (S_Resource_ID < 1) - throw new IllegalArgumentException ("S_Resource_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + if (S_Resource_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); } /** Get Resource. @@ -178,9 +177,10 @@ public class X_S_ResourceUnAvailable extends PO implements I_S_ResourceUnAvailab @param S_ResourceUnAvailable_ID Resource Unavailability */ public void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID) { - if (S_ResourceUnAvailable_ID < 1) - throw new IllegalArgumentException ("S_ResourceUnAvailable_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_ResourceUnAvailable_ID, Integer.valueOf(S_ResourceUnAvailable_ID)); + if (S_ResourceUnAvailable_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_ResourceUnAvailable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ResourceUnAvailable_ID, Integer.valueOf(S_ResourceUnAvailable_ID)); } /** Get Resource Unavailability. diff --git a/base/src/org/compiere/model/X_S_TimeExpense.java b/base/src/org/compiere/model/X_S_TimeExpense.java index e710100fbc..cb3b304f16 100644 --- a/base/src/org/compiere/model/X_S_TimeExpense.java +++ b/base/src/org/compiere/model/X_S_TimeExpense.java @@ -113,9 +113,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -135,8 +136,6 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setDateReport (Timestamp DateReport) { - if (DateReport == null) - throw new IllegalArgumentException ("DateReport is mandatory."); set_Value (COLUMNNAME_DateReport, DateReport); } @@ -201,7 +200,7 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setDocAction (String DocAction) { - if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + set_Value (COLUMNNAME_DocAction, DocAction); } @@ -245,7 +244,7 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setDocStatus (String DocStatus) { - if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + set_Value (COLUMNNAME_DocStatus, DocStatus); } @@ -263,8 +262,6 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setDocumentNo (String DocumentNo) { - if (DocumentNo == null) - throw new IllegalArgumentException ("DocumentNo is mandatory."); set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @@ -330,9 +327,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -368,9 +366,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -435,9 +434,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent */ public void setS_TimeExpense_ID (int S_TimeExpense_ID) { - if (S_TimeExpense_ID < 1) - throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); + if (S_TimeExpense_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); } /** Get Expense Report. diff --git a/base/src/org/compiere/model/X_S_TimeExpenseLine.java b/base/src/org/compiere/model/X_S_TimeExpenseLine.java index 9f5ea970ea..f42c202edd 100644 --- a/base/src/org/compiere/model/X_S_TimeExpenseLine.java +++ b/base/src/org/compiere/model/X_S_TimeExpenseLine.java @@ -499,8 +499,6 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe */ public void setDateExpense (Timestamp DateExpense) { - if (DateExpense == null) - throw new IllegalArgumentException ("DateExpense is mandatory."); set_Value (COLUMNNAME_DateExpense, DateExpense); } @@ -870,9 +868,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe */ public void setS_TimeExpense_ID (int S_TimeExpense_ID) { - if (S_TimeExpense_ID < 1) - throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); + if (S_TimeExpense_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); } /** Get Expense Report. @@ -892,9 +891,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe */ public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) { - if (S_TimeExpenseLine_ID < 1) - throw new IllegalArgumentException ("S_TimeExpenseLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, Integer.valueOf(S_TimeExpenseLine_ID)); + if (S_TimeExpenseLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, Integer.valueOf(S_TimeExpenseLine_ID)); } /** Get Expense Line. diff --git a/base/src/org/compiere/model/X_S_TimeType.java b/base/src/org/compiere/model/X_S_TimeType.java index 4ab79a580b..f9343f60f7 100644 --- a/base/src/org/compiere/model/X_S_TimeType.java +++ b/base/src/org/compiere/model/X_S_TimeType.java @@ -111,8 +111,6 @@ public class X_S_TimeType extends PO implements I_S_TimeType, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -138,9 +136,10 @@ public class X_S_TimeType extends PO implements I_S_TimeType, I_Persistent */ public void setS_TimeType_ID (int S_TimeType_ID) { - if (S_TimeType_ID < 1) - throw new IllegalArgumentException ("S_TimeType_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_TimeType_ID, Integer.valueOf(S_TimeType_ID)); + if (S_TimeType_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_TimeType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_TimeType_ID, Integer.valueOf(S_TimeType_ID)); } /** Get Time Type. diff --git a/base/src/org/compiere/model/X_S_Training.java b/base/src/org/compiere/model/X_S_Training.java index c6a31c5113..fed6e9df0a 100644 --- a/base/src/org/compiere/model/X_S_Training.java +++ b/base/src/org/compiere/model/X_S_Training.java @@ -98,9 +98,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent */ public void setC_TaxCategory_ID (int C_TaxCategory_ID) { - if (C_TaxCategory_ID < 1) - throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); - set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + if (C_TaxCategory_ID < 1) + set_Value (COLUMNNAME_C_TaxCategory_ID, null); + else + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); } /** Get Tax Category. @@ -136,9 +137,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent */ public void setC_UOM_ID (int C_UOM_ID) { - if (C_UOM_ID < 1) - throw new IllegalArgumentException ("C_UOM_ID is mandatory."); - set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @@ -259,9 +261,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent */ public void setM_Product_Category_ID (int M_Product_Category_ID) { - if (M_Product_Category_ID < 1) - throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + if (M_Product_Category_ID < 1) + set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); } /** Get Product Category. @@ -281,8 +284,6 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -329,9 +330,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent */ public void setS_Training_ID (int S_Training_ID) { - if (S_Training_ID < 1) - throw new IllegalArgumentException ("S_Training_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); + if (S_Training_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Training_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); } /** Get Training. diff --git a/base/src/org/compiere/model/X_S_Training_Class.java b/base/src/org/compiere/model/X_S_Training_Class.java index 55c25ac803..1fc2ce52b5 100644 --- a/base/src/org/compiere/model/X_S_Training_Class.java +++ b/base/src/org/compiere/model/X_S_Training_Class.java @@ -83,8 +83,6 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers */ public void setEndDate (Timestamp EndDate) { - if (EndDate == null) - throw new IllegalArgumentException ("EndDate is mandatory."); set_Value (COLUMNNAME_EndDate, EndDate); } @@ -118,9 +116,10 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -140,8 +139,6 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers */ public void setStartDate (Timestamp StartDate) { - if (StartDate == null) - throw new IllegalArgumentException ("StartDate is mandatory."); set_Value (COLUMNNAME_StartDate, StartDate); } @@ -167,9 +164,10 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers */ public void setS_Training_Class_ID (int S_Training_Class_ID) { - if (S_Training_Class_ID < 1) - throw new IllegalArgumentException ("S_Training_Class_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Training_Class_ID, Integer.valueOf(S_Training_Class_ID)); + if (S_Training_Class_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Training_Class_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Training_Class_ID, Integer.valueOf(S_Training_Class_ID)); } /** Get Training Class. @@ -205,9 +203,10 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers */ public void setS_Training_ID (int S_Training_ID) { - if (S_Training_ID < 1) - throw new IllegalArgumentException ("S_Training_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); + if (S_Training_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Training_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); } /** Get Training. diff --git a/base/src/org/compiere/model/X_T_Aging.java b/base/src/org/compiere/model/X_T_Aging.java index 143a2ad33e..d4f65605a4 100644 --- a/base/src/org/compiere/model/X_T_Aging.java +++ b/base/src/org/compiere/model/X_T_Aging.java @@ -125,9 +125,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -202,9 +203,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -240,9 +242,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setC_BP_Group_ID (int C_BP_Group_ID) { - if (C_BP_Group_ID < 1) - throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); - set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + if (C_BP_Group_ID < 1) + set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); } /** Get Business Partner Group. @@ -317,9 +320,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setC_Currency_ID (int C_Currency_ID) { - if (C_Currency_ID < 1) - throw new IllegalArgumentException ("C_Currency_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + if (C_Currency_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @@ -498,8 +502,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due0 Due Today */ public void setDue0 (BigDecimal Due0) { - if (Due0 == null) - throw new IllegalArgumentException ("Due0 is mandatory."); set_Value (COLUMNNAME_Due0, Due0); } @@ -517,8 +519,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due0_30 Due Today-30 */ public void setDue0_30 (BigDecimal Due0_30) { - if (Due0_30 == null) - throw new IllegalArgumentException ("Due0_30 is mandatory."); set_Value (COLUMNNAME_Due0_30, Due0_30); } @@ -536,8 +536,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due0_7 Due Today-7 */ public void setDue0_7 (BigDecimal Due0_7) { - if (Due0_7 == null) - throw new IllegalArgumentException ("Due0_7 is mandatory."); set_Value (COLUMNNAME_Due0_7, Due0_7); } @@ -555,8 +553,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due1_7 Due 1-7 */ public void setDue1_7 (BigDecimal Due1_7) { - if (Due1_7 == null) - throw new IllegalArgumentException ("Due1_7 is mandatory."); set_Value (COLUMNNAME_Due1_7, Due1_7); } @@ -574,8 +570,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due31_60 Due 31-60 */ public void setDue31_60 (BigDecimal Due31_60) { - if (Due31_60 == null) - throw new IllegalArgumentException ("Due31_60 is mandatory."); set_Value (COLUMNNAME_Due31_60, Due31_60); } @@ -593,8 +587,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due31_Plus Due > 31 */ public void setDue31_Plus (BigDecimal Due31_Plus) { - if (Due31_Plus == null) - throw new IllegalArgumentException ("Due31_Plus is mandatory."); set_Value (COLUMNNAME_Due31_Plus, Due31_Plus); } @@ -612,8 +604,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due61_90 Due 61-90 */ public void setDue61_90 (BigDecimal Due61_90) { - if (Due61_90 == null) - throw new IllegalArgumentException ("Due61_90 is mandatory."); set_Value (COLUMNNAME_Due61_90, Due61_90); } @@ -631,8 +621,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due61_Plus Due > 61 */ public void setDue61_Plus (BigDecimal Due61_Plus) { - if (Due61_Plus == null) - throw new IllegalArgumentException ("Due61_Plus is mandatory."); set_Value (COLUMNNAME_Due61_Plus, Due61_Plus); } @@ -650,8 +638,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due8_30 Due 8-30 */ public void setDue8_30 (BigDecimal Due8_30) { - if (Due8_30 == null) - throw new IllegalArgumentException ("Due8_30 is mandatory."); set_Value (COLUMNNAME_Due8_30, Due8_30); } @@ -669,8 +655,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param Due91_Plus Due > 91 */ public void setDue91_Plus (BigDecimal Due91_Plus) { - if (Due91_Plus == null) - throw new IllegalArgumentException ("Due91_Plus is mandatory."); set_Value (COLUMNNAME_Due91_Plus, Due91_Plus); } @@ -690,8 +674,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setDueAmt (BigDecimal DueAmt) { - if (DueAmt == null) - throw new IllegalArgumentException ("DueAmt is mandatory."); set_Value (COLUMNNAME_DueAmt, DueAmt); } @@ -712,8 +694,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setDueDate (Timestamp DueDate) { - if (DueDate == null) - throw new IllegalArgumentException ("DueDate is mandatory."); set_Value (COLUMNNAME_DueDate, DueDate); } @@ -731,8 +711,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setInvoicedAmt (BigDecimal InvoicedAmt) { - if (InvoicedAmt == null) - throw new IllegalArgumentException ("InvoicedAmt is mandatory."); set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); } @@ -801,8 +779,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setOpenAmt (BigDecimal OpenAmt) { - if (OpenAmt == null) - throw new IllegalArgumentException ("OpenAmt is mandatory."); set_Value (COLUMNNAME_OpenAmt, OpenAmt); } @@ -821,8 +797,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue1_30 Past Due 1-30 */ public void setPastDue1_30 (BigDecimal PastDue1_30) { - if (PastDue1_30 == null) - throw new IllegalArgumentException ("PastDue1_30 is mandatory."); set_Value (COLUMNNAME_PastDue1_30, PastDue1_30); } @@ -840,8 +814,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue1_7 Past Due 1-7 */ public void setPastDue1_7 (BigDecimal PastDue1_7) { - if (PastDue1_7 == null) - throw new IllegalArgumentException ("PastDue1_7 is mandatory."); set_Value (COLUMNNAME_PastDue1_7, PastDue1_7); } @@ -859,8 +831,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue31_60 Past Due 31-60 */ public void setPastDue31_60 (BigDecimal PastDue31_60) { - if (PastDue31_60 == null) - throw new IllegalArgumentException ("PastDue31_60 is mandatory."); set_Value (COLUMNNAME_PastDue31_60, PastDue31_60); } @@ -878,8 +848,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue31_Plus Past Due > 31 */ public void setPastDue31_Plus (BigDecimal PastDue31_Plus) { - if (PastDue31_Plus == null) - throw new IllegalArgumentException ("PastDue31_Plus is mandatory."); set_Value (COLUMNNAME_PastDue31_Plus, PastDue31_Plus); } @@ -897,8 +865,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue61_90 Past Due 61-90 */ public void setPastDue61_90 (BigDecimal PastDue61_90) { - if (PastDue61_90 == null) - throw new IllegalArgumentException ("PastDue61_90 is mandatory."); set_Value (COLUMNNAME_PastDue61_90, PastDue61_90); } @@ -916,8 +882,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue61_Plus Past Due > 61 */ public void setPastDue61_Plus (BigDecimal PastDue61_Plus) { - if (PastDue61_Plus == null) - throw new IllegalArgumentException ("PastDue61_Plus is mandatory."); set_Value (COLUMNNAME_PastDue61_Plus, PastDue61_Plus); } @@ -935,8 +899,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue8_30 Past Due 8-30 */ public void setPastDue8_30 (BigDecimal PastDue8_30) { - if (PastDue8_30 == null) - throw new IllegalArgumentException ("PastDue8_30 is mandatory."); set_Value (COLUMNNAME_PastDue8_30, PastDue8_30); } @@ -954,8 +916,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDue91_Plus Past Due > 91 */ public void setPastDue91_Plus (BigDecimal PastDue91_Plus) { - if (PastDue91_Plus == null) - throw new IllegalArgumentException ("PastDue91_Plus is mandatory."); set_Value (COLUMNNAME_PastDue91_Plus, PastDue91_Plus); } @@ -973,8 +933,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent @param PastDueAmt Past Due */ public void setPastDueAmt (BigDecimal PastDueAmt) { - if (PastDueAmt == null) - throw new IllegalArgumentException ("PastDueAmt is mandatory."); set_Value (COLUMNNAME_PastDueAmt, PastDueAmt); } @@ -994,8 +952,6 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent */ public void setStatementDate (Timestamp StatementDate) { - if (StatementDate == null) - throw new IllegalArgumentException ("StatementDate is mandatory."); set_Value (COLUMNNAME_StatementDate, StatementDate); } diff --git a/base/src/org/compiere/model/X_T_DistributionRunDetail.java b/base/src/org/compiere/model/X_T_DistributionRunDetail.java index d022e145cb..4ab49489e3 100644 --- a/base/src/org/compiere/model/X_T_DistributionRunDetail.java +++ b/base/src/org/compiere/model/X_T_DistributionRunDetail.java @@ -105,9 +105,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -143,9 +144,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { - if (C_BPartner_Location_ID < 1) - throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @@ -181,9 +183,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setM_DistributionList_ID (int M_DistributionList_ID) { - if (M_DistributionList_ID < 1) - throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + if (M_DistributionList_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); } /** Get Distribution List. @@ -219,9 +222,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) { - if (M_DistributionListLine_ID < 1) - throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); + if (M_DistributionListLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); } /** Get Distribution List Line. @@ -257,9 +261,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setM_DistributionRun_ID (int M_DistributionRun_ID) { - if (M_DistributionRun_ID < 1) - throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + if (M_DistributionRun_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); } /** Get Distribution Run. @@ -303,9 +308,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) { - if (M_DistributionRunLine_ID < 1) - throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); + if (M_DistributionRunLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); } /** Get Distribution Run Line. @@ -325,8 +331,6 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setMinQty (BigDecimal MinQty) { - if (MinQty == null) - throw new IllegalArgumentException ("MinQty is mandatory."); set_Value (COLUMNNAME_MinQty, MinQty); } @@ -363,9 +367,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -385,8 +390,6 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } @@ -407,8 +410,6 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun */ public void setRatio (BigDecimal Ratio) { - if (Ratio == null) - throw new IllegalArgumentException ("Ratio is mandatory."); set_Value (COLUMNNAME_Ratio, Ratio); } diff --git a/base/src/org/compiere/model/X_T_InventoryValue.java b/base/src/org/compiere/model/X_T_InventoryValue.java index c261b79185..cf6eef58dd 100644 --- a/base/src/org/compiere/model/X_T_InventoryValue.java +++ b/base/src/org/compiere/model/X_T_InventoryValue.java @@ -99,9 +99,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -257,9 +258,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -373,9 +375,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -411,9 +414,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. diff --git a/base/src/org/compiere/model/X_T_InvoiceGL.java b/base/src/org/compiere/model/X_T_InvoiceGL.java index a8f0f43f18..8b7947ca46 100644 --- a/base/src/org/compiere/model/X_T_InvoiceGL.java +++ b/base/src/org/compiere/model/X_T_InvoiceGL.java @@ -109,9 +109,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_Value (COLUMNNAME_AD_PInstance_ID, null); + else + set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -131,8 +132,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtAcctBalance (BigDecimal AmtAcctBalance) { - if (AmtAcctBalance == null) - throw new IllegalArgumentException ("AmtAcctBalance is mandatory."); set_Value (COLUMNNAME_AmtAcctBalance, AmtAcctBalance); } @@ -153,8 +152,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtRevalCr (BigDecimal AmtRevalCr) { - if (AmtRevalCr == null) - throw new IllegalArgumentException ("AmtRevalCr is mandatory."); set_Value (COLUMNNAME_AmtRevalCr, AmtRevalCr); } @@ -175,8 +172,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtRevalCrDiff (BigDecimal AmtRevalCrDiff) { - if (AmtRevalCrDiff == null) - throw new IllegalArgumentException ("AmtRevalCrDiff is mandatory."); set_Value (COLUMNNAME_AmtRevalCrDiff, AmtRevalCrDiff); } @@ -197,8 +192,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtRevalDr (BigDecimal AmtRevalDr) { - if (AmtRevalDr == null) - throw new IllegalArgumentException ("AmtRevalDr is mandatory."); set_Value (COLUMNNAME_AmtRevalDr, AmtRevalDr); } @@ -219,8 +212,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtRevalDrDiff (BigDecimal AmtRevalDrDiff) { - if (AmtRevalDrDiff == null) - throw new IllegalArgumentException ("AmtRevalDrDiff is mandatory."); set_Value (COLUMNNAME_AmtRevalDrDiff, AmtRevalDrDiff); } @@ -241,8 +232,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setAmtSourceBalance (BigDecimal AmtSourceBalance) { - if (AmtSourceBalance == null) - throw new IllegalArgumentException ("AmtSourceBalance is mandatory."); set_Value (COLUMNNAME_AmtSourceBalance, AmtSourceBalance); } @@ -289,9 +278,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setC_ConversionTypeReval_ID (int C_ConversionTypeReval_ID) { - if (C_ConversionTypeReval_ID < 1) - throw new IllegalArgumentException ("C_ConversionTypeReval_ID is mandatory."); - set_Value (COLUMNNAME_C_ConversionTypeReval_ID, Integer.valueOf(C_ConversionTypeReval_ID)); + if (C_ConversionTypeReval_ID < 1) + set_Value (COLUMNNAME_C_ConversionTypeReval_ID, null); + else + set_Value (COLUMNNAME_C_ConversionTypeReval_ID, Integer.valueOf(C_ConversionTypeReval_ID)); } /** Get Revaluation Conversion Type. @@ -350,9 +340,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setC_Invoice_ID (int C_Invoice_ID) { - if (C_Invoice_ID < 1) - throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); - set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Invoice. @@ -372,8 +363,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setDateReval (Timestamp DateReval) { - if (DateReval == null) - throw new IllegalArgumentException ("DateReval is mandatory."); set_Value (COLUMNNAME_DateReval, DateReval); } @@ -389,9 +378,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { - if (Fact_Acct_ID < 1) - throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + if (Fact_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. @@ -410,8 +400,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setGrandTotal (BigDecimal GrandTotal) { - if (GrandTotal == null) - throw new IllegalArgumentException ("GrandTotal is mandatory."); set_Value (COLUMNNAME_GrandTotal, GrandTotal); } @@ -456,8 +444,6 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent */ public void setOpenAmt (BigDecimal OpenAmt) { - if (OpenAmt == null) - throw new IllegalArgumentException ("OpenAmt is mandatory."); set_Value (COLUMNNAME_OpenAmt, OpenAmt); } diff --git a/base/src/org/compiere/model/X_T_Replenish.java b/base/src/org/compiere/model/X_T_Replenish.java index e92b5e8d4d..59ce4b8f16 100644 --- a/base/src/org/compiere/model/X_T_Replenish.java +++ b/base/src/org/compiere/model/X_T_Replenish.java @@ -101,9 +101,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -139,9 +140,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -177,7 +179,7 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setC_DocType_ID (int C_DocType_ID) { - if (C_DocType_ID < 1) + if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); @@ -200,8 +202,6 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setLevel_Max (BigDecimal Level_Max) { - if (Level_Max == null) - throw new IllegalArgumentException ("Level_Max is mandatory."); set_Value (COLUMNNAME_Level_Max, Level_Max); } @@ -222,8 +222,6 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setLevel_Min (BigDecimal Level_Min) { - if (Level_Min == null) - throw new IllegalArgumentException ("Level_Min is mandatory."); set_Value (COLUMNNAME_Level_Min, Level_Min); } @@ -260,9 +258,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -298,9 +297,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -498,7 +498,7 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent */ public void setReplenishType (String ReplenishType) { - if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory"); + set_Value (COLUMNNAME_ReplenishType, ReplenishType); } diff --git a/base/src/org/compiere/model/X_T_Report.java b/base/src/org/compiere/model/X_T_Report.java index 06c13d3523..bf79042589 100644 --- a/base/src/org/compiere/model/X_T_Report.java +++ b/base/src/org/compiere/model/X_T_Report.java @@ -99,9 +99,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -493,9 +494,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { - if (Fact_Acct_ID < 1) - throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + if (Fact_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. @@ -570,9 +572,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent @param PA_ReportLine_ID Report Line */ public void setPA_ReportLine_ID (int PA_ReportLine_ID) { - if (PA_ReportLine_ID < 1) - throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + if (PA_ReportLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); } /** Get Report Line. @@ -591,9 +594,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent */ public void setRecord_ID (int Record_ID) { - if (Record_ID < 0) - throw new IllegalArgumentException ("Record_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. diff --git a/base/src/org/compiere/model/X_T_ReportStatement.java b/base/src/org/compiere/model/X_T_ReportStatement.java index 54cbc6756b..24d8f32df7 100644 --- a/base/src/org/compiere/model/X_T_ReportStatement.java +++ b/base/src/org/compiere/model/X_T_ReportStatement.java @@ -100,9 +100,10 @@ public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Pe */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -179,8 +180,6 @@ public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Pe */ public void setDateAcct (Timestamp DateAcct) { - if (DateAcct == null) - throw new IllegalArgumentException ("DateAcct is mandatory."); set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); } @@ -229,9 +228,10 @@ public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Pe @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { - if (Fact_Acct_ID < 1) - throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + if (Fact_Acct_ID < 1) + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. diff --git a/base/src/org/compiere/model/X_T_Transaction.java b/base/src/org/compiere/model/X_T_Transaction.java index 1c98e8fb32..f3eed5c8ca 100644 --- a/base/src/org/compiere/model/X_T_Transaction.java +++ b/base/src/org/compiere/model/X_T_Transaction.java @@ -103,9 +103,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setAD_PInstance_ID (int AD_PInstance_ID) { - if (AD_PInstance_ID < 1) - throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); - set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + if (AD_PInstance_ID < 1) + set_Value (COLUMNNAME_AD_PInstance_ID, null); + else + set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @@ -203,9 +204,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { - if (M_AttributeSetInstance_ID < 0) - throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); - set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + if (M_AttributeSetInstance_ID < 0) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @@ -381,9 +383,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @@ -481,8 +484,6 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setMovementDate (Timestamp MovementDate) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); set_Value (COLUMNNAME_MovementDate, MovementDate); } @@ -500,8 +501,6 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setMovementQty (BigDecimal MovementQty) { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); set_Value (COLUMNNAME_MovementQty, MovementQty); } @@ -548,7 +547,7 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setMovementType (String MovementType) { - if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); + set_Value (COLUMNNAME_MovementType, MovementType); } @@ -582,9 +581,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent */ public void setM_Product_ID (int M_Product_ID) { - if (M_Product_ID < 1) - throw new IllegalArgumentException ("M_Product_ID is mandatory."); - set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @@ -696,9 +696,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent @param M_Transaction_ID Inventory Transaction */ public void setM_Transaction_ID (int M_Transaction_ID) { - if (M_Transaction_ID < 1) - throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); - set_Value (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + if (M_Transaction_ID < 1) + set_Value (COLUMNNAME_M_Transaction_ID, null); + else + set_Value (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); } /** Get Inventory Transaction. diff --git a/base/src/org/compiere/model/X_Test.java b/base/src/org/compiere/model/X_Test.java index 6baa3bec16..8320bd9a12 100644 --- a/base/src/org/compiere/model/X_Test.java +++ b/base/src/org/compiere/model/X_Test.java @@ -411,8 +411,6 @@ public class X_Test extends PO implements I_Test, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -526,9 +524,10 @@ public class X_Test extends PO implements I_Test, I_Persistent @param Test_ID Test ID */ public void setTest_ID (int Test_ID) { - if (Test_ID < 1) - throw new IllegalArgumentException ("Test_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_Test_ID, Integer.valueOf(Test_ID)); + if (Test_ID < 1) + set_ValueNoCheck (COLUMNNAME_Test_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Test_ID, Integer.valueOf(Test_ID)); } /** Get Test ID. diff --git a/base/src/org/compiere/model/X_U_BlackListCheque.java b/base/src/org/compiere/model/X_U_BlackListCheque.java index 1b41ed76d9..04d6aaef31 100644 --- a/base/src/org/compiere/model/X_U_BlackListCheque.java +++ b/base/src/org/compiere/model/X_U_BlackListCheque.java @@ -75,8 +75,6 @@ public class X_U_BlackListCheque extends PO implements I_U_BlackListCheque, I_Pe @param BankName Bank Name */ public void setBankName (String BankName) { - if (BankName == null) - throw new IllegalArgumentException ("BankName is mandatory."); set_Value (COLUMNNAME_BankName, BankName); } @@ -91,8 +89,6 @@ public class X_U_BlackListCheque extends PO implements I_U_BlackListCheque, I_Pe @param ChequeNo Cheque No */ public void setChequeNo (String ChequeNo) { - if (ChequeNo == null) - throw new IllegalArgumentException ("ChequeNo is mandatory."); set_Value (COLUMNNAME_ChequeNo, ChequeNo); } @@ -107,9 +103,10 @@ public class X_U_BlackListCheque extends PO implements I_U_BlackListCheque, I_Pe @param U_BlackListCheque_ID Black List Cheque */ public void setU_BlackListCheque_ID (int U_BlackListCheque_ID) { - if (U_BlackListCheque_ID < 1) - throw new IllegalArgumentException ("U_BlackListCheque_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_U_BlackListCheque_ID, Integer.valueOf(U_BlackListCheque_ID)); + if (U_BlackListCheque_ID < 1) + set_ValueNoCheck (COLUMNNAME_U_BlackListCheque_ID, null); + else + set_ValueNoCheck (COLUMNNAME_U_BlackListCheque_ID, Integer.valueOf(U_BlackListCheque_ID)); } /** Get Black List Cheque. diff --git a/base/src/org/compiere/model/X_U_POSTerminal.java b/base/src/org/compiere/model/X_U_POSTerminal.java index edc5381123..b445ee606e 100644 --- a/base/src/org/compiere/model/X_U_POSTerminal.java +++ b/base/src/org/compiere/model/X_U_POSTerminal.java @@ -203,7 +203,7 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent */ public void setCashBookTransferType (String CashBookTransferType) { - if (CashBookTransferType == null) throw new IllegalArgumentException ("CashBookTransferType is mandatory"); + set_Value (COLUMNNAME_CashBookTransferType, CashBookTransferType); } @@ -283,9 +283,10 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent */ public void setC_CashBook_ID (int C_CashBook_ID) { - if (C_CashBook_ID < 1) - throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); - set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + if (C_CashBook_ID < 1) + set_Value (COLUMNNAME_C_CashBook_ID, null); + else + set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); } /** Get Cash Book. @@ -305,9 +306,10 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent */ public void setC_CashBPartner_ID (int C_CashBPartner_ID) { - if (C_CashBPartner_ID < 1) - throw new IllegalArgumentException ("C_CashBPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_CashBPartner_ID, Integer.valueOf(C_CashBPartner_ID)); + if (C_CashBPartner_ID < 1) + set_Value (COLUMNNAME_C_CashBPartner_ID, null); + else + set_Value (COLUMNNAME_C_CashBPartner_ID, Integer.valueOf(C_CashBPartner_ID)); } /** Get Cash BPartner. @@ -689,9 +691,10 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent @param U_POSTerminal_ID POS Terminal */ public void setU_POSTerminal_ID (int U_POSTerminal_ID) { - if (U_POSTerminal_ID < 1) - throw new IllegalArgumentException ("U_POSTerminal_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_U_POSTerminal_ID, Integer.valueOf(U_POSTerminal_ID)); + if (U_POSTerminal_ID < 1) + set_ValueNoCheck (COLUMNNAME_U_POSTerminal_ID, null); + else + set_ValueNoCheck (COLUMNNAME_U_POSTerminal_ID, Integer.valueOf(U_POSTerminal_ID)); } /** Get POS Terminal. diff --git a/base/src/org/compiere/model/X_U_RoleMenu.java b/base/src/org/compiere/model/X_U_RoleMenu.java index f176265370..4f319c153b 100644 --- a/base/src/org/compiere/model/X_U_RoleMenu.java +++ b/base/src/org/compiere/model/X_U_RoleMenu.java @@ -95,9 +95,10 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent */ public void setAD_Role_ID (int AD_Role_ID) { - if (AD_Role_ID < 0) - throw new IllegalArgumentException ("AD_Role_ID is mandatory."); - set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + if (AD_Role_ID < 0) + set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); } /** Get Role. @@ -115,9 +116,10 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent @param U_RoleMenu_ID Role Menu */ public void setU_RoleMenu_ID (int U_RoleMenu_ID) { - if (U_RoleMenu_ID < 1) - throw new IllegalArgumentException ("U_RoleMenu_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_U_RoleMenu_ID, Integer.valueOf(U_RoleMenu_ID)); + if (U_RoleMenu_ID < 1) + set_ValueNoCheck (COLUMNNAME_U_RoleMenu_ID, null); + else + set_ValueNoCheck (COLUMNNAME_U_RoleMenu_ID, Integer.valueOf(U_RoleMenu_ID)); } /** Get Role Menu. @@ -150,9 +152,10 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent @param U_WebMenu_ID Web Menu */ public void setU_WebMenu_ID (int U_WebMenu_ID) { - if (U_WebMenu_ID < 1) - throw new IllegalArgumentException ("U_WebMenu_ID is mandatory."); - set_Value (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID)); + if (U_WebMenu_ID < 1) + set_Value (COLUMNNAME_U_WebMenu_ID, null); + else + set_Value (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID)); } /** Get Web Menu. diff --git a/base/src/org/compiere/model/X_U_WebMenu.java b/base/src/org/compiere/model/X_U_WebMenu.java index 4416469ebc..c8a99941bc 100644 --- a/base/src/org/compiere/model/X_U_WebMenu.java +++ b/base/src/org/compiere/model/X_U_WebMenu.java @@ -163,8 +163,6 @@ public class X_U_WebMenu extends PO implements I_U_WebMenu, I_Persistent @param MenuLink Menu Link */ public void setMenuLink (String MenuLink) { - if (MenuLink == null) - throw new IllegalArgumentException ("MenuLink is mandatory."); set_Value (COLUMNNAME_MenuLink, MenuLink); } @@ -179,8 +177,6 @@ public class X_U_WebMenu extends PO implements I_U_WebMenu, I_Persistent @param Module Module */ public void setModule (String Module) { - if (Module == null) - throw new IllegalArgumentException ("Module is mandatory."); set_Value (COLUMNNAME_Module, Module); } @@ -197,8 +193,6 @@ public class X_U_WebMenu extends PO implements I_U_WebMenu, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -265,9 +259,10 @@ public class X_U_WebMenu extends PO implements I_U_WebMenu, I_Persistent @param U_WebMenu_ID Web Menu */ public void setU_WebMenu_ID (int U_WebMenu_ID) { - if (U_WebMenu_ID < 1) - throw new IllegalArgumentException ("U_WebMenu_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID)); + if (U_WebMenu_ID < 1) + set_ValueNoCheck (COLUMNNAME_U_WebMenu_ID, null); + else + set_ValueNoCheck (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID)); } /** Get Web Menu. diff --git a/base/src/org/compiere/model/X_U_Web_Properties.java b/base/src/org/compiere/model/X_U_Web_Properties.java index 83f26e8cef..dc766243ff 100644 --- a/base/src/org/compiere/model/X_U_Web_Properties.java +++ b/base/src/org/compiere/model/X_U_Web_Properties.java @@ -75,8 +75,6 @@ public class X_U_Web_Properties extends PO implements I_U_Web_Properties, I_Pers @param U_Key Key */ public void setU_Key (String U_Key) { - if (U_Key == null) - throw new IllegalArgumentException ("U_Key is mandatory."); set_Value (COLUMNNAME_U_Key, U_Key); } @@ -91,8 +89,6 @@ public class X_U_Web_Properties extends PO implements I_U_Web_Properties, I_Pers @param U_Value Value */ public void setU_Value (String U_Value) { - if (U_Value == null) - throw new IllegalArgumentException ("U_Value is mandatory."); set_Value (COLUMNNAME_U_Value, U_Value); } @@ -107,9 +103,10 @@ public class X_U_Web_Properties extends PO implements I_U_Web_Properties, I_Pers @param U_Web_Properties_ID Web Properties */ public void setU_Web_Properties_ID (int U_Web_Properties_ID) { - if (U_Web_Properties_ID < 1) - throw new IllegalArgumentException ("U_Web_Properties_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, Integer.valueOf(U_Web_Properties_ID)); + if (U_Web_Properties_ID < 1) + set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, null); + else + set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, Integer.valueOf(U_Web_Properties_ID)); } /** Get Web Properties. diff --git a/base/src/org/compiere/model/X_W_Advertisement.java b/base/src/org/compiere/model/X_W_Advertisement.java index fa1e281f08..97a3db2f7e 100644 --- a/base/src/org/compiere/model/X_W_Advertisement.java +++ b/base/src/org/compiere/model/X_W_Advertisement.java @@ -120,9 +120,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -142,9 +143,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis */ public void setC_BPartner_ID (int C_BPartner_ID) { - if (C_BPartner_ID < 1) - throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); - set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + if (C_BPartner_ID < 1) + set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @@ -239,8 +241,6 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -297,7 +297,7 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis */ public void setPublishStatus (String PublishStatus) { - if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); + set_Value (COLUMNNAME_PublishStatus, PublishStatus); } @@ -369,9 +369,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis */ public void setW_Advertisement_ID (int W_Advertisement_ID) { - if (W_Advertisement_ID < 1) - throw new IllegalArgumentException ("W_Advertisement_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, Integer.valueOf(W_Advertisement_ID)); + if (W_Advertisement_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, Integer.valueOf(W_Advertisement_ID)); } /** Get Advertisement. diff --git a/base/src/org/compiere/model/X_W_Basket.java b/base/src/org/compiere/model/X_W_Basket.java index 38c52b880f..2802dceccc 100644 --- a/base/src/org/compiere/model/X_W_Basket.java +++ b/base/src/org/compiere/model/X_W_Basket.java @@ -96,9 +96,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent */ public void setAD_User_ID (int AD_User_ID) { - if (AD_User_ID < 1) - throw new IllegalArgumentException ("AD_User_ID is mandatory."); - set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + if (AD_User_ID < 1) + set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @@ -211,9 +212,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent @param Session_ID Session ID */ public void setSession_ID (int Session_ID) { - if (Session_ID < 1) - throw new IllegalArgumentException ("Session_ID is mandatory."); - set_Value (COLUMNNAME_Session_ID, Integer.valueOf(Session_ID)); + if (Session_ID < 1) + set_Value (COLUMNNAME_Session_ID, null); + else + set_Value (COLUMNNAME_Session_ID, Integer.valueOf(Session_ID)); } /** Get Session ID. @@ -240,9 +242,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent */ public void setW_Basket_ID (int W_Basket_ID) { - if (W_Basket_ID < 1) - throw new IllegalArgumentException ("W_Basket_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); + if (W_Basket_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); } /** Get W_Basket_ID. diff --git a/base/src/org/compiere/model/X_W_BasketLine.java b/base/src/org/compiere/model/X_W_BasketLine.java index b0f314428e..e671aa9bfd 100644 --- a/base/src/org/compiere/model/X_W_BasketLine.java +++ b/base/src/org/compiere/model/X_W_BasketLine.java @@ -86,8 +86,6 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent */ public void setDescription (String Description) { - if (Description == null) - throw new IllegalArgumentException ("Description is mandatory."); set_Value (COLUMNNAME_Description, Description); } @@ -172,8 +170,6 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent */ public void setPrice (BigDecimal Price) { - if (Price == null) - throw new IllegalArgumentException ("Price is mandatory."); set_Value (COLUMNNAME_Price, Price); } @@ -192,8 +188,6 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent @param Product Product */ public void setProduct (String Product) { - if (Product == null) - throw new IllegalArgumentException ("Product is mandatory."); set_Value (COLUMNNAME_Product, Product); } @@ -210,8 +204,6 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent */ public void setQty (BigDecimal Qty) { - if (Qty == null) - throw new IllegalArgumentException ("Qty is mandatory."); set_Value (COLUMNNAME_Qty, Qty); } @@ -248,9 +240,10 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent */ public void setW_Basket_ID (int W_Basket_ID) { - if (W_Basket_ID < 1) - throw new IllegalArgumentException ("W_Basket_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); + if (W_Basket_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); } /** Get W_Basket_ID. @@ -270,9 +263,10 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent */ public void setW_BasketLine_ID (int W_BasketLine_ID) { - if (W_BasketLine_ID < 1) - throw new IllegalArgumentException ("W_BasketLine_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID)); + if (W_BasketLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID)); } /** Get Basket Line. diff --git a/base/src/org/compiere/model/X_W_Click.java b/base/src/org/compiere/model/X_W_Click.java index a25efc0d02..a277f03156 100644 --- a/base/src/org/compiere/model/X_W_Click.java +++ b/base/src/org/compiere/model/X_W_Click.java @@ -292,9 +292,10 @@ public class X_W_Click extends PO implements I_W_Click, I_Persistent */ public void setW_Click_ID (int W_Click_ID) { - if (W_Click_ID < 1) - throw new IllegalArgumentException ("W_Click_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Click_ID, Integer.valueOf(W_Click_ID)); + if (W_Click_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Click_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Click_ID, Integer.valueOf(W_Click_ID)); } /** Get Web Click. diff --git a/base/src/org/compiere/model/X_W_ClickCount.java b/base/src/org/compiere/model/X_W_ClickCount.java index fc063791b0..be4b9c28ec 100644 --- a/base/src/org/compiere/model/X_W_ClickCount.java +++ b/base/src/org/compiere/model/X_W_ClickCount.java @@ -137,8 +137,6 @@ public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -164,8 +162,6 @@ public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent */ public void setTargetURL (String TargetURL) { - if (TargetURL == null) - throw new IllegalArgumentException ("TargetURL is mandatory."); set_Value (COLUMNNAME_TargetURL, TargetURL); } @@ -183,9 +179,10 @@ public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent */ public void setW_ClickCount_ID (int W_ClickCount_ID) { - if (W_ClickCount_ID < 1) - throw new IllegalArgumentException ("W_ClickCount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); + if (W_ClickCount_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); } /** Get Click Count. diff --git a/base/src/org/compiere/model/X_W_Counter.java b/base/src/org/compiere/model/X_W_Counter.java index 1c23542e79..0f7dc5ad4d 100644 --- a/base/src/org/compiere/model/X_W_Counter.java +++ b/base/src/org/compiere/model/X_W_Counter.java @@ -137,8 +137,6 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent @param PageURL Page URL */ public void setPageURL (String PageURL) { - if (PageURL == null) - throw new IllegalArgumentException ("PageURL is mandatory."); set_Value (COLUMNNAME_PageURL, PageURL); } @@ -196,8 +194,6 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent */ public void setRemote_Addr (String Remote_Addr) { - if (Remote_Addr == null) - throw new IllegalArgumentException ("Remote_Addr is mandatory."); set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); } @@ -223,8 +219,6 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent */ public void setRemote_Host (String Remote_Host) { - if (Remote_Host == null) - throw new IllegalArgumentException ("Remote_Host is mandatory."); set_Value (COLUMNNAME_Remote_Host, Remote_Host); } @@ -298,9 +292,10 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent */ public void setW_Counter_ID (int W_Counter_ID) { - if (W_Counter_ID < 1) - throw new IllegalArgumentException ("W_Counter_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Counter_ID, Integer.valueOf(W_Counter_ID)); + if (W_Counter_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Counter_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Counter_ID, Integer.valueOf(W_Counter_ID)); } /** Get Web Counter. diff --git a/base/src/org/compiere/model/X_W_CounterCount.java b/base/src/org/compiere/model/X_W_CounterCount.java index d53e86ef40..57f89d84bb 100644 --- a/base/src/org/compiere/model/X_W_CounterCount.java +++ b/base/src/org/compiere/model/X_W_CounterCount.java @@ -137,8 +137,6 @@ public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persiste */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -162,8 +160,6 @@ public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persiste @param PageURL Page URL */ public void setPageURL (String PageURL) { - if (PageURL == null) - throw new IllegalArgumentException ("PageURL is mandatory."); set_Value (COLUMNNAME_PageURL, PageURL); } @@ -180,9 +176,10 @@ public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persiste */ public void setW_CounterCount_ID (int W_CounterCount_ID) { - if (W_CounterCount_ID < 1) - throw new IllegalArgumentException ("W_CounterCount_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); + if (W_CounterCount_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); } /** Get Counter Count. diff --git a/base/src/org/compiere/model/X_W_MailMsg.java b/base/src/org/compiere/model/X_W_MailMsg.java index abfe47bbe5..bb75d76d11 100644 --- a/base/src/org/compiere/model/X_W_MailMsg.java +++ b/base/src/org/compiere/model/X_W_MailMsg.java @@ -120,7 +120,7 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setMailMsgType (String MailMsgType) { - if (MailMsgType == null) throw new IllegalArgumentException ("MailMsgType is mandatory"); + set_Value (COLUMNNAME_MailMsgType, MailMsgType); } @@ -138,8 +138,6 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setMessage (String Message) { - if (Message == null) - throw new IllegalArgumentException ("Message is mandatory."); set_Value (COLUMNNAME_Message, Message); } @@ -191,8 +189,6 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -218,8 +214,6 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setSubject (String Subject) { - if (Subject == null) - throw new IllegalArgumentException ("Subject is mandatory."); set_Value (COLUMNNAME_Subject, Subject); } @@ -237,9 +231,10 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setW_MailMsg_ID (int W_MailMsg_ID) { - if (W_MailMsg_ID < 1) - throw new IllegalArgumentException ("W_MailMsg_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, Integer.valueOf(W_MailMsg_ID)); + if (W_MailMsg_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, Integer.valueOf(W_MailMsg_ID)); } /** Get Mail Message. @@ -275,9 +270,10 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent */ public void setW_Store_ID (int W_Store_ID) { - if (W_Store_ID < 1) - throw new IllegalArgumentException ("W_Store_ID is mandatory."); - set_Value (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); + if (W_Store_ID < 1) + set_Value (COLUMNNAME_W_Store_ID, null); + else + set_Value (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); } /** Get Web Store. diff --git a/base/src/org/compiere/model/X_W_Store.java b/base/src/org/compiere/model/X_W_Store.java index 6f86e8bdbb..10c5ea303a 100644 --- a/base/src/org/compiere/model/X_W_Store.java +++ b/base/src/org/compiere/model/X_W_Store.java @@ -122,9 +122,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) { - if (C_PaymentTerm_ID < 1) - throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); - set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + if (C_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); } /** Get Payment Term. @@ -492,9 +493,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setM_PriceList_ID (int M_PriceList_ID) { - if (M_PriceList_ID < 1) - throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); - set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); } /** Get Price List. @@ -530,9 +532,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setM_Warehouse_ID (int M_Warehouse_ID) { - if (M_Warehouse_ID < 1) - throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); - set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + if (M_Warehouse_ID < 1) + set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @@ -552,8 +555,6 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setName (String Name) { - if (Name == null) - throw new IllegalArgumentException ("Name is mandatory."); set_Value (COLUMNNAME_Name, Name); } @@ -579,9 +580,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setSalesRep_ID (int SalesRep_ID) { - if (SalesRep_ID < 1) - throw new IllegalArgumentException ("SalesRep_ID is mandatory."); - set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + if (SalesRep_ID < 1) + set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. @@ -618,8 +620,6 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setURL (String URL) { - if (URL == null) - throw new IllegalArgumentException ("URL is mandatory."); set_Value (COLUMNNAME_URL, URL); } @@ -637,8 +637,6 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setWebContext (String WebContext) { - if (WebContext == null) - throw new IllegalArgumentException ("WebContext is mandatory."); set_Value (COLUMNNAME_WebContext, WebContext); } @@ -809,9 +807,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent */ public void setW_Store_ID (int W_Store_ID) { - if (W_Store_ID < 1) - throw new IllegalArgumentException ("W_Store_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); + if (W_Store_ID < 1) + set_ValueNoCheck (COLUMNNAME_W_Store_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); } /** Get Web Store.