From bd82b776dbfc95e1212982b1623d5465021cc7db Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 6 Sep 2009 11:34:44 +0000 Subject: [PATCH] FR [ 2848449 ] ModelClassGenerator: Implement model getters https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2848449&group_id=176962 Generate models after applying this FR --- .../compiere/model/I_AD_AlertProcessor.java | 2 + .../org/compiere/model/I_AD_Attribute.java | 4 + .../org/compiere/model/I_AD_ClientInfo.java | 30 ++ base/src/org/compiere/model/I_AD_Column.java | 4 + base/src/org/compiere/model/I_AD_Field.java | 6 + base/src/org/compiere/model/I_AD_Find.java | 2 + .../org/compiere/model/I_AD_InfoColumn.java | 2 + .../compiere/model/I_AD_LdapProcessor.java | 2 + base/src/org/compiere/model/I_AD_Note.java | 2 + base/src/org/compiere/model/I_AD_OrgInfo.java | 10 + .../model/I_AD_Package_Imp_Backup.java | 4 + .../org/compiere/model/I_AD_PrintForm.java | 28 ++ .../org/compiere/model/I_AD_PrintFormat.java | 2 + .../compiere/model/I_AD_PrintFormatItem.java | 2 + .../org/compiere/model/I_AD_PrintGraph.java | 12 + .../compiere/model/I_AD_PrintTableFormat.java | 16 + .../org/compiere/model/I_AD_Process_Para.java | 4 + .../org/compiere/model/I_AD_Ref_Table.java | 4 + .../org/compiere/model/I_AD_Registration.java | 2 + base/src/org/compiere/model/I_AD_Role.java | 6 + .../org/compiere/model/I_AD_Scheduler.java | 2 + .../compiere/model/I_AD_SearchDefinition.java | 8 + base/src/org/compiere/model/I_AD_Tab.java | 8 + base/src/org/compiere/model/I_AD_Table.java | 2 + base/src/org/compiere/model/I_AD_User.java | 2 + .../compiere/model/I_AD_User_Substitute.java | 2 + .../org/compiere/model/I_AD_WF_Activity.java | 2 + .../compiere/model/I_AD_WF_EventAudit.java | 2 + base/src/org/compiere/model/I_AD_WF_Node.java | 2 + .../org/compiere/model/I_AD_WF_NodeNext.java | 2 + .../org/compiere/model/I_AD_WF_Process.java | 2 + .../compiere/model/I_AD_WF_Responsible.java | 2 + .../org/compiere/model/I_AD_Workbench.java | 2 + .../model/I_AD_WorkflowProcessor.java | 2 + base/src/org/compiere/model/I_A_Asset.java | 8 + .../org/compiere/model/I_A_Asset_Acct.java | 32 ++ .../org/compiere/model/I_A_Asset_Change.java | 32 ++ .../compiere/model/I_A_Asset_Disposed.java | 4 + .../compiere/model/I_A_Asset_Group_Acct.java | 32 ++ .../compiere/model/I_A_Asset_Reval_Entry.java | 2 + .../org/compiere/model/I_A_Asset_Split.java | 4 + .../compiere/model/I_A_Asset_Transfer.java | 14 + .../model/I_A_Depreciation_Build.java | 6 + .../model/I_A_Depreciation_Entry.java | 2 + .../compiere/model/I_A_Depreciation_Exp.java | 2 + .../model/I_A_Depreciation_Forecast.java | 4 + .../model/I_A_RegistrationAttribute.java | 4 + .../src/org/compiere/model/I_B_TopicType.java | 2 + base/src/org/compiere/model/I_CM_CStage.java | 2 + .../org/compiere/model/I_CM_ChatEntry.java | 4 + .../org/compiere/model/I_CM_Container.java | 2 + .../org/compiere/model/I_CM_WebProject.java | 8 + .../org/compiere/model/I_C_AcctProcessor.java | 2 + .../model/I_C_AcctSchema_Default.java | 144 +++++++ .../model/I_C_AcctSchema_Element.java | 2 + .../org/compiere/model/I_C_AcctSchema_GL.java | 20 + .../compiere/model/I_C_BP_Customer_Acct.java | 6 + base/src/org/compiere/model/I_C_BP_EDI.java | 2 + .../compiere/model/I_C_BP_Employee_Acct.java | 4 + base/src/org/compiere/model/I_C_BP_Group.java | 6 + .../org/compiere/model/I_C_BP_Group_Acct.java | 26 ++ .../org/compiere/model/I_C_BP_Relation.java | 4 + .../compiere/model/I_C_BP_Vendor_Acct.java | 6 + base/src/org/compiere/model/I_C_BPartner.java | 12 + .../compiere/model/I_C_BPartner_Location.java | 2 + base/src/org/compiere/model/I_C_Bank.java | 2 + .../compiere/model/I_C_BankAccountDoc.java | 2 + .../compiere/model/I_C_BankAccount_Acct.java | 24 ++ base/src/org/compiere/model/I_C_Cash.java | 4 + .../org/compiere/model/I_C_CashBook_Acct.java | 10 + .../org/compiere/model/I_C_Charge_Acct.java | 4 + base/src/org/compiere/model/I_C_City.java | 2 + .../org/compiere/model/I_C_Commission.java | 2 + .../compiere/model/I_C_Conversion_Rate.java | 4 + .../org/compiere/model/I_C_Currency_Acct.java | 8 + base/src/org/compiere/model/I_C_DocType.java | 12 + .../compiere/model/I_C_DocTypeCounter.java | 2 + .../org/compiere/model/I_C_DunningLevel.java | 2 + .../compiere/model/I_C_DunningRunEntry.java | 2 + .../org/compiere/model/I_C_InterOrg_Acct.java | 4 + base/src/org/compiere/model/I_C_Invoice.java | 12 + .../org/compiere/model/I_C_InvoiceBatch.java | 2 + .../compiere/model/I_C_InvoiceBatchLine.java | 4 + .../org/compiere/model/I_C_InvoiceLine.java | 6 + .../model/I_C_LandedCostAllocation.java | 2 + base/src/org/compiere/model/I_C_Order.java | 26 ++ .../src/org/compiere/model/I_C_OrderLine.java | 12 + base/src/org/compiere/model/I_C_POS.java | 4 + .../compiere/model/I_C_PaySelectionCheck.java | 2 + base/src/org/compiere/model/I_C_Payment.java | 8 + .../compiere/model/I_C_PaymentProcessor.java | 2 + base/src/org/compiere/model/I_C_Project.java | 4 + .../org/compiere/model/I_C_ProjectIssue.java | 4 + .../compiere/model/I_C_ProjectIssueMA.java | 2 + .../org/compiere/model/I_C_ProjectLine.java | 2 + .../org/compiere/model/I_C_Project_Acct.java | 4 + .../model/I_C_RevenueRecognition_Plan.java | 4 + base/src/org/compiere/model/I_C_RfQ.java | 2 + base/src/org/compiere/model/I_C_RfQLine.java | 2 + .../org/compiere/model/I_C_SalesRegion.java | 2 + base/src/org/compiere/model/I_C_Tax.java | 6 + .../model/I_C_TaxDeclarationAcct.java | 2 + base/src/org/compiere/model/I_C_Tax_Acct.java | 10 + .../compiere/model/I_C_UOM_Conversion.java | 2 + .../compiere/model/I_C_ValidCombination.java | 22 + .../org/compiere/model/I_C_Withholding.java | 2 + .../compiere/model/I_C_Withholding_Acct.java | 2 + .../org/compiere/model/I_EXP_FormatLine.java | 4 + base/src/org/compiere/model/I_Fact_Acct.java | 8 + .../compiere/model/I_Fact_Acct_Summary.java | 12 + .../org/compiere/model/I_GL_Distribution.java | 10 + .../compiere/model/I_GL_DistributionLine.java | 8 + base/src/org/compiere/model/I_GL_Journal.java | 4 + .../org/compiere/model/I_GL_JournalBatch.java | 4 + .../org/compiere/model/I_GL_JournalLine.java | 4 + base/src/org/compiere/model/I_I_Asset.java | 32 ++ .../compiere/model/I_I_Conversion_Rate.java | 2 + .../org/compiere/model/I_I_ElementValue.java | 4 + .../src/org/compiere/model/I_I_FAJournal.java | 6 + .../src/org/compiere/model/I_I_GLJournal.java | 10 + base/src/org/compiere/model/I_I_Invoice.java | 2 + base/src/org/compiere/model/I_I_Order.java | 4 + .../compiere/model/I_M_AttributeInstance.java | 2 + .../org/compiere/model/I_M_BOMProduct.java | 4 + .../org/compiere/model/I_M_ChangeRequest.java | 2 + base/src/org/compiere/model/I_M_Cost.java | 2 + .../org/compiere/model/I_M_CostDetail.java | 2 + .../src/org/compiere/model/I_M_CostQueue.java | 2 + base/src/org/compiere/model/I_M_Freight.java | 2 + base/src/org/compiere/model/I_M_InOut.java | 18 + .../src/org/compiere/model/I_M_InOutLine.java | 10 + .../org/compiere/model/I_M_InOutLineMA.java | 2 + .../src/org/compiere/model/I_M_Inventory.java | 6 + .../org/compiere/model/I_M_InventoryLine.java | 8 + .../compiere/model/I_M_InventoryLineMA.java | 2 + base/src/org/compiere/model/I_M_MatchInv.java | 2 + base/src/org/compiere/model/I_M_MatchPO.java | 2 + base/src/org/compiere/model/I_M_Movement.java | 12 + .../org/compiere/model/I_M_MovementLine.java | 12 + .../compiere/model/I_M_MovementLineMA.java | 2 + .../src/org/compiere/model/I_M_PriceList.java | 2 + .../compiere/model/I_M_PriceList_Version.java | 2 + base/src/org/compiere/model/I_M_Product.java | 6 + .../model/I_M_ProductPriceVendorBreak.java | 2 + .../org/compiere/model/I_M_Product_Acct.java | 44 ++ .../org/compiere/model/I_M_Product_BOM.java | 2 + .../compiere/model/I_M_Product_Category.java | 2 + .../model/I_M_Product_Category_Acct.java | 44 ++ .../org/compiere/model/I_M_Production.java | 4 + .../compiere/model/I_M_ProductionLine.java | 4 + .../compiere/model/I_M_ProductionLineMA.java | 2 + .../compiere/model/I_M_ProductionPlan.java | 4 + .../compiere/model/I_M_PromotionReward.java | 2 + base/src/org/compiere/model/I_M_RMA.java | 8 + base/src/org/compiere/model/I_M_RMALine.java | 2 + .../compiere/model/I_M_RelatedProduct.java | 2 + .../src/org/compiere/model/I_M_Replenish.java | 2 + .../compiere/model/I_M_RequisitionLine.java | 2 + base/src/org/compiere/model/I_M_Storage.java | 4 + .../org/compiere/model/I_M_Substitute.java | 2 + .../org/compiere/model/I_M_Transaction.java | 4 + .../model/I_M_TransactionAllocation.java | 10 + .../src/org/compiere/model/I_M_Warehouse.java | 4 + .../compiere/model/I_M_Warehouse_Acct.java | 8 + .../org/compiere/model/I_PA_ColorSchema.java | 8 + base/src/org/compiere/model/I_PA_Goal.java | 2 + .../org/compiere/model/I_PA_Hierarchy.java | 16 + .../org/compiere/model/I_PA_RatioElement.java | 4 + base/src/org/compiere/model/I_PA_Report.java | 4 + .../org/compiere/model/I_PA_ReportColumn.java | 6 + .../org/compiere/model/I_PA_ReportLine.java | 4 + .../org/compiere/model/I_PA_ReportSource.java | 4 + .../src/org/compiere/model/I_RV_BPartner.java | 16 + base/src/org/compiere/model/I_R_Request.java | 10 + .../org/compiere/model/I_R_RequestAction.java | 4 + .../compiere/model/I_R_RequestProcessor.java | 2 + .../org/compiere/model/I_R_RequestUpdate.java | 2 + base/src/org/compiere/model/I_R_Status.java | 4 + .../org/compiere/model/I_S_TimeExpense.java | 2 + .../compiere/model/I_T_InventoryValue.java | 2 + .../src/org/compiere/model/I_T_InvoiceGL.java | 4 + .../src/org/compiere/model/I_T_Replenish.java | 2 + .../org/compiere/model/I_T_Transaction.java | 10 + base/src/org/compiere/model/I_Test.java | 6 + .../org/compiere/model/I_U_POSTerminal.java | 26 ++ base/src/org/compiere/model/I_U_WebMenu.java | 2 + .../org/compiere/model/I_W_Advertisement.java | 2 + .../org/compiere/model/I_W_ClickCount.java | 2 + .../org/compiere/model/I_W_CounterCount.java | 2 + base/src/org/compiere/model/I_W_Store.java | 2 + .../org/compiere/model/X_AD_AccessLog.java | 36 +- base/src/org/compiere/model/X_AD_Alert.java | 19 +- .../compiere/model/X_AD_AlertProcessor.java | 5 + .../model/X_AD_AlertProcessorLog.java | 19 +- .../compiere/model/X_AD_AlertRecipient.java | 53 +-- .../org/compiere/model/X_AD_AlertRule.java | 36 +- base/src/org/compiere/model/X_AD_Archive.java | 53 +-- .../org/compiere/model/X_AD_Attachment.java | 19 +- .../compiere/model/X_AD_AttachmentNote.java | 36 +- .../org/compiere/model/X_AD_Attribute.java | 46 +- .../org/compiere/model/X_AD_ChangeLog.java | 53 +-- base/src/org/compiere/model/X_AD_Client.java | 19 +- .../org/compiere/model/X_AD_ClientInfo.java | 94 +++- .../org/compiere/model/X_AD_ClientShare.java | 19 +- base/src/org/compiere/model/X_AD_Color.java | 19 +- base/src/org/compiere/model/X_AD_Column.java | 80 +--- .../compiere/model/X_AD_Column_Access.java | 53 +-- .../compiere/model/X_AD_DesktopWorkbench.java | 36 +- .../model/X_AD_Document_Action_Access.java | 53 +-- base/src/org/compiere/model/X_AD_Field.java | 85 ++-- base/src/org/compiere/model/X_AD_Find.java | 5 + .../org/compiere/model/X_AD_Form_Access.java | 36 +- .../org/compiere/model/X_AD_HouseKeeping.java | 19 +- .../org/compiere/model/X_AD_ImpFormat.java | 19 +- .../compiere/model/X_AD_ImpFormat_Row.java | 36 +- .../org/compiere/model/X_AD_InfoColumn.java | 41 +- .../org/compiere/model/X_AD_InfoWindow.java | 19 +- base/src/org/compiere/model/X_AD_Issue.java | 155 ++----- .../model/X_AD_LabelPrinterFunction.java | 19 +- .../org/compiere/model/X_AD_LdapAccess.java | 53 +-- .../compiere/model/X_AD_LdapProcessor.java | 5 + .../compiere/model/X_AD_LdapProcessorLog.java | 19 +- base/src/org/compiere/model/X_AD_Menu.java | 104 +---- base/src/org/compiere/model/X_AD_Note.java | 58 +-- base/src/org/compiere/model/X_AD_OrgInfo.java | 78 ++-- base/src/org/compiere/model/X_AD_OrgType.java | 19 +- .../org/compiere/model/X_AD_PInstance.java | 36 +- .../compiere/model/X_AD_PInstance_Log.java | 19 +- .../compiere/model/X_AD_PInstance_Para.java | 19 +- .../model/X_AD_Package_Exp_Common.java | 172 ++------ .../model/X_AD_Package_Exp_Detail.java | 257 ++--------- .../model/X_AD_Package_Imp_Backup.java | 10 + .../org/compiere/model/X_AD_Preference.java | 36 +- .../org/compiere/model/X_AD_PrintForm.java | 70 +++ .../org/compiere/model/X_AD_PrintFormat.java | 109 +---- .../compiere/model/X_AD_PrintFormatItem.java | 92 +--- .../org/compiere/model/X_AD_PrintGraph.java | 49 ++- .../org/compiere/model/X_AD_PrintLabel.java | 19 +- .../compiere/model/X_AD_PrintLabelLine.java | 53 +-- .../compiere/model/X_AD_PrintTableFormat.java | 59 ++- .../compiere/model/X_AD_Private_Access.java | 36 +- base/src/org/compiere/model/X_AD_Process.java | 70 +-- .../compiere/model/X_AD_Process_Access.java | 36 +- .../org/compiere/model/X_AD_Process_Para.java | 63 +-- .../compiere/model/X_AD_Record_Access.java | 36 +- .../src/org/compiere/model/X_AD_Ref_List.java | 19 +- .../org/compiere/model/X_AD_Ref_Table.java | 63 +-- .../org/compiere/model/X_AD_Registration.java | 41 +- .../org/compiere/model/X_AD_Replication.java | 19 +- .../model/X_AD_ReplicationDocument.java | 36 +- .../model/X_AD_ReplicationStrategy.java | 19 +- .../compiere/model/X_AD_ReplicationTable.java | 36 +- .../compiere/model/X_AD_Replication_Log.java | 36 +- .../compiere/model/X_AD_Replication_Run.java | 19 +- .../org/compiere/model/X_AD_ReportView.java | 19 +- .../compiere/model/X_AD_ReportView_Col.java | 36 +- base/src/org/compiere/model/X_AD_Role.java | 34 +- .../compiere/model/X_AD_Role_OrgAccess.java | 19 +- .../org/compiere/model/X_AD_Scheduler.java | 24 +- .../org/compiere/model/X_AD_SchedulerLog.java | 19 +- .../model/X_AD_SchedulerRecipient.java | 53 +-- .../compiere/model/X_AD_Scheduler_Para.java | 36 +- .../compiere/model/X_AD_SearchDefinition.java | 20 + .../compiere/model/X_AD_Sequence_Audit.java | 36 +- .../org/compiere/model/X_AD_Sequence_No.java | 19 +- base/src/org/compiere/model/X_AD_Session.java | 19 +- base/src/org/compiere/model/X_AD_Tab.java | 107 ++--- base/src/org/compiere/model/X_AD_Table.java | 41 +- .../org/compiere/model/X_AD_Table_Access.java | 36 +- .../model/X_AD_Table_ScriptValidator.java | 36 +- .../org/compiere/model/X_AD_Task_Access.java | 36 +- base/src/org/compiere/model/X_AD_TreeBar.java | 36 +- .../src/org/compiere/model/X_AD_TreeNode.java | 19 +- .../org/compiere/model/X_AD_TreeNodeBP.java | 19 +- .../org/compiere/model/X_AD_TreeNodeCMC.java | 19 +- .../org/compiere/model/X_AD_TreeNodeCMM.java | 19 +- .../org/compiere/model/X_AD_TreeNodeCMS.java | 19 +- .../org/compiere/model/X_AD_TreeNodeCMT.java | 19 +- .../org/compiere/model/X_AD_TreeNodeMM.java | 19 +- .../org/compiere/model/X_AD_TreeNodePR.java | 19 +- .../org/compiere/model/X_AD_TreeNodeU1.java | 19 +- .../org/compiere/model/X_AD_TreeNodeU2.java | 19 +- .../org/compiere/model/X_AD_TreeNodeU3.java | 19 +- .../org/compiere/model/X_AD_TreeNodeU4.java | 19 +- base/src/org/compiere/model/X_AD_User.java | 75 +--- .../org/compiere/model/X_AD_UserBPAccess.java | 36 +- .../src/org/compiere/model/X_AD_UserMail.java | 53 +-- .../org/compiere/model/X_AD_UserQuery.java | 53 +-- .../compiere/model/X_AD_User_OrgAccess.java | 19 +- .../org/compiere/model/X_AD_User_Roles.java | 36 +- .../compiere/model/X_AD_User_Substitute.java | 24 +- .../org/compiere/model/X_AD_WF_Activity.java | 109 +---- .../model/X_AD_WF_ActivityResult.java | 19 +- .../src/org/compiere/model/X_AD_WF_Block.java | 19 +- .../compiere/model/X_AD_WF_EventAudit.java | 75 +--- .../compiere/model/X_AD_WF_NextCondition.java | 36 +- base/src/org/compiere/model/X_AD_WF_Node.java | 211 ++------- .../org/compiere/model/X_AD_WF_NodeNext.java | 24 +- .../org/compiere/model/X_AD_WF_Node_Para.java | 36 +- .../org/compiere/model/X_AD_WF_Process.java | 75 +--- .../compiere/model/X_AD_WF_ProcessData.java | 19 +- .../compiere/model/X_AD_WF_Responsible.java | 24 +- base/src/org/compiere/model/X_AD_Window.java | 36 +- .../compiere/model/X_AD_Window_Access.java | 36 +- .../org/compiere/model/X_AD_Workbench.java | 5 + .../compiere/model/X_AD_WorkbenchWindow.java | 87 +--- .../src/org/compiere/model/X_AD_Workflow.java | 87 +--- .../model/X_AD_WorkflowProcessor.java | 5 + .../model/X_AD_WorkflowProcessorLog.java | 19 +- .../compiere/model/X_AD_Workflow_Access.java | 36 +- .../compiere/model/X_ASP_ClientException.java | 155 ++----- .../org/compiere/model/X_ASP_ClientLevel.java | 36 +- base/src/org/compiere/model/X_ASP_Field.java | 36 +- base/src/org/compiere/model/X_ASP_Form.java | 36 +- base/src/org/compiere/model/X_ASP_Level.java | 19 +- .../src/org/compiere/model/X_ASP_Process.java | 36 +- .../compiere/model/X_ASP_Process_Para.java | 36 +- base/src/org/compiere/model/X_ASP_Tab.java | 36 +- base/src/org/compiere/model/X_ASP_Task.java | 36 +- base/src/org/compiere/model/X_ASP_Window.java | 36 +- .../org/compiere/model/X_ASP_Workflow.java | 36 +- base/src/org/compiere/model/X_A_Asset.java | 175 ++------ .../org/compiere/model/X_A_Asset_Acct.java | 99 ++++- .../compiere/model/X_A_Asset_Addition.java | 36 +- .../org/compiere/model/X_A_Asset_Change.java | 99 ++++- .../compiere/model/X_A_Asset_Delivery.java | 70 +-- .../compiere/model/X_A_Asset_Disposed.java | 10 + .../compiere/model/X_A_Asset_Group_Acct.java | 116 +++-- .../compiere/model/X_A_Asset_Retirement.java | 36 +- .../compiere/model/X_A_Asset_Reval_Entry.java | 75 +--- .../org/compiere/model/X_A_Asset_Split.java | 10 + .../compiere/model/X_A_Asset_Transfer.java | 35 ++ .../model/X_A_Depreciation_Build.java | 15 + .../model/X_A_Depreciation_Entry.java | 75 +--- .../compiere/model/X_A_Depreciation_Exp.java | 5 + .../model/X_A_Depreciation_Forecast.java | 10 + .../org/compiere/model/X_A_Registration.java | 70 +-- .../model/X_A_RegistrationAttribute.java | 10 + .../model/X_A_RegistrationProduct.java | 36 +- .../compiere/model/X_A_RegistrationValue.java | 36 +- base/src/org/compiere/model/X_B_Bid.java | 53 +-- .../org/compiere/model/X_B_BidComment.java | 36 +- base/src/org/compiere/model/X_B_Buyer.java | 19 +- .../org/compiere/model/X_B_BuyerFunds.java | 53 +-- base/src/org/compiere/model/X_B_Offer.java | 53 +-- base/src/org/compiere/model/X_B_Seller.java | 19 +- .../org/compiere/model/X_B_SellerFunds.java | 53 +-- base/src/org/compiere/model/X_B_Topic.java | 36 +- .../org/compiere/model/X_B_TopicCategory.java | 19 +- .../src/org/compiere/model/X_B_TopicType.java | 41 +- .../compiere/model/X_CM_AccessContainer.java | 36 +- .../model/X_CM_AccessListBPGroup.java | 36 +- .../compiere/model/X_CM_AccessListRole.java | 36 +- .../org/compiere/model/X_CM_AccessMedia.java | 36 +- .../model/X_CM_AccessNewsChannel.java | 36 +- .../org/compiere/model/X_CM_AccessStage.java | 36 +- base/src/org/compiere/model/X_CM_Ad.java | 36 +- base/src/org/compiere/model/X_CM_Ad_Cat.java | 19 +- .../compiere/model/X_CM_BroadcastServer.java | 19 +- base/src/org/compiere/model/X_CM_CStage.java | 41 +- .../org/compiere/model/X_CM_CStageTTable.java | 36 +- .../compiere/model/X_CM_CStage_Element.java | 19 +- base/src/org/compiere/model/X_CM_Chat.java | 36 +- .../org/compiere/model/X_CM_ChatEntry.java | 46 +- .../src/org/compiere/model/X_CM_ChatType.java | 19 +- .../compiere/model/X_CM_ChatTypeUpdate.java | 36 +- .../org/compiere/model/X_CM_ChatUpdate.java | 36 +- .../org/compiere/model/X_CM_Container.java | 41 +- .../compiere/model/X_CM_ContainerTTable.java | 36 +- .../model/X_CM_Container_Element.java | 19 +- .../compiere/model/X_CM_Container_URL.java | 19 +- base/src/org/compiere/model/X_CM_Media.java | 19 +- .../org/compiere/model/X_CM_MediaDeploy.java | 36 +- .../org/compiere/model/X_CM_Media_Server.java | 19 +- .../org/compiere/model/X_CM_NewsChannel.java | 19 +- .../src/org/compiere/model/X_CM_NewsItem.java | 19 +- .../src/org/compiere/model/X_CM_Template.java | 19 +- .../compiere/model/X_CM_TemplateTable.java | 36 +- .../compiere/model/X_CM_Template_Ad_Cat.java | 36 +- .../org/compiere/model/X_CM_WebAccessLog.java | 70 +-- .../org/compiere/model/X_CM_WebProject.java | 20 + .../model/X_CM_WebProject_Domain.java | 36 +- .../org/compiere/model/X_CM_WikiToken.java | 19 +- .../org/compiere/model/X_C_AcctProcessor.java | 41 +- .../compiere/model/X_C_AcctProcessorLog.java | 19 +- .../org/compiere/model/X_C_AcctSchema.java | 53 +-- .../model/X_C_AcctSchema_Default.java | 379 ++++++++++++++++- .../model/X_C_AcctSchema_Element.java | 177 ++------ .../org/compiere/model/X_C_AcctSchema_GL.java | 69 ++- .../org/compiere/model/X_C_AllocationHdr.java | 19 +- .../compiere/model/X_C_AllocationLine.java | 104 +---- .../compiere/model/X_C_BP_BankAccount.java | 53 +-- .../compiere/model/X_C_BP_Customer_Acct.java | 51 +-- base/src/org/compiere/model/X_C_BP_EDI.java | 41 +- .../compiere/model/X_C_BP_Employee_Acct.java | 46 +- base/src/org/compiere/model/X_C_BP_Group.java | 68 ++- .../org/compiere/model/X_C_BP_Group_Acct.java | 101 +++-- .../org/compiere/model/X_C_BP_Relation.java | 46 +- .../compiere/model/X_C_BP_Vendor_Acct.java | 51 +-- .../compiere/model/X_C_BP_Withholding.java | 36 +- base/src/org/compiere/model/X_C_BPartner.java | 151 +++---- .../compiere/model/X_C_BPartner_Location.java | 41 +- .../compiere/model/X_C_BPartner_Product.java | 36 +- base/src/org/compiere/model/X_C_Bank.java | 5 + .../org/compiere/model/X_C_BankAccount.java | 36 +- .../compiere/model/X_C_BankAccountDoc.java | 24 +- .../compiere/model/X_C_BankAccount_Acct.java | 96 +++-- .../org/compiere/model/X_C_BankStatement.java | 19 +- .../compiere/model/X_C_BankStatementLine.java | 104 +---- .../model/X_C_BankStatementLoader.java | 19 +- base/src/org/compiere/model/X_C_Campaign.java | 19 +- base/src/org/compiere/model/X_C_Cash.java | 80 +--- base/src/org/compiere/model/X_C_CashBook.java | 19 +- .../org/compiere/model/X_C_CashBook_Acct.java | 61 +-- base/src/org/compiere/model/X_C_CashLine.java | 104 +---- base/src/org/compiere/model/X_C_Channel.java | 19 +- base/src/org/compiere/model/X_C_Charge.java | 53 +-- .../model/X_C_ChargeType_DocType.java | 36 +- .../org/compiere/model/X_C_Charge_Acct.java | 46 +- base/src/org/compiere/model/X_C_City.java | 24 +- .../org/compiere/model/X_C_Commission.java | 41 +- .../org/compiere/model/X_C_CommissionAmt.java | 36 +- .../compiere/model/X_C_CommissionDetail.java | 70 +-- .../compiere/model/X_C_CommissionLine.java | 104 +---- .../org/compiere/model/X_C_CommissionRun.java | 19 +- .../compiere/model/X_C_Conversion_Rate.java | 29 +- base/src/org/compiere/model/X_C_Country.java | 19 +- .../org/compiere/model/X_C_Currency_Acct.java | 56 ++- base/src/org/compiere/model/X_C_Cycle.java | 19 +- .../org/compiere/model/X_C_CyclePhase.java | 36 +- .../src/org/compiere/model/X_C_CycleStep.java | 19 +- base/src/org/compiere/model/X_C_DocType.java | 66 +-- .../compiere/model/X_C_DocTypeCounter.java | 24 +- .../org/compiere/model/X_C_DunningLevel.java | 41 +- .../org/compiere/model/X_C_DunningRun.java | 19 +- .../compiere/model/X_C_DunningRunEntry.java | 92 +--- .../compiere/model/X_C_DunningRunLine.java | 70 +-- base/src/org/compiere/model/X_C_Element.java | 19 +- .../org/compiere/model/X_C_ElementValue.java | 53 +-- .../org/compiere/model/X_C_InterOrg_Acct.java | 29 +- base/src/org/compiere/model/X_C_Invoice.java | 304 ++++--------- .../org/compiere/model/X_C_InvoiceBatch.java | 41 +- .../compiere/model/X_C_InvoiceBatchLine.java | 199 ++------- .../org/compiere/model/X_C_InvoiceLine.java | 272 +++--------- .../model/X_C_InvoicePaySchedule.java | 36 +- .../org/compiere/model/X_C_InvoiceTax.java | 36 +- base/src/org/compiere/model/X_C_Job.java | 19 +- .../org/compiere/model/X_C_JobAssignment.java | 36 +- .../compiere/model/X_C_JobRemuneration.java | 36 +- .../org/compiere/model/X_C_LandedCost.java | 87 +--- .../model/X_C_LandedCostAllocation.java | 58 +-- base/src/org/compiere/model/X_C_Location.java | 53 +-- .../compiere/model/X_C_NonBusinessDay.java | 19 +- base/src/org/compiere/model/X_C_Order.java | 356 +++++----------- .../src/org/compiere/model/X_C_OrderLine.java | 304 ++++--------- base/src/org/compiere/model/X_C_OrderTax.java | 36 +- .../org/compiere/model/X_C_OrgAssignment.java | 19 +- base/src/org/compiere/model/X_C_POS.java | 114 ++--- base/src/org/compiere/model/X_C_POSKey.java | 53 +-- .../org/compiere/model/X_C_PaySchedule.java | 19 +- .../org/compiere/model/X_C_PaySelection.java | 19 +- .../compiere/model/X_C_PaySelectionCheck.java | 58 +-- .../compiere/model/X_C_PaySelectionLine.java | 53 +-- base/src/org/compiere/model/X_C_Payment.java | 260 +++--------- .../compiere/model/X_C_PaymentAllocate.java | 53 +-- .../org/compiere/model/X_C_PaymentBatch.java | 19 +- .../compiere/model/X_C_PaymentProcessor.java | 41 +- base/src/org/compiere/model/X_C_Period.java | 19 +- .../org/compiere/model/X_C_PeriodControl.java | 19 +- base/src/org/compiere/model/X_C_Phase.java | 36 +- base/src/org/compiere/model/X_C_Project.java | 165 ++----- .../org/compiere/model/X_C_ProjectIssue.java | 80 +--- .../compiere/model/X_C_ProjectIssueMA.java | 24 +- .../org/compiere/model/X_C_ProjectLine.java | 126 ++---- .../org/compiere/model/X_C_ProjectPhase.java | 70 +-- .../org/compiere/model/X_C_ProjectTask.java | 53 +-- .../org/compiere/model/X_C_Project_Acct.java | 46 +- .../src/org/compiere/model/X_C_Recurring.java | 87 +--- .../org/compiere/model/X_C_Recurring_Run.java | 104 +---- base/src/org/compiere/model/X_C_Region.java | 19 +- .../model/X_C_RevenueRecognition_Plan.java | 80 +--- .../model/X_C_RevenueRecognition_Run.java | 36 +- base/src/org/compiere/model/X_C_RfQ.java | 109 +---- base/src/org/compiere/model/X_C_RfQLine.java | 41 +- .../org/compiere/model/X_C_RfQLineQty.java | 36 +- .../org/compiere/model/X_C_RfQResponse.java | 104 +---- .../compiere/model/X_C_RfQResponseLine.java | 36 +- .../model/X_C_RfQResponseLineQty.java | 36 +- .../src/org/compiere/model/X_C_RfQ_Topic.java | 19 +- .../model/X_C_RfQ_TopicSubscriber.java | 70 +-- .../model/X_C_RfQ_TopicSubscriberOnly.java | 53 +-- .../org/compiere/model/X_C_SalesRegion.java | 5 + .../org/compiere/model/X_C_ServiceLevel.java | 36 +- .../compiere/model/X_C_ServiceLevelLine.java | 19 +- base/src/org/compiere/model/X_C_SubAcct.java | 19 +- .../org/compiere/model/X_C_Subscription.java | 53 +-- .../model/X_C_Subscription_Delivery.java | 19 +- base/src/org/compiere/model/X_C_Task.java | 36 +- base/src/org/compiere/model/X_C_Tax.java | 51 +-- .../model/X_C_TaxDeclarationAcct.java | 109 +---- .../model/X_C_TaxDeclarationLine.java | 121 +----- .../src/org/compiere/model/X_C_TaxPostal.java | 19 +- base/src/org/compiere/model/X_C_Tax_Acct.java | 61 +-- .../compiere/model/X_C_UOM_Conversion.java | 41 +- .../compiere/model/X_C_UserRemuneration.java | 36 +- .../compiere/model/X_C_ValidCombination.java | 91 ++-- .../org/compiere/model/X_C_Withholding.java | 24 +- .../compiere/model/X_C_Withholding_Acct.java | 41 +- base/src/org/compiere/model/X_C_Year.java | 19 +- base/src/org/compiere/model/X_EXP_Format.java | 19 +- .../org/compiere/model/X_EXP_FormatLine.java | 46 +- .../org/compiere/model/X_EXP_Processor.java | 19 +- .../model/X_EXP_ProcessorParameter.java | 19 +- base/src/org/compiere/model/X_Fact_Acct.java | 328 ++++---------- .../compiere/model/X_Fact_Acct_Summary.java | 253 +++-------- .../compiere/model/X_GL_BudgetControl.java | 36 +- .../org/compiere/model/X_GL_Distribution.java | 163 +++---- .../compiere/model/X_GL_DistributionLine.java | 141 ++---- base/src/org/compiere/model/X_GL_Fund.java | 19 +- .../compiere/model/X_GL_FundRestriction.java | 36 +- base/src/org/compiere/model/X_GL_Journal.java | 131 ++---- .../org/compiere/model/X_GL_JournalBatch.java | 63 +-- .../org/compiere/model/X_GL_JournalLine.java | 97 ++--- .../org/compiere/model/X_IMP_Processor.java | 19 +- .../compiere/model/X_IMP_ProcessorLog.java | 19 +- .../model/X_IMP_ProcessorParameter.java | 19 +- base/src/org/compiere/model/X_I_Asset.java | 201 ++++----- base/src/org/compiere/model/X_I_BPartner.java | 138 ++---- .../org/compiere/model/X_I_BankStatement.java | 138 ++---- .../compiere/model/X_I_Conversion_Rate.java | 58 +-- .../org/compiere/model/X_I_ElementValue.java | 46 +- .../src/org/compiere/model/X_I_FAJournal.java | 306 +++---------- .../src/org/compiere/model/X_I_GLJournal.java | 333 ++++----------- .../compiere/model/X_I_InOutLineConfirm.java | 19 +- .../src/org/compiere/model/X_I_Inventory.java | 87 +--- base/src/org/compiere/model/X_I_Invoice.java | 313 +++----------- base/src/org/compiere/model/X_I_Order.java | 369 ++++------------ base/src/org/compiere/model/X_I_Payment.java | 121 +----- .../src/org/compiere/model/X_I_PriceList.java | 104 +---- base/src/org/compiere/model/X_I_Product.java | 87 +--- .../org/compiere/model/X_I_ReportLine.java | 70 +-- .../org/compiere/model/X_K_CategoryValue.java | 19 +- base/src/org/compiere/model/X_K_Comment.java | 36 +- base/src/org/compiere/model/X_K_Entry.java | 53 +-- .../org/compiere/model/X_K_EntryCategory.java | 53 +-- .../org/compiere/model/X_K_EntryRelated.java | 19 +- base/src/org/compiere/model/X_K_Index.java | 70 +-- .../src/org/compiere/model/X_K_IndexStop.java | 53 +-- base/src/org/compiere/model/X_K_Topic.java | 19 +- .../src/org/compiere/model/X_M_Attribute.java | 19 +- .../compiere/model/X_M_AttributeInstance.java | 41 +- .../org/compiere/model/X_M_AttributeSet.java | 36 +- .../model/X_M_AttributeSetExclude.java | 36 +- .../model/X_M_AttributeSetInstance.java | 36 +- .../org/compiere/model/X_M_AttributeUse.java | 36 +- .../compiere/model/X_M_AttributeValue.java | 19 +- base/src/org/compiere/model/X_M_BOM.java | 36 +- .../compiere/model/X_M_BOMAlternative.java | 19 +- .../org/compiere/model/X_M_BOMProduct.java | 80 +--- .../org/compiere/model/X_M_ChangeRequest.java | 41 +- base/src/org/compiere/model/X_M_Cost.java | 75 +--- .../org/compiere/model/X_M_CostDetail.java | 194 ++------- .../src/org/compiere/model/X_M_CostQueue.java | 75 +--- base/src/org/compiere/model/X_M_Demand.java | 36 +- .../org/compiere/model/X_M_DemandDetail.java | 70 +-- .../org/compiere/model/X_M_DemandLine.java | 53 +-- .../model/X_M_DiscountSchemaBreak.java | 53 +-- .../model/X_M_DiscountSchemaLine.java | 87 +--- .../model/X_M_DistributionListLine.java | 53 +-- .../compiere/model/X_M_DistributionRun.java | 36 +- .../model/X_M_DistributionRunLine.java | 53 +-- base/src/org/compiere/model/X_M_Forecast.java | 53 +-- .../org/compiere/model/X_M_ForecastLine.java | 70 +-- base/src/org/compiere/model/X_M_Freight.java | 92 +--- base/src/org/compiere/model/X_M_InOut.java | 234 ++++------ .../org/compiere/model/X_M_InOutConfirm.java | 53 +-- .../src/org/compiere/model/X_M_InOutLine.java | 214 +++------- .../compiere/model/X_M_InOutLineConfirm.java | 70 +-- .../org/compiere/model/X_M_InOutLineMA.java | 24 +- .../src/org/compiere/model/X_M_Inventory.java | 119 ++---- .../org/compiere/model/X_M_InventoryLine.java | 56 ++- .../compiere/model/X_M_InventoryLineMA.java | 24 +- base/src/org/compiere/model/X_M_Locator.java | 19 +- base/src/org/compiere/model/X_M_Lot.java | 36 +- .../org/compiere/model/X_M_LotCtlExclude.java | 36 +- base/src/org/compiere/model/X_M_MatchInv.java | 58 +-- base/src/org/compiere/model/X_M_MatchPO.java | 75 +--- base/src/org/compiere/model/X_M_Movement.java | 168 +++----- .../compiere/model/X_M_MovementConfirm.java | 36 +- .../org/compiere/model/X_M_MovementLine.java | 66 +-- .../model/X_M_MovementLineConfirm.java | 53 +-- .../compiere/model/X_M_MovementLineMA.java | 24 +- .../compiere/model/X_M_OperationResource.java | 53 +-- base/src/org/compiere/model/X_M_Package.java | 36 +- .../org/compiere/model/X_M_PackageLine.java | 36 +- .../org/compiere/model/X_M_PerpetualInv.java | 36 +- .../src/org/compiere/model/X_M_PriceList.java | 24 +- .../compiere/model/X_M_PriceList_Version.java | 41 +- base/src/org/compiere/model/X_M_Product.java | 170 ++------ .../compiere/model/X_M_ProductDownload.java | 19 +- .../compiere/model/X_M_ProductOperation.java | 19 +- .../org/compiere/model/X_M_ProductPrice.java | 36 +- .../model/X_M_ProductPriceVendorBreak.java | 41 +- .../org/compiere/model/X_M_Product_Acct.java | 146 +++++-- .../org/compiere/model/X_M_Product_BOM.java | 24 +- .../compiere/model/X_M_Product_Category.java | 41 +- .../model/X_M_Product_Category_Acct.java | 146 +++++-- .../compiere/model/X_M_Product_Costing.java | 36 +- .../org/compiere/model/X_M_Product_PO.java | 70 +-- .../org/compiere/model/X_M_Production.java | 63 +-- .../compiere/model/X_M_ProductionLine.java | 46 +- .../compiere/model/X_M_ProductionLineMA.java | 24 +- .../compiere/model/X_M_ProductionPlan.java | 29 +- .../src/org/compiere/model/X_M_Promotion.java | 19 +- .../model/X_M_PromotionDistribution.java | 36 +- .../model/X_M_PromotionGroupLine.java | 36 +- .../org/compiere/model/X_M_PromotionLine.java | 36 +- .../model/X_M_PromotionPreCondition.java | 104 +---- .../compiere/model/X_M_PromotionReward.java | 58 +-- base/src/org/compiere/model/X_M_RMA.java | 90 ++-- base/src/org/compiere/model/X_M_RMALine.java | 58 +-- .../compiere/model/X_M_RelatedProduct.java | 24 +- .../src/org/compiere/model/X_M_Replenish.java | 58 +-- .../org/compiere/model/X_M_Requisition.java | 70 +-- .../compiere/model/X_M_RequisitionLine.java | 109 +---- .../compiere/model/X_M_SerNoCtlExclude.java | 36 +- base/src/org/compiere/model/X_M_Shipper.java | 19 +- base/src/org/compiere/model/X_M_Storage.java | 29 +- .../org/compiere/model/X_M_Substitute.java | 24 +- .../org/compiere/model/X_M_Transaction.java | 131 ++---- .../model/X_M_TransactionAllocation.java | 112 ++--- .../src/org/compiere/model/X_M_Warehouse.java | 10 + .../compiere/model/X_M_Warehouse_Acct.java | 56 ++- .../org/compiere/model/X_PA_Achievement.java | 19 +- .../compiere/model/X_PA_BenchmarkData.java | 19 +- .../org/compiere/model/X_PA_ColorSchema.java | 20 + .../compiere/model/X_PA_DashboardContent.java | 36 +- base/src/org/compiere/model/X_PA_Goal.java | 75 +--- .../compiere/model/X_PA_GoalRestriction.java | 87 +--- .../org/compiere/model/X_PA_Hierarchy.java | 40 ++ base/src/org/compiere/model/X_PA_Measure.java | 104 +---- .../org/compiere/model/X_PA_MeasureCalc.java | 19 +- base/src/org/compiere/model/X_PA_Ratio.java | 19 +- .../org/compiere/model/X_PA_RatioElement.java | 46 +- base/src/org/compiere/model/X_PA_Report.java | 97 ++--- .../org/compiere/model/X_PA_ReportColumn.java | 187 ++------ .../org/compiere/model/X_PA_ReportCube.java | 19 +- .../org/compiere/model/X_PA_ReportLine.java | 46 +- .../org/compiere/model/X_PA_ReportSource.java | 131 ++---- .../src/org/compiere/model/X_PA_SLA_Goal.java | 36 +- .../org/compiere/model/X_PA_SLA_Measure.java | 36 +- .../src/org/compiere/model/X_RV_BPartner.java | 229 ++++------ .../compiere/model/X_RV_WarehousePrice.java | 70 +-- base/src/org/compiere/model/X_R_Category.java | 19 +- .../compiere/model/X_R_CategoryUpdates.java | 36 +- .../compiere/model/X_R_ContactInterest.java | 36 +- base/src/org/compiere/model/X_R_Group.java | 36 +- .../org/compiere/model/X_R_GroupUpdates.java | 36 +- .../org/compiere/model/X_R_IssueKnown.java | 53 +-- .../org/compiere/model/X_R_IssueProject.java | 36 +- .../org/compiere/model/X_R_IssueSystem.java | 19 +- .../src/org/compiere/model/X_R_IssueUser.java | 19 +- base/src/org/compiere/model/X_R_Request.java | 401 ++++-------------- .../org/compiere/model/X_R_RequestAction.java | 318 +++----------- .../compiere/model/X_R_RequestProcessor.java | 24 +- .../model/X_R_RequestProcessorLog.java | 19 +- .../model/X_R_RequestProcessor_Route.java | 53 +-- .../org/compiere/model/X_R_RequestType.java | 19 +- .../model/X_R_RequestTypeUpdates.java | 36 +- .../org/compiere/model/X_R_RequestUpdate.java | 24 +- .../compiere/model/X_R_RequestUpdates.java | 36 +- base/src/org/compiere/model/X_R_Status.java | 29 +- .../org/compiere/model/X_S_ExpenseType.java | 53 +-- base/src/org/compiere/model/X_S_Resource.java | 53 +-- .../model/X_S_ResourceAssignment.java | 19 +- .../org/compiere/model/X_S_ResourceType.java | 53 +-- .../model/X_S_ResourceUnAvailable.java | 19 +- .../org/compiere/model/X_S_TimeExpense.java | 41 +- .../compiere/model/X_S_TimeExpenseLine.java | 223 ++-------- base/src/org/compiere/model/X_S_Training.java | 53 +-- .../compiere/model/X_S_Training_Class.java | 36 +- base/src/org/compiere/model/X_T_Aging.java | 155 ++----- .../model/X_T_DistributionRunDetail.java | 121 +----- .../compiere/model/X_T_InventoryValue.java | 109 +---- .../src/org/compiere/model/X_T_InvoiceGL.java | 46 +- .../src/org/compiere/model/X_T_Replenish.java | 92 +--- base/src/org/compiere/model/X_T_Report.java | 36 +- .../compiere/model/X_T_ReportStatement.java | 36 +- .../org/compiere/model/X_T_Transaction.java | 248 +++-------- base/src/org/compiere/model/X_Test.java | 102 ++--- .../org/compiere/model/X_U_POSTerminal.java | 101 +++-- base/src/org/compiere/model/X_U_RoleMenu.java | 36 +- base/src/org/compiere/model/X_U_WebMenu.java | 5 + .../org/compiere/model/X_W_Advertisement.java | 58 +-- base/src/org/compiere/model/X_W_Basket.java | 53 +-- .../org/compiere/model/X_W_BasketLine.java | 36 +- base/src/org/compiere/model/X_W_Click.java | 19 +- .../org/compiere/model/X_W_ClickCount.java | 5 + base/src/org/compiere/model/X_W_Counter.java | 19 +- .../org/compiere/model/X_W_CounterCount.java | 5 + base/src/org/compiere/model/X_W_MailMsg.java | 19 +- base/src/org/compiere/model/X_W_Store.java | 58 +-- 702 files changed, 9191 insertions(+), 21948 deletions(-) diff --git a/base/src/org/compiere/model/I_AD_AlertProcessor.java b/base/src/org/compiere/model/I_AD_AlertProcessor.java index fc4ee55aed..4277b49d8b 100644 --- a/base/src/org/compiere/model/I_AD_AlertProcessor.java +++ b/base/src/org/compiere/model/I_AD_AlertProcessor.java @@ -217,6 +217,8 @@ public interface I_AD_AlertProcessor */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_Attribute.java b/base/src/org/compiere/model/I_AD_Attribute.java index 5b90e13781..104304f08c 100644 --- a/base/src/org/compiere/model/I_AD_Attribute.java +++ b/base/src/org/compiere/model/I_AD_Attribute.java @@ -84,6 +84,8 @@ public interface I_AD_Attribute */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Reference_Value_ID */ public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; @@ -97,6 +99,8 @@ public interface I_AD_Attribute */ public int getAD_Reference_Value_ID(); + public I_AD_Reference getAD_Reference_Value() throws RuntimeException; + /** Column name AD_Table_ID */ public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; diff --git a/base/src/org/compiere/model/I_AD_ClientInfo.java b/base/src/org/compiere/model/I_AD_ClientInfo.java index 214f1b68c6..66ffb1eec6 100644 --- a/base/src/org/compiere/model/I_AD_ClientInfo.java +++ b/base/src/org/compiere/model/I_AD_ClientInfo.java @@ -75,6 +75,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Activity_ID(); + public I_AD_Tree getAD_Tree_Activity() throws RuntimeException; + /** Column name AD_Tree_BPartner_ID */ public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; @@ -88,6 +90,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_BPartner_ID(); + public I_AD_Tree getAD_Tree_BPartner() throws RuntimeException; + /** Column name AD_Tree_Campaign_ID */ public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; @@ -101,6 +105,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Campaign_ID(); + public I_AD_Tree getAD_Tree_Campaign() throws RuntimeException; + /** Column name AD_Tree_Menu_ID */ public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; @@ -114,6 +120,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Menu_ID(); + public I_AD_Tree getAD_Tree_Menu() throws RuntimeException; + /** Column name AD_Tree_Org_ID */ public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; @@ -127,6 +135,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Org_ID(); + public I_AD_Tree getAD_Tree_Org() throws RuntimeException; + /** Column name AD_Tree_Product_ID */ public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; @@ -140,6 +150,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Product_ID(); + public I_AD_Tree getAD_Tree_Product() throws RuntimeException; + /** Column name AD_Tree_Project_ID */ public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; @@ -153,6 +165,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_Project_ID(); + public I_AD_Tree getAD_Tree_Project() throws RuntimeException; + /** Column name AD_Tree_SalesRegion_ID */ public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; @@ -166,6 +180,8 @@ public interface I_AD_ClientInfo */ public int getAD_Tree_SalesRegion_ID(); + public I_AD_Tree getAD_Tree_SalesRegion() throws RuntimeException; + /** Column name C_AcctSchema1_ID */ public static final String COLUMNNAME_C_AcctSchema1_ID = "C_AcctSchema1_ID"; @@ -179,6 +195,8 @@ public interface I_AD_ClientInfo */ public int getC_AcctSchema1_ID(); + public I_C_AcctSchema getC_AcctSchema1() throws RuntimeException; + /** Column name C_BPartnerCashTrx_ID */ public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; @@ -192,6 +210,8 @@ public interface I_AD_ClientInfo */ public int getC_BPartnerCashTrx_ID(); + public I_C_BPartner getC_BPartnerCashTrx() throws RuntimeException; + /** Column name C_Calendar_ID */ public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; @@ -220,6 +240,8 @@ public interface I_AD_ClientInfo */ public int getC_UOM_Length_ID(); + public I_C_UOM getC_UOM_Length() throws RuntimeException; + /** Column name C_UOM_Time_ID */ public static final String COLUMNNAME_C_UOM_Time_ID = "C_UOM_Time_ID"; @@ -233,6 +255,8 @@ public interface I_AD_ClientInfo */ public int getC_UOM_Time_ID(); + public I_C_UOM getC_UOM_Time() throws RuntimeException; + /** Column name C_UOM_Volume_ID */ public static final String COLUMNNAME_C_UOM_Volume_ID = "C_UOM_Volume_ID"; @@ -246,6 +270,8 @@ public interface I_AD_ClientInfo */ public int getC_UOM_Volume_ID(); + public I_C_UOM getC_UOM_Volume() throws RuntimeException; + /** Column name C_UOM_Weight_ID */ public static final String COLUMNNAME_C_UOM_Weight_ID = "C_UOM_Weight_ID"; @@ -259,6 +285,8 @@ public interface I_AD_ClientInfo */ public int getC_UOM_Weight_ID(); + public I_C_UOM getC_UOM_Weight() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -350,6 +378,8 @@ public interface I_AD_ClientInfo /** Get Product for Freight */ public int getM_ProductFreight_ID(); + public I_M_Product getM_ProductFreight() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_Column.java b/base/src/org/compiere/model/I_AD_Column.java index 12db3bdeb4..fb8b9f30d5 100644 --- a/base/src/org/compiere/model/I_AD_Column.java +++ b/base/src/org/compiere/model/I_AD_Column.java @@ -118,6 +118,8 @@ public interface I_AD_Column */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Reference_Value_ID */ public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; @@ -131,6 +133,8 @@ public interface I_AD_Column */ public int getAD_Reference_Value_ID(); + public I_AD_Reference getAD_Reference_Value() throws RuntimeException; + /** Column name AD_Table_ID */ public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; diff --git a/base/src/org/compiere/model/I_AD_Field.java b/base/src/org/compiere/model/I_AD_Field.java index 17c885e4ef..e754d14fd4 100644 --- a/base/src/org/compiere/model/I_AD_Field.java +++ b/base/src/org/compiere/model/I_AD_Field.java @@ -118,6 +118,8 @@ public interface I_AD_Field */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Reference_Value_ID */ public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; @@ -131,6 +133,8 @@ public interface I_AD_Field */ public int getAD_Reference_Value_ID(); + public I_AD_Reference getAD_Reference_Value() throws RuntimeException; + /** Column name AD_Tab_ID */ public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; @@ -272,6 +276,8 @@ public interface I_AD_Field */ public int getIncluded_Tab_ID(); + public I_AD_Tab getIncluded_Tab() throws RuntimeException; + /** Column name InfoFactoryClass */ public static final String COLUMNNAME_InfoFactoryClass = "InfoFactoryClass"; diff --git a/base/src/org/compiere/model/I_AD_Find.java b/base/src/org/compiere/model/I_AD_Find.java index 42d37d5a3d..f205081de3 100644 --- a/base/src/org/compiere/model/I_AD_Find.java +++ b/base/src/org/compiere/model/I_AD_Find.java @@ -62,6 +62,8 @@ public interface I_AD_Find */ public int getAD_Column_ID(); + public I_AD_Column getAD_Column() throws RuntimeException; + /** Column name AD_Find_ID */ public static final String COLUMNNAME_AD_Find_ID = "AD_Find_ID"; diff --git a/base/src/org/compiere/model/I_AD_InfoColumn.java b/base/src/org/compiere/model/I_AD_InfoColumn.java index b9ed34e58a..6f6b37e2ca 100644 --- a/base/src/org/compiere/model/I_AD_InfoColumn.java +++ b/base/src/org/compiere/model/I_AD_InfoColumn.java @@ -118,6 +118,8 @@ public interface I_AD_InfoColumn */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_AD_LdapProcessor.java b/base/src/org/compiere/model/I_AD_LdapProcessor.java index 370b5cbbaa..634694be86 100644 --- a/base/src/org/compiere/model/I_AD_LdapProcessor.java +++ b/base/src/org/compiere/model/I_AD_LdapProcessor.java @@ -204,6 +204,8 @@ public interface I_AD_LdapProcessor */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_Note.java b/base/src/org/compiere/model/I_AD_Note.java index 008ccf5493..772026ffdb 100644 --- a/base/src/org/compiere/model/I_AD_Note.java +++ b/base/src/org/compiere/model/I_AD_Note.java @@ -62,6 +62,8 @@ public interface I_AD_Note */ public int getAD_Message_ID(); + public I_AD_Message getAD_Message() throws RuntimeException; + /** Column name AD_Note_ID */ public static final String COLUMNNAME_AD_Note_ID = "AD_Note_ID"; diff --git a/base/src/org/compiere/model/I_AD_OrgInfo.java b/base/src/org/compiere/model/I_AD_OrgInfo.java index 8dc5104d6e..3a71ac722d 100644 --- a/base/src/org/compiere/model/I_AD_OrgInfo.java +++ b/base/src/org/compiere/model/I_AD_OrgInfo.java @@ -105,6 +105,8 @@ public interface I_AD_OrgInfo */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -134,6 +136,8 @@ public interface I_AD_OrgInfo */ public int getDropShip_Warehouse_ID(); + public I_M_Warehouse getDropShip_Warehouse() throws RuntimeException; + /** Column name DUNS */ public static final String COLUMNNAME_DUNS = "DUNS"; @@ -223,6 +227,8 @@ public interface I_AD_OrgInfo */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name TaxID */ public static final String COLUMNNAME_TaxID = "TaxID"; @@ -249,6 +255,8 @@ public interface I_AD_OrgInfo */ public int getTransferBank_ID(); + public I_C_Bank getTransferBank() throws RuntimeException; + /** Column name TransferCashBook_ID */ public static final String COLUMNNAME_TransferCashBook_ID = "TransferCashBook_ID"; @@ -258,6 +266,8 @@ public interface I_AD_OrgInfo /** Get CashBook for transfers */ public int getTransferCashBook_ID(); + public I_C_CashBook getTransferCashBook() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_Package_Imp_Backup.java b/base/src/org/compiere/model/I_AD_Package_Imp_Backup.java index fcc0861fb9..6a20205ce7 100644 --- a/base/src/org/compiere/model/I_AD_Package_Imp_Backup.java +++ b/base/src/org/compiere/model/I_AD_Package_Imp_Backup.java @@ -62,6 +62,8 @@ public interface I_AD_Package_Imp_Backup */ public int getAD_Column_ID(); + public I_AD_Column getAD_Column() throws RuntimeException; + /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -133,6 +135,8 @@ public interface I_AD_Package_Imp_Backup */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Table_ID */ public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; diff --git a/base/src/org/compiere/model/I_AD_PrintForm.java b/base/src/org/compiere/model/I_AD_PrintForm.java index 863cecbca6..d5a62aca6b 100644 --- a/base/src/org/compiere/model/I_AD_PrintForm.java +++ b/base/src/org/compiere/model/I_AD_PrintForm.java @@ -117,6 +117,8 @@ public interface I_AD_PrintForm */ public int getDistrib_Order_MailText_ID(); + public I_R_MailText getDistrib_Order_MailText() throws RuntimeException; + /** Column name Distrib_Order_PrintFormat_ID */ public static final String COLUMNNAME_Distrib_Order_PrintFormat_ID = "Distrib_Order_PrintFormat_ID"; @@ -130,6 +132,8 @@ public interface I_AD_PrintForm */ public int getDistrib_Order_PrintFormat_ID(); + public I_AD_PrintFormat getDistrib_Order_PrintFormat() throws RuntimeException; + /** Column name Invoice_MailText_ID */ public static final String COLUMNNAME_Invoice_MailText_ID = "Invoice_MailText_ID"; @@ -143,6 +147,8 @@ public interface I_AD_PrintForm */ public int getInvoice_MailText_ID(); + public I_R_MailText getInvoice_MailText() throws RuntimeException; + /** Column name Invoice_PrintFormat_ID */ public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; @@ -156,6 +162,8 @@ public interface I_AD_PrintForm */ public int getInvoice_PrintFormat_ID(); + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -182,6 +190,8 @@ public interface I_AD_PrintForm */ public int getManuf_Order_MailText_ID(); + public I_R_MailText getManuf_Order_MailText() throws RuntimeException; + /** Column name Manuf_Order_PrintFormat_ID */ public static final String COLUMNNAME_Manuf_Order_PrintFormat_ID = "Manuf_Order_PrintFormat_ID"; @@ -195,6 +205,8 @@ public interface I_AD_PrintForm */ public int getManuf_Order_PrintFormat_ID(); + public I_AD_PrintFormat getManuf_Order_PrintFormat() throws RuntimeException; + /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; @@ -221,6 +233,8 @@ public interface I_AD_PrintForm */ public int getOrder_MailText_ID(); + public I_R_MailText getOrder_MailText() throws RuntimeException; + /** Column name Order_PrintFormat_ID */ public static final String COLUMNNAME_Order_PrintFormat_ID = "Order_PrintFormat_ID"; @@ -234,6 +248,8 @@ public interface I_AD_PrintForm */ public int getOrder_PrintFormat_ID(); + public I_AD_PrintFormat getOrder_PrintFormat() throws RuntimeException; + /** Column name Project_MailText_ID */ public static final String COLUMNNAME_Project_MailText_ID = "Project_MailText_ID"; @@ -247,6 +263,8 @@ public interface I_AD_PrintForm */ public int getProject_MailText_ID(); + public I_R_MailText getProject_MailText() throws RuntimeException; + /** Column name Project_PrintFormat_ID */ public static final String COLUMNNAME_Project_PrintFormat_ID = "Project_PrintFormat_ID"; @@ -260,6 +278,8 @@ public interface I_AD_PrintForm */ public int getProject_PrintFormat_ID(); + public I_AD_PrintFormat getProject_PrintFormat() throws RuntimeException; + /** Column name Remittance_MailText_ID */ public static final String COLUMNNAME_Remittance_MailText_ID = "Remittance_MailText_ID"; @@ -273,6 +293,8 @@ public interface I_AD_PrintForm */ public int getRemittance_MailText_ID(); + public I_R_MailText getRemittance_MailText() throws RuntimeException; + /** Column name Remittance_PrintFormat_ID */ public static final String COLUMNNAME_Remittance_PrintFormat_ID = "Remittance_PrintFormat_ID"; @@ -286,6 +308,8 @@ public interface I_AD_PrintForm */ public int getRemittance_PrintFormat_ID(); + public I_AD_PrintFormat getRemittance_PrintFormat() throws RuntimeException; + /** Column name Shipment_MailText_ID */ public static final String COLUMNNAME_Shipment_MailText_ID = "Shipment_MailText_ID"; @@ -299,6 +323,8 @@ public interface I_AD_PrintForm */ public int getShipment_MailText_ID(); + public I_R_MailText getShipment_MailText() throws RuntimeException; + /** Column name Shipment_PrintFormat_ID */ public static final String COLUMNNAME_Shipment_PrintFormat_ID = "Shipment_PrintFormat_ID"; @@ -312,6 +338,8 @@ public interface I_AD_PrintForm */ public int getShipment_PrintFormat_ID(); + public I_AD_PrintFormat getShipment_PrintFormat() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_PrintFormat.java b/base/src/org/compiere/model/I_AD_PrintFormat.java index 78691f5fa8..f412a22d6a 100644 --- a/base/src/org/compiere/model/I_AD_PrintFormat.java +++ b/base/src/org/compiere/model/I_AD_PrintFormat.java @@ -329,6 +329,8 @@ public interface I_AD_PrintFormat */ public int getJasperProcess_ID(); + public I_AD_Process getJasperProcess() throws RuntimeException; + /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; diff --git a/base/src/org/compiere/model/I_AD_PrintFormatItem.java b/base/src/org/compiere/model/I_AD_PrintFormatItem.java index 4d6f8bc2fb..741955b48f 100644 --- a/base/src/org/compiere/model/I_AD_PrintFormatItem.java +++ b/base/src/org/compiere/model/I_AD_PrintFormatItem.java @@ -135,6 +135,8 @@ public interface I_AD_PrintFormatItem */ public int getAD_PrintFormatChild_ID(); + public I_AD_PrintFormat getAD_PrintFormatChild() throws RuntimeException; + /** Column name AD_PrintFormatItem_ID */ public static final String COLUMNNAME_AD_PrintFormatItem_ID = "AD_PrintFormatItem_ID"; diff --git a/base/src/org/compiere/model/I_AD_PrintGraph.java b/base/src/org/compiere/model/I_AD_PrintGraph.java index f1c5474977..fe780f4975 100644 --- a/base/src/org/compiere/model/I_AD_PrintGraph.java +++ b/base/src/org/compiere/model/I_AD_PrintGraph.java @@ -119,6 +119,8 @@ public interface I_AD_PrintGraph */ public int getData_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getData_PrintFormatItem() throws RuntimeException; + /** Column name Data1_PrintFormatItem_ID */ public static final String COLUMNNAME_Data1_PrintFormatItem_ID = "Data1_PrintFormatItem_ID"; @@ -132,6 +134,8 @@ public interface I_AD_PrintGraph */ public int getData1_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getData1_PrintFormatItem() throws RuntimeException; + /** Column name Data2_PrintFormatItem_ID */ public static final String COLUMNNAME_Data2_PrintFormatItem_ID = "Data2_PrintFormatItem_ID"; @@ -145,6 +149,8 @@ public interface I_AD_PrintGraph */ public int getData2_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getData2_PrintFormatItem() throws RuntimeException; + /** Column name Data3_PrintFormatItem_ID */ public static final String COLUMNNAME_Data3_PrintFormatItem_ID = "Data3_PrintFormatItem_ID"; @@ -158,6 +164,8 @@ public interface I_AD_PrintGraph */ public int getData3_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getData3_PrintFormatItem() throws RuntimeException; + /** Column name Data4_PrintFormatItem_ID */ public static final String COLUMNNAME_Data4_PrintFormatItem_ID = "Data4_PrintFormatItem_ID"; @@ -171,6 +179,8 @@ public interface I_AD_PrintGraph */ public int getData4_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getData4_PrintFormatItem() throws RuntimeException; + /** Column name Description */ public static final String COLUMNNAME_Description = "Description"; @@ -197,6 +207,8 @@ public interface I_AD_PrintGraph */ public int getDescription_PrintFormatItem_ID(); + public I_AD_PrintFormatItem getDescription_PrintFormatItem() throws RuntimeException; + /** Column name GraphType */ public static final String COLUMNNAME_GraphType = "GraphType"; diff --git a/base/src/org/compiere/model/I_AD_PrintTableFormat.java b/base/src/org/compiere/model/I_AD_PrintTableFormat.java index 8f744d62a4..fdb936e601 100644 --- a/base/src/org/compiere/model/I_AD_PrintTableFormat.java +++ b/base/src/org/compiere/model/I_AD_PrintTableFormat.java @@ -171,6 +171,8 @@ public interface I_AD_PrintTableFormat */ public int getFunct_PrintFont_ID(); + public I_AD_PrintFont getFunct_PrintFont() throws RuntimeException; + /** Column name FunctBG_PrintColor_ID */ public static final String COLUMNNAME_FunctBG_PrintColor_ID = "FunctBG_PrintColor_ID"; @@ -184,6 +186,8 @@ public interface I_AD_PrintTableFormat */ public int getFunctBG_PrintColor_ID(); + public I_AD_PrintColor getFunctBG_PrintColor() throws RuntimeException; + /** Column name FunctFG_PrintColor_ID */ public static final String COLUMNNAME_FunctFG_PrintColor_ID = "FunctFG_PrintColor_ID"; @@ -197,6 +201,8 @@ public interface I_AD_PrintTableFormat */ public int getFunctFG_PrintColor_ID(); + public I_AD_PrintColor getFunctFG_PrintColor() throws RuntimeException; + /** Column name Hdr_PrintFont_ID */ public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID"; @@ -210,6 +216,8 @@ public interface I_AD_PrintTableFormat */ public int getHdr_PrintFont_ID(); + public I_AD_PrintFont getHdr_PrintFont() throws RuntimeException; + /** Column name HdrLine_PrintColor_ID */ public static final String COLUMNNAME_HdrLine_PrintColor_ID = "HdrLine_PrintColor_ID"; @@ -223,6 +231,8 @@ public interface I_AD_PrintTableFormat */ public int getHdrLine_PrintColor_ID(); + public I_AD_PrintColor getHdrLine_PrintColor() throws RuntimeException; + /** Column name HdrStroke */ public static final String COLUMNNAME_HdrStroke = "HdrStroke"; @@ -262,6 +272,8 @@ public interface I_AD_PrintTableFormat */ public int getHdrTextBG_PrintColor_ID(); + public I_AD_PrintColor getHdrTextBG_PrintColor() throws RuntimeException; + /** Column name HdrTextFG_PrintColor_ID */ public static final String COLUMNNAME_HdrTextFG_PrintColor_ID = "HdrTextFG_PrintColor_ID"; @@ -275,6 +287,8 @@ public interface I_AD_PrintTableFormat */ public int getHdrTextFG_PrintColor_ID(); + public I_AD_PrintColor getHdrTextFG_PrintColor() throws RuntimeException; + /** Column name HeaderCenter */ public static final String COLUMNNAME_HeaderCenter = "HeaderCenter"; @@ -457,6 +471,8 @@ public interface I_AD_PrintTableFormat */ public int getLine_PrintColor_ID(); + public I_AD_PrintColor getLine_PrintColor() throws RuntimeException; + /** Column name LineStroke */ public static final String COLUMNNAME_LineStroke = "LineStroke"; diff --git a/base/src/org/compiere/model/I_AD_Process_Para.java b/base/src/org/compiere/model/I_AD_Process_Para.java index 9e197f48d9..1ec50ea2d4 100644 --- a/base/src/org/compiere/model/I_AD_Process_Para.java +++ b/base/src/org/compiere/model/I_AD_Process_Para.java @@ -114,6 +114,8 @@ public interface I_AD_Process_Para */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Reference_Value_ID */ public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; @@ -127,6 +129,8 @@ public interface I_AD_Process_Para */ public int getAD_Reference_Value_ID(); + public I_AD_Reference getAD_Reference_Value() throws RuntimeException; + /** Column name AD_Val_Rule_ID */ public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; diff --git a/base/src/org/compiere/model/I_AD_Ref_Table.java b/base/src/org/compiere/model/I_AD_Ref_Table.java index 31d0ab0a01..b05ec2f142 100644 --- a/base/src/org/compiere/model/I_AD_Ref_Table.java +++ b/base/src/org/compiere/model/I_AD_Ref_Table.java @@ -62,6 +62,8 @@ public interface I_AD_Ref_Table */ public int getAD_Display(); + public I_AD_Column getAD_Disp() throws RuntimeException; + /** Column name AD_Key */ public static final String COLUMNNAME_AD_Key = "AD_Key"; @@ -75,6 +77,8 @@ public interface I_AD_Ref_Table */ public int getAD_Key(); + public I_AD_Column getAD_() throws RuntimeException; + /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; diff --git a/base/src/org/compiere/model/I_AD_Registration.java b/base/src/org/compiere/model/I_AD_Registration.java index d5bd680271..0cfb761323 100644 --- a/base/src/org/compiere/model/I_AD_Registration.java +++ b/base/src/org/compiere/model/I_AD_Registration.java @@ -118,6 +118,8 @@ public interface I_AD_Registration */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_AD_Role.java b/base/src/org/compiere/model/I_AD_Role.java index 03e9fddcd8..3cc6767d00 100644 --- a/base/src/org/compiere/model/I_AD_Role.java +++ b/base/src/org/compiere/model/I_AD_Role.java @@ -88,6 +88,8 @@ public interface I_AD_Role */ public int getAD_Tree_Menu_ID(); + public I_AD_Tree getAD_Tree_Menu() throws RuntimeException; + /** Column name AD_Tree_Org_ID */ public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; @@ -101,6 +103,8 @@ public interface I_AD_Role */ public int getAD_Tree_Org_ID(); + public I_AD_Tree getAD_Tree_Org() throws RuntimeException; + /** Column name Allow_Info_Account */ public static final String COLUMNNAME_Allow_Info_Account = "Allow_Info_Account"; @@ -527,6 +531,8 @@ public interface I_AD_Role */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_Scheduler.java b/base/src/org/compiere/model/I_AD_Scheduler.java index e8a264085a..e90eefeedc 100644 --- a/base/src/org/compiere/model/I_AD_Scheduler.java +++ b/base/src/org/compiere/model/I_AD_Scheduler.java @@ -258,6 +258,8 @@ public interface I_AD_Scheduler */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_SearchDefinition.java b/base/src/org/compiere/model/I_AD_SearchDefinition.java index fabe985875..0ee40e22ee 100644 --- a/base/src/org/compiere/model/I_AD_SearchDefinition.java +++ b/base/src/org/compiere/model/I_AD_SearchDefinition.java @@ -62,6 +62,8 @@ public interface I_AD_SearchDefinition */ public int getAD_Column_ID(); + public I_AD_Column getAD_Column() throws RuntimeException; + /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -97,6 +99,8 @@ public interface I_AD_SearchDefinition */ public int getAD_Table_ID(); + public I_AD_Table getAD_Table() throws RuntimeException; + /** Column name AD_Window_ID */ public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; @@ -110,6 +114,8 @@ public interface I_AD_SearchDefinition */ public int getAD_Window_ID(); + public I_AD_Window getAD_Window() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -204,6 +210,8 @@ public interface I_AD_SearchDefinition */ public int getPO_Window_ID(); + public I_AD_Window getPO_Window() throws RuntimeException; + /** Column name Query */ public static final String COLUMNNAME_Query = "Query"; diff --git a/base/src/org/compiere/model/I_AD_Tab.java b/base/src/org/compiere/model/I_AD_Tab.java index 74e8b33fa0..b080826f3a 100644 --- a/base/src/org/compiere/model/I_AD_Tab.java +++ b/base/src/org/compiere/model/I_AD_Tab.java @@ -77,6 +77,8 @@ public interface I_AD_Tab */ public int getAD_ColumnSortOrder_ID(); + public I_AD_Column getAD_ColumnSortOrder() throws RuntimeException; + /** Column name AD_ColumnSortYesNo_ID */ public static final String COLUMNNAME_AD_ColumnSortYesNo_ID = "AD_ColumnSortYesNo_ID"; @@ -90,6 +92,8 @@ public interface I_AD_Tab */ public int getAD_ColumnSortYesNo_ID(); + public I_AD_Column getAD_ColumnSortYesNo() throws RuntimeException; + /** Column name AD_Image_ID */ public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; @@ -298,6 +302,8 @@ public interface I_AD_Tab */ public int getIncluded_Tab_ID(); + public I_AD_Tab getIncluded_Tab() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -441,6 +447,8 @@ public interface I_AD_Tab */ public int getParent_Column_ID(); + public I_AD_Column getParent_Column() throws RuntimeException; + /** Column name Processing */ public static final String COLUMNNAME_Processing = "Processing"; diff --git a/base/src/org/compiere/model/I_AD_Table.java b/base/src/org/compiere/model/I_AD_Table.java index 6d1eb6cf8f..42a7f8b81a 100644 --- a/base/src/org/compiere/model/I_AD_Table.java +++ b/base/src/org/compiere/model/I_AD_Table.java @@ -310,6 +310,8 @@ public interface I_AD_Table */ public int getPO_Window_ID(); + public I_AD_Window getPO_Window() throws RuntimeException; + /** Column name ReplicationType */ public static final String COLUMNNAME_ReplicationType = "ReplicationType"; diff --git a/base/src/org/compiere/model/I_AD_User.java b/base/src/org/compiere/model/I_AD_User.java index 5a8f31790b..ccd61245db 100644 --- a/base/src/org/compiere/model/I_AD_User.java +++ b/base/src/org/compiere/model/I_AD_User.java @@ -459,6 +459,8 @@ public interface I_AD_User */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Title */ public static final String COLUMNNAME_Title = "Title"; diff --git a/base/src/org/compiere/model/I_AD_User_Substitute.java b/base/src/org/compiere/model/I_AD_User_Substitute.java index 44a53e4809..fabdfa7c33 100644 --- a/base/src/org/compiere/model/I_AD_User_Substitute.java +++ b/base/src/org/compiere/model/I_AD_User_Substitute.java @@ -158,6 +158,8 @@ public interface I_AD_User_Substitute */ public int getSubstitute_ID(); + public I_AD_User getSubstitute() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_AD_WF_Activity.java b/base/src/org/compiere/model/I_AD_WF_Activity.java index e0114dd9bf..c1ad8c398e 100644 --- a/base/src/org/compiere/model/I_AD_WF_Activity.java +++ b/base/src/org/compiere/model/I_AD_WF_Activity.java @@ -105,6 +105,8 @@ public interface I_AD_WF_Activity */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name AD_WF_Activity_ID */ public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; diff --git a/base/src/org/compiere/model/I_AD_WF_EventAudit.java b/base/src/org/compiere/model/I_AD_WF_EventAudit.java index 364623fc4a..9d230ee27b 100644 --- a/base/src/org/compiere/model/I_AD_WF_EventAudit.java +++ b/base/src/org/compiere/model/I_AD_WF_EventAudit.java @@ -90,6 +90,8 @@ public interface I_AD_WF_EventAudit */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name AD_WF_EventAudit_ID */ public static final String COLUMNNAME_AD_WF_EventAudit_ID = "AD_WF_EventAudit_ID"; diff --git a/base/src/org/compiere/model/I_AD_WF_Node.java b/base/src/org/compiere/model/I_AD_WF_Node.java index 7b2c2ad24e..8cfb54c585 100644 --- a/base/src/org/compiere/model/I_AD_WF_Node.java +++ b/base/src/org/compiere/model/I_AD_WF_Node.java @@ -741,6 +741,8 @@ public interface I_AD_WF_Node */ public int getWorkflow_ID(); + public I_AD_Workflow getWorkflow() throws RuntimeException; + /** Column name WorkingTime */ public static final String COLUMNNAME_WorkingTime = "WorkingTime"; diff --git a/base/src/org/compiere/model/I_AD_WF_NodeNext.java b/base/src/org/compiere/model/I_AD_WF_NodeNext.java index 0e483c2c9d..f4cdb36c76 100644 --- a/base/src/org/compiere/model/I_AD_WF_NodeNext.java +++ b/base/src/org/compiere/model/I_AD_WF_NodeNext.java @@ -75,6 +75,8 @@ public interface I_AD_WF_NodeNext */ public int getAD_WF_Next_ID(); + public I_AD_WF_Node getAD_WF_Next() throws RuntimeException; + /** Column name AD_WF_Node_ID */ public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; diff --git a/base/src/org/compiere/model/I_AD_WF_Process.java b/base/src/org/compiere/model/I_AD_WF_Process.java index 0b2a0066bd..6418517f7b 100644 --- a/base/src/org/compiere/model/I_AD_WF_Process.java +++ b/base/src/org/compiere/model/I_AD_WF_Process.java @@ -105,6 +105,8 @@ public interface I_AD_WF_Process */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name AD_WF_Process_ID */ public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; diff --git a/base/src/org/compiere/model/I_AD_WF_Responsible.java b/base/src/org/compiere/model/I_AD_WF_Responsible.java index 4ecd639417..918eb78ce3 100644 --- a/base/src/org/compiere/model/I_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/I_AD_WF_Responsible.java @@ -90,6 +90,8 @@ public interface I_AD_WF_Responsible */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name AD_WF_Responsible_ID */ public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; diff --git a/base/src/org/compiere/model/I_AD_Workbench.java b/base/src/org/compiere/model/I_AD_Workbench.java index 627cfb775b..6883b6e7da 100644 --- a/base/src/org/compiere/model/I_AD_Workbench.java +++ b/base/src/org/compiere/model/I_AD_Workbench.java @@ -75,6 +75,8 @@ public interface I_AD_Workbench */ public int getAD_Column_ID(); + public I_AD_Column getAD_Column() throws RuntimeException; + /** Column name AD_Image_ID */ public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; diff --git a/base/src/org/compiere/model/I_AD_WorkflowProcessor.java b/base/src/org/compiere/model/I_AD_WorkflowProcessor.java index b261b0e742..d49642cec7 100644 --- a/base/src/org/compiere/model/I_AD_WorkflowProcessor.java +++ b/base/src/org/compiere/model/I_AD_WorkflowProcessor.java @@ -256,6 +256,8 @@ public interface I_AD_WorkflowProcessor */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_A_Asset.java b/base/src/org/compiere/model/I_A_Asset.java index 2e62b3ae23..08a7a806ed 100644 --- a/base/src/org/compiere/model/I_A_Asset.java +++ b/base/src/org/compiere/model/I_A_Asset.java @@ -96,6 +96,8 @@ public interface I_A_Asset /** Get Asset ID */ public int getA_Parent_Asset_ID(); + public I_A_Asset getA_Parent_Asset() throws RuntimeException; + /** Column name A_QTY_Current */ public static final String COLUMNNAME_A_QTY_Current = "A_QTY_Current"; @@ -232,6 +234,8 @@ public interface I_A_Asset */ public int getC_BPartnerSR_ID(); + public I_C_BPartner getC_BPartnerSR() throws RuntimeException; + /** Column name C_Location_ID */ public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; @@ -447,6 +451,8 @@ public interface I_A_Asset */ public int getLease_BPartner_ID(); + public I_C_BPartner getLease_BPartner() throws RuntimeException; + /** Column name LeaseTerminationDate */ public static final String COLUMNNAME_LeaseTerminationDate = "LeaseTerminationDate"; @@ -512,6 +518,8 @@ public interface I_A_Asset */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; diff --git a/base/src/org/compiere/model/I_A_Asset_Acct.java b/base/src/org/compiere/model/I_A_Asset_Acct.java index 59c8f97947..1dc620ed39 100644 --- a/base/src/org/compiere/model/I_A_Asset_Acct.java +++ b/base/src/org/compiere/model/I_A_Asset_Acct.java @@ -50,6 +50,8 @@ public interface I_A_Asset_Acct /** Get Accumulated Depreciation */ public int getA_Accumdepreciation_Acct(); + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException; + /** Column name A_Asset_Acct */ public static final String COLUMNNAME_A_Asset_Acct = "A_Asset_Acct"; @@ -59,6 +61,8 @@ public interface I_A_Asset_Acct /** Get Asset Cost Account */ public int getA_Asset_Acct(); + public I_C_ValidCombination getA_Asset_A() throws RuntimeException; + /** Column name A_Asset_Acct_ID */ public static final String COLUMNNAME_A_Asset_Acct_ID = "A_Asset_Acct_ID"; @@ -90,6 +94,8 @@ public interface I_A_Asset_Acct /** Get A_Asset_Spread_ID */ public int getA_Asset_Spread_ID(); + public I_A_Asset_Spread getA_Asset_Spread() throws RuntimeException; + /** Column name A_Depreciation_Acct */ public static final String COLUMNNAME_A_Depreciation_Acct = "A_Depreciation_Acct"; @@ -99,6 +105,8 @@ public interface I_A_Asset_Acct /** Get Depreciation Expense Account */ public int getA_Depreciation_Acct(); + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException; + /** Column name A_Depreciation_Conv_ID */ public static final String COLUMNNAME_A_Depreciation_Conv_ID = "A_Depreciation_Conv_ID"; @@ -108,6 +116,8 @@ public interface I_A_Asset_Acct /** Get Convention Type */ public int getA_Depreciation_Conv_ID(); + public I_A_Depreciation_Convention getA_Depreciation_Conv() throws RuntimeException; + /** Column name A_Depreciation_ID */ public static final String COLUMNNAME_A_Depreciation_ID = "A_Depreciation_ID"; @@ -117,6 +127,8 @@ public interface I_A_Asset_Acct /** Get Depreciation Type */ public int getA_Depreciation_ID(); + public I_A_Depreciation getA_Depreciation() throws RuntimeException; + /** Column name A_Depreciation_Manual_Amount */ public static final String COLUMNNAME_A_Depreciation_Manual_Amount = "A_Depreciation_Manual_Amount"; @@ -144,6 +156,8 @@ public interface I_A_Asset_Acct /** Get Depreciation Calculation Type */ public int getA_Depreciation_Method_ID(); + public I_A_Depreciation_Method getA_Depreciation_Method() throws RuntimeException; + /** Column name A_Depreciation_Table_Header_ID */ public static final String COLUMNNAME_A_Depreciation_Table_Header_ID = "A_Depreciation_Table_Header_ID"; @@ -153,6 +167,8 @@ public interface I_A_Asset_Acct /** Get A_Depreciation_Table_Header_ID */ public int getA_Depreciation_Table_Header_ID(); + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException; + /** Column name A_Depreciation_Variable_Perc */ public static final String COLUMNNAME_A_Depreciation_Variable_Perc = "A_Depreciation_Variable_Perc"; @@ -171,6 +187,8 @@ public interface I_A_Asset_Acct /** Get A_Disposal_Gain */ public int getA_Disposal_Gain(); + public I_C_ValidCombination getA_Disposal_G() throws RuntimeException; + /** Column name A_Disposal_Loss */ public static final String COLUMNNAME_A_Disposal_Loss = "A_Disposal_Loss"; @@ -180,6 +198,8 @@ public interface I_A_Asset_Acct /** Get Loss on Disposal */ public int getA_Disposal_Loss(); + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException; + /** Column name A_Disposal_Revenue */ public static final String COLUMNNAME_A_Disposal_Revenue = "A_Disposal_Revenue"; @@ -189,6 +209,8 @@ public interface I_A_Asset_Acct /** Get Disposal Revenue */ public int getA_Disposal_Revenue(); + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException; + /** Column name A_Period_End */ public static final String COLUMNNAME_A_Period_End = "A_Period_End"; @@ -216,6 +238,8 @@ public interface I_A_Asset_Acct /** Get Revaluation Accumulated Depreciation Offset for Current Year */ public int getA_Reval_Accumdep_Offset_Cur(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException; + /** Column name A_Reval_Accumdep_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Accumdep_Offset_Prior = "A_Reval_Accumdep_Offset_Prior"; @@ -225,6 +249,8 @@ public interface I_A_Asset_Acct /** Get Revaluation Accumulated Depreciation Offset for Prior Year */ public int getA_Reval_Accumdep_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Cal_Method */ public static final String COLUMNNAME_A_Reval_Cal_Method = "A_Reval_Cal_Method"; @@ -243,6 +269,8 @@ public interface I_A_Asset_Acct /** Get Revaluation Cost Offset for Current Year */ public int getA_Reval_Cost_Offset(); + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException; + /** Column name A_Reval_Cost_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Cost_Offset_Prior = "A_Reval_Cost_Offset_Prior"; @@ -252,6 +280,8 @@ public interface I_A_Asset_Acct /** Get Revaluation Cost Offset for Prior Year */ public int getA_Reval_Cost_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Depexp_Offset */ public static final String COLUMNNAME_A_Reval_Depexp_Offset = "A_Reval_Depexp_Offset"; @@ -261,6 +291,8 @@ public interface I_A_Asset_Acct /** Get Revaluation Expense Offs */ public int getA_Reval_Depexp_Offset(); + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException; + /** Column name A_Salvage_Value */ public static final String COLUMNNAME_A_Salvage_Value = "A_Salvage_Value"; diff --git a/base/src/org/compiere/model/I_A_Asset_Change.java b/base/src/org/compiere/model/I_A_Asset_Change.java index 707915bd85..97f52554c1 100644 --- a/base/src/org/compiere/model/I_A_Asset_Change.java +++ b/base/src/org/compiere/model/I_A_Asset_Change.java @@ -50,6 +50,8 @@ public interface I_A_Asset_Change /** Get Accumulated Depreciation */ public int getA_Accumdepreciation_Acct(); + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException; + /** Column name A_Asset_Acct */ public static final String COLUMNNAME_A_Asset_Acct = "A_Asset_Acct"; @@ -59,6 +61,8 @@ public interface I_A_Asset_Change /** Get Asset Cost Account */ public int getA_Asset_Acct(); + public I_C_ValidCombination getA_Asset_A() throws RuntimeException; + /** Column name A_Asset_Acct_ID */ public static final String COLUMNNAME_A_Asset_Acct_ID = "A_Asset_Acct_ID"; @@ -108,6 +112,8 @@ public interface I_A_Asset_Change */ public int getA_Asset_ID(); + public I_A_Asset getA_Asset() throws RuntimeException; + /** Column name A_Asset_Retirement_ID */ public static final String COLUMNNAME_A_Asset_Retirement_ID = "A_Asset_Retirement_ID"; @@ -139,6 +145,8 @@ public interface I_A_Asset_Change /** Get A_Asset_Spread_Type */ public int getA_Asset_Spread_Type(); + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException; + /** Column name A_Depreciation_Acct */ public static final String COLUMNNAME_A_Depreciation_Acct = "A_Depreciation_Acct"; @@ -148,6 +156,8 @@ public interface I_A_Asset_Change /** Get Depreciation Expense Account */ public int getA_Depreciation_Acct(); + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException; + /** Column name A_Depreciation_Calc_Type */ public static final String COLUMNNAME_A_Depreciation_Calc_Type = "A_Depreciation_Calc_Type"; @@ -157,6 +167,8 @@ public interface I_A_Asset_Change /** Get Depreciation Calculation Type */ public int getA_Depreciation_Calc_Type(); + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException; + /** Column name A_Depreciation_Manual_Amount */ public static final String COLUMNNAME_A_Depreciation_Manual_Amount = "A_Depreciation_Manual_Amount"; @@ -184,6 +196,8 @@ public interface I_A_Asset_Change /** Get A_Depreciation_Table_Header_ID */ public int getA_Depreciation_Table_Header_ID(); + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException; + /** Column name A_Depreciation_Variable_Perc */ public static final String COLUMNNAME_A_Depreciation_Variable_Perc = "A_Depreciation_Variable_Perc"; @@ -202,6 +216,8 @@ public interface I_A_Asset_Change /** Get Loss on Disposal */ public int getA_Disposal_Loss(); + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException; + /** Column name A_Disposal_Revenue */ public static final String COLUMNNAME_A_Disposal_Revenue = "A_Disposal_Revenue"; @@ -211,6 +227,8 @@ public interface I_A_Asset_Change /** Get Disposal Revenue */ public int getA_Disposal_Revenue(); + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException; + /** Column name A_Parent_Asset_ID */ public static final String COLUMNNAME_A_Parent_Asset_ID = "A_Parent_Asset_ID"; @@ -220,6 +238,8 @@ public interface I_A_Asset_Change /** Get Asset ID */ public int getA_Parent_Asset_ID(); + public I_A_Asset getA_Parent_Asset() throws RuntimeException; + /** Column name A_Period_End */ public static final String COLUMNNAME_A_Period_End = "A_Period_End"; @@ -362,6 +382,8 @@ public interface I_A_Asset_Change */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name AssetAccumDepreciationAmt */ public static final String COLUMNNAME_AssetAccumDepreciationAmt = "AssetAccumDepreciationAmt"; @@ -486,6 +508,8 @@ public interface I_A_Asset_Change */ public int getC_BPartner_Location_ID(); + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException; + /** Column name C_Location_ID */ public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; @@ -499,6 +523,8 @@ public interface I_A_Asset_Change */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_ValidCombination_ID */ public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; @@ -512,6 +538,8 @@ public interface I_A_Asset_Change */ public int getC_ValidCombination_ID(); + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException; + /** Column name ChangeAmt */ public static final String COLUMNNAME_ChangeAmt = "ChangeAmt"; @@ -548,6 +576,8 @@ public interface I_A_Asset_Change /** Get ConventionType */ public int getConventionType(); + public I_A_Depreciation_Convention getConventionT() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -586,6 +616,8 @@ public interface I_A_Asset_Change /** Get DepreciationType */ public int getDepreciationType(); + public I_A_Depreciation getDepreciationT() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; diff --git a/base/src/org/compiere/model/I_A_Asset_Disposed.java b/base/src/org/compiere/model/I_A_Asset_Disposed.java index 28bf37b08b..14167f2e01 100644 --- a/base/src/org/compiere/model/I_A_Asset_Disposed.java +++ b/base/src/org/compiere/model/I_A_Asset_Disposed.java @@ -72,6 +72,8 @@ public interface I_A_Asset_Disposed /** Get A_Asset_Trade_ID */ public int getA_Asset_Trade_ID(); + public I_A_Asset getA_Asset_Trade() throws RuntimeException; + /** Column name A_Disposed_Date */ public static final String COLUMNNAME_A_Disposed_Date = "A_Disposed_Date"; @@ -142,6 +144,8 @@ public interface I_A_Asset_Disposed */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Asset_Group_Acct.java b/base/src/org/compiere/model/I_A_Asset_Group_Acct.java index 145a00efae..edad0f3e25 100644 --- a/base/src/org/compiere/model/I_A_Asset_Group_Acct.java +++ b/base/src/org/compiere/model/I_A_Asset_Group_Acct.java @@ -50,6 +50,8 @@ public interface I_A_Asset_Group_Acct /** Get Accumulated Depreciation */ public int getA_Accumdepreciation_Acct(); + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException; + /** Column name A_Asset_Acct */ public static final String COLUMNNAME_A_Asset_Acct = "A_Asset_Acct"; @@ -59,6 +61,8 @@ public interface I_A_Asset_Group_Acct /** Get Asset Cost Account */ public int getA_Asset_Acct(); + public I_C_ValidCombination getA_Asset_A() throws RuntimeException; + /** Column name A_Asset_Group_Acct_ID */ public static final String COLUMNNAME_A_Asset_Group_Acct_ID = "A_Asset_Group_Acct_ID"; @@ -92,6 +96,8 @@ public interface I_A_Asset_Group_Acct /** Get A_Asset_Spread_Type */ public int getA_Asset_Spread_Type(); + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException; + /** Column name A_Depreciation_Acct */ public static final String COLUMNNAME_A_Depreciation_Acct = "A_Depreciation_Acct"; @@ -101,6 +107,8 @@ public interface I_A_Asset_Group_Acct /** Get Depreciation Expense Account */ public int getA_Depreciation_Acct(); + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException; + /** Column name A_Depreciation_Calc_Type */ public static final String COLUMNNAME_A_Depreciation_Calc_Type = "A_Depreciation_Calc_Type"; @@ -110,6 +118,8 @@ public interface I_A_Asset_Group_Acct /** Get Depreciation Calculation Type */ public int getA_Depreciation_Calc_Type(); + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException; + /** Column name A_Depreciation_ID */ public static final String COLUMNNAME_A_Depreciation_ID = "A_Depreciation_ID"; @@ -146,6 +156,8 @@ public interface I_A_Asset_Group_Acct /** Get A_Depreciation_Table_Header_ID */ public int getA_Depreciation_Table_Header_ID(); + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException; + /** Column name A_Depreciation_Variable_Perc */ public static final String COLUMNNAME_A_Depreciation_Variable_Perc = "A_Depreciation_Variable_Perc"; @@ -164,6 +176,8 @@ public interface I_A_Asset_Group_Acct /** Get A_Disposal_Gain */ public int getA_Disposal_Gain(); + public I_C_ValidCombination getA_Disposal_G() throws RuntimeException; + /** Column name A_Disposal_Loss */ public static final String COLUMNNAME_A_Disposal_Loss = "A_Disposal_Loss"; @@ -173,6 +187,8 @@ public interface I_A_Asset_Group_Acct /** Get Loss on Disposal */ public int getA_Disposal_Loss(); + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException; + /** Column name A_Disposal_Revenue */ public static final String COLUMNNAME_A_Disposal_Revenue = "A_Disposal_Revenue"; @@ -182,6 +198,8 @@ public interface I_A_Asset_Group_Acct /** Get Disposal Revenue */ public int getA_Disposal_Revenue(); + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException; + /** Column name A_Reval_Accumdep_Offset_Cur */ public static final String COLUMNNAME_A_Reval_Accumdep_Offset_Cur = "A_Reval_Accumdep_Offset_Cur"; @@ -191,6 +209,8 @@ public interface I_A_Asset_Group_Acct /** Get Revaluation Accumulated Depreciation Offset for Current Year */ public int getA_Reval_Accumdep_Offset_Cur(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException; + /** Column name A_Reval_Accumdep_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Accumdep_Offset_Prior = "A_Reval_Accumdep_Offset_Prior"; @@ -200,6 +220,8 @@ public interface I_A_Asset_Group_Acct /** Get Revaluation Accumulated Depreciation Offset for Prior Year */ public int getA_Reval_Accumdep_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Cal_Method */ public static final String COLUMNNAME_A_Reval_Cal_Method = "A_Reval_Cal_Method"; @@ -218,6 +240,8 @@ public interface I_A_Asset_Group_Acct /** Get Revaluation Cost Offset for Current Year */ public int getA_Reval_Cost_Offset(); + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException; + /** Column name A_Reval_Cost_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Cost_Offset_Prior = "A_Reval_Cost_Offset_Prior"; @@ -227,6 +251,8 @@ public interface I_A_Asset_Group_Acct /** Get Revaluation Cost Offset for Prior Year */ public int getA_Reval_Cost_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Depexp_Offset */ public static final String COLUMNNAME_A_Reval_Depexp_Offset = "A_Reval_Depexp_Offset"; @@ -236,6 +262,8 @@ public interface I_A_Asset_Group_Acct /** Get Revaluation Expense Offs */ public int getA_Reval_Depexp_Offset(); + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException; + /** Column name A_Split_Percent */ public static final String COLUMNNAME_A_Split_Percent = "A_Split_Percent"; @@ -290,6 +318,8 @@ public interface I_A_Asset_Group_Acct /** Get ConventionType */ public int getConventionType(); + public I_A_Depreciation_Convention getConventionT() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -315,6 +345,8 @@ public interface I_A_Asset_Group_Acct /** Get DepreciationType */ public int getDepreciationType(); + public I_A_Depreciation getDepreciationT() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; diff --git a/base/src/org/compiere/model/I_A_Asset_Reval_Entry.java b/base/src/org/compiere/model/I_A_Asset_Reval_Entry.java index a99c26c44b..8b98a31955 100644 --- a/base/src/org/compiere/model/I_A_Asset_Reval_Entry.java +++ b/base/src/org/compiere/model/I_A_Asset_Reval_Entry.java @@ -174,6 +174,8 @@ public interface I_A_Asset_Reval_Entry */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Asset_Split.java b/base/src/org/compiere/model/I_A_Asset_Split.java index 994ddb7bf0..2e15972adb 100644 --- a/base/src/org/compiere/model/I_A_Asset_Split.java +++ b/base/src/org/compiere/model/I_A_Asset_Split.java @@ -90,6 +90,8 @@ public interface I_A_Asset_Split /** Get To Asset ID */ public int getA_Asset_ID_To(); + public I_A_Asset getA_Asset_To() throws RuntimeException; + /** Column name A_Asset_Split_ID */ public static final String COLUMNNAME_A_Asset_Split_ID = "A_Asset_Split_ID"; @@ -196,6 +198,8 @@ public interface I_A_Asset_Split */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Asset_Transfer.java b/base/src/org/compiere/model/I_A_Asset_Transfer.java index 6bc4eb5889..9c4f75f831 100644 --- a/base/src/org/compiere/model/I_A_Asset_Transfer.java +++ b/base/src/org/compiere/model/I_A_Asset_Transfer.java @@ -59,6 +59,8 @@ public interface I_A_Asset_Transfer /** Get New Accum Depreciation Acct */ public int getA_Accumdepreciation_Acct_New(); + public I_C_ValidCombination getA_Accumdepreciation_Acct_() throws RuntimeException; + /** Column name A_Accumdepreciation_Acct_Str */ public static final String COLUMNNAME_A_Accumdepreciation_Acct_Str = "A_Accumdepreciation_Acct_Str"; @@ -95,6 +97,8 @@ public interface I_A_Asset_Transfer /** Get New Asset Cost Acct */ public int getA_Asset_Acct_New(); + public I_C_ValidCombination getA_Asset_Acct_() throws RuntimeException; + /** Column name A_Asset_Acct_Str */ public static final String COLUMNNAME_A_Asset_Acct_Str = "A_Asset_Acct_Str"; @@ -144,6 +148,8 @@ public interface I_A_Asset_Transfer /** Get New Depreciation Exp Acct */ public int getA_Depreciation_Acct_New(); + public I_C_ValidCombination getA_Depreciation_Acct_() throws RuntimeException; + /** Column name A_Depreciation_Acct_Str */ public static final String COLUMNNAME_A_Depreciation_Acct_Str = "A_Depreciation_Acct_Str"; @@ -171,6 +177,8 @@ public interface I_A_Asset_Transfer /** Get New Disposal Loss */ public int getA_Disposal_Loss_New(); + public I_C_ValidCombination getA_Disposal_Loss_() throws RuntimeException; + /** Column name A_Disposal_Loss_Str */ public static final String COLUMNNAME_A_Disposal_Loss_Str = "A_Disposal_Loss_Str"; @@ -198,6 +206,8 @@ public interface I_A_Asset_Transfer /** Get New Disposal Revenue */ public int getA_Disposal_Revenue_New(); + public I_C_ValidCombination getA_Disposal_Revenue_() throws RuntimeException; + /** Column name A_Disposal_Revenue_Str */ public static final String COLUMNNAME_A_Disposal_Revenue_Str = "A_Disposal_Revenue_Str"; @@ -286,6 +296,8 @@ public interface I_A_Asset_Transfer */ public int getC_AcctSchema_ID(); + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException; + /** Column name C_Period_ID */ public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; @@ -299,6 +311,8 @@ public interface I_A_Asset_Transfer */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Depreciation_Build.java b/base/src/org/compiere/model/I_A_Depreciation_Build.java index 617f5a4c6e..ddb4ac1c6c 100644 --- a/base/src/org/compiere/model/I_A_Depreciation_Build.java +++ b/base/src/org/compiere/model/I_A_Depreciation_Build.java @@ -59,6 +59,8 @@ public interface I_A_Depreciation_Build /** Get End Aset ID */ public int getA_End_Asset_ID(); + public I_A_Asset getA_End_Asset() throws RuntimeException; + /** Column name A_Start_Asset_ID */ public static final String COLUMNNAME_A_Start_Asset_ID = "A_Start_Asset_ID"; @@ -68,6 +70,8 @@ public interface I_A_Depreciation_Build /** Get A_Start_Asset_ID */ public int getA_Start_Asset_ID(); + public I_A_Asset getA_Start_Asset() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -102,6 +106,8 @@ public interface I_A_Depreciation_Build */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Depreciation_Entry.java b/base/src/org/compiere/model/I_A_Depreciation_Entry.java index 4001ec45e6..0b81a22d3d 100644 --- a/base/src/org/compiere/model/I_A_Depreciation_Entry.java +++ b/base/src/org/compiere/model/I_A_Depreciation_Entry.java @@ -138,6 +138,8 @@ public interface I_A_Depreciation_Entry */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_A_Depreciation_Exp.java b/base/src/org/compiere/model/I_A_Depreciation_Exp.java index d042678d40..73db2a8474 100644 --- a/base/src/org/compiere/model/I_A_Depreciation_Exp.java +++ b/base/src/org/compiere/model/I_A_Depreciation_Exp.java @@ -50,6 +50,8 @@ public interface I_A_Depreciation_Exp /** Get A_Account_Number */ public int getA_Account_Number(); + public I_C_ValidCombination getA_Account_Num() throws RuntimeException; + /** Column name A_Asset_ID */ public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; diff --git a/base/src/org/compiere/model/I_A_Depreciation_Forecast.java b/base/src/org/compiere/model/I_A_Depreciation_Forecast.java index 9682224bb9..76db36c890 100644 --- a/base/src/org/compiere/model/I_A_Depreciation_Forecast.java +++ b/base/src/org/compiere/model/I_A_Depreciation_Forecast.java @@ -59,6 +59,8 @@ public interface I_A_Depreciation_Forecast /** Get End Aset ID */ public int getA_End_Asset_ID(); + public I_A_Asset getA_End_Asset() throws RuntimeException; + /** Column name A_Start_Asset_ID */ public static final String COLUMNNAME_A_Start_Asset_ID = "A_Start_Asset_ID"; @@ -68,6 +70,8 @@ public interface I_A_Depreciation_Forecast /** Get A_Start_Asset_ID */ public int getA_Start_Asset_ID(); + public I_A_Asset getA_Start_Asset() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; diff --git a/base/src/org/compiere/model/I_A_RegistrationAttribute.java b/base/src/org/compiere/model/I_A_RegistrationAttribute.java index dd6a3a9eef..e7fbf7e80e 100644 --- a/base/src/org/compiere/model/I_A_RegistrationAttribute.java +++ b/base/src/org/compiere/model/I_A_RegistrationAttribute.java @@ -88,6 +88,8 @@ public interface I_A_RegistrationAttribute */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name AD_Reference_Value_ID */ public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; @@ -101,6 +103,8 @@ public interface I_A_RegistrationAttribute */ public int getAD_Reference_Value_ID(); + public I_AD_Reference getAD_Reference_Value() throws RuntimeException; + /** Column name ColumnName */ public static final String COLUMNNAME_ColumnName = "ColumnName"; diff --git a/base/src/org/compiere/model/I_B_TopicType.java b/base/src/org/compiere/model/I_B_TopicType.java index a6ac9d9b7b..c736a5feb5 100644 --- a/base/src/org/compiere/model/I_B_TopicType.java +++ b/base/src/org/compiere/model/I_B_TopicType.java @@ -182,6 +182,8 @@ public interface I_B_TopicType */ public int getM_ProductMember_ID(); + public I_M_Product getM_ProductMember() throws RuntimeException; + /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; diff --git a/base/src/org/compiere/model/I_CM_CStage.java b/base/src/org/compiere/model/I_CM_CStage.java index 5967ce6147..aae1a2261d 100644 --- a/base/src/org/compiere/model/I_CM_CStage.java +++ b/base/src/org/compiere/model/I_CM_CStage.java @@ -88,6 +88,8 @@ public interface I_CM_CStage */ public int getCM_CStageLink_ID(); + public I_CM_CStage getCM_CStageLink() throws RuntimeException; + /** Column name CM_Template_ID */ public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; diff --git a/base/src/org/compiere/model/I_CM_ChatEntry.java b/base/src/org/compiere/model/I_CM_ChatEntry.java index e92b02eb4c..152401b0ed 100644 --- a/base/src/org/compiere/model/I_CM_ChatEntry.java +++ b/base/src/org/compiere/model/I_CM_ChatEntry.java @@ -144,6 +144,8 @@ public interface I_CM_ChatEntry */ public int getCM_ChatEntryGrandParent_ID(); + public I_CM_ChatEntry getCM_ChatEntryGrandParent() throws RuntimeException; + /** Column name CM_ChatEntryParent_ID */ public static final String COLUMNNAME_CM_ChatEntryParent_ID = "CM_ChatEntryParent_ID"; @@ -157,6 +159,8 @@ public interface I_CM_ChatEntry */ public int getCM_ChatEntryParent_ID(); + public I_CM_ChatEntry getCM_ChatEntryParent() throws RuntimeException; + /** Column name ConfidentialType */ public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; diff --git a/base/src/org/compiere/model/I_CM_Container.java b/base/src/org/compiere/model/I_CM_Container.java index 75a94ea1e8..d2c4def153 100644 --- a/base/src/org/compiere/model/I_CM_Container.java +++ b/base/src/org/compiere/model/I_CM_Container.java @@ -88,6 +88,8 @@ public interface I_CM_Container */ public int getCM_ContainerLink_ID(); + public I_CM_Container getCM_ContainerLink() throws RuntimeException; + /** Column name CM_Template_ID */ public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; diff --git a/base/src/org/compiere/model/I_CM_WebProject.java b/base/src/org/compiere/model/I_CM_WebProject.java index 53d8aca1a0..58c9e221ef 100644 --- a/base/src/org/compiere/model/I_CM_WebProject.java +++ b/base/src/org/compiere/model/I_CM_WebProject.java @@ -75,6 +75,8 @@ public interface I_CM_WebProject */ public int getAD_TreeCMC_ID(); + public I_AD_Tree getAD_TreeCMC() throws RuntimeException; + /** Column name AD_TreeCMM_ID */ public static final String COLUMNNAME_AD_TreeCMM_ID = "AD_TreeCMM_ID"; @@ -88,6 +90,8 @@ public interface I_CM_WebProject */ public int getAD_TreeCMM_ID(); + public I_AD_Tree getAD_TreeCMM() throws RuntimeException; + /** Column name AD_TreeCMS_ID */ public static final String COLUMNNAME_AD_TreeCMS_ID = "AD_TreeCMS_ID"; @@ -101,6 +105,8 @@ public interface I_CM_WebProject */ public int getAD_TreeCMS_ID(); + public I_AD_Tree getAD_TreeCMS() throws RuntimeException; + /** Column name AD_TreeCMT_ID */ public static final String COLUMNNAME_AD_TreeCMT_ID = "AD_TreeCMT_ID"; @@ -114,6 +120,8 @@ public interface I_CM_WebProject */ public int getAD_TreeCMT_ID(); + public I_AD_Tree getAD_TreeCMT() throws RuntimeException; + /** Column name CM_WebProject_ID */ public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; diff --git a/base/src/org/compiere/model/I_C_AcctProcessor.java b/base/src/org/compiere/model/I_C_AcctProcessor.java index bab1b4a817..90de025dcb 100644 --- a/base/src/org/compiere/model/I_C_AcctProcessor.java +++ b/base/src/org/compiere/model/I_C_AcctProcessor.java @@ -247,6 +247,8 @@ public interface I_C_AcctProcessor */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_AcctSchema_Default.java b/base/src/org/compiere/model/I_C_AcctSchema_Default.java index 460572f739..9788d35b33 100644 --- a/base/src/org/compiere/model/I_C_AcctSchema_Default.java +++ b/base/src/org/compiere/model/I_C_AcctSchema_Default.java @@ -75,6 +75,8 @@ public interface I_C_AcctSchema_Default */ public int getB_Asset_Acct(); + public I_C_ValidCombination getB_Asset_A() throws RuntimeException; + /** Column name B_Expense_Acct */ public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; @@ -88,6 +90,8 @@ public interface I_C_AcctSchema_Default */ public int getB_Expense_Acct(); + public I_C_ValidCombination getB_Expense_A() throws RuntimeException; + /** Column name B_InterestExp_Acct */ public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; @@ -101,6 +105,8 @@ public interface I_C_AcctSchema_Default */ public int getB_InterestExp_Acct(); + public I_C_ValidCombination getB_InterestExp_A() throws RuntimeException; + /** Column name B_InterestRev_Acct */ public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; @@ -114,6 +120,8 @@ public interface I_C_AcctSchema_Default */ public int getB_InterestRev_Acct(); + public I_C_ValidCombination getB_InterestRev_A() throws RuntimeException; + /** Column name B_InTransit_Acct */ public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; @@ -127,6 +135,8 @@ public interface I_C_AcctSchema_Default */ public int getB_InTransit_Acct(); + public I_C_ValidCombination getB_InTransit_A() throws RuntimeException; + /** Column name B_PaymentSelect_Acct */ public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; @@ -140,6 +150,8 @@ public interface I_C_AcctSchema_Default */ public int getB_PaymentSelect_Acct(); + public I_C_ValidCombination getB_PaymentSelect_A() throws RuntimeException; + /** Column name B_RevaluationGain_Acct */ public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; @@ -153,6 +165,8 @@ public interface I_C_AcctSchema_Default */ public int getB_RevaluationGain_Acct(); + public I_C_ValidCombination getB_RevaluationGain_A() throws RuntimeException; + /** Column name B_RevaluationLoss_Acct */ public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; @@ -166,6 +180,8 @@ public interface I_C_AcctSchema_Default */ public int getB_RevaluationLoss_Acct(); + public I_C_ValidCombination getB_RevaluationLoss_A() throws RuntimeException; + /** Column name B_SettlementGain_Acct */ public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; @@ -179,6 +195,8 @@ public interface I_C_AcctSchema_Default */ public int getB_SettlementGain_Acct(); + public I_C_ValidCombination getB_SettlementGain_A() throws RuntimeException; + /** Column name B_SettlementLoss_Acct */ public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; @@ -192,6 +210,8 @@ public interface I_C_AcctSchema_Default */ public int getB_SettlementLoss_Acct(); + public I_C_ValidCombination getB_SettlementLoss_A() throws RuntimeException; + /** Column name B_UnallocatedCash_Acct */ public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; @@ -205,6 +225,8 @@ public interface I_C_AcctSchema_Default */ public int getB_UnallocatedCash_Acct(); + public I_C_ValidCombination getB_UnallocatedCash_A() throws RuntimeException; + /** Column name B_Unidentified_Acct */ public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; @@ -218,6 +240,8 @@ public interface I_C_AcctSchema_Default */ public int getB_Unidentified_Acct(); + public I_C_ValidCombination getB_Unidentified_A() throws RuntimeException; + /** Column name C_AcctSchema_ID */ public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; @@ -246,6 +270,8 @@ public interface I_C_AcctSchema_Default */ public int getC_Prepayment_Acct(); + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException; + /** Column name C_Receivable_Acct */ public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; @@ -259,6 +285,8 @@ public interface I_C_AcctSchema_Default */ public int getC_Receivable_Acct(); + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException; + /** Column name C_Receivable_Services_Acct */ public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; @@ -272,6 +300,8 @@ public interface I_C_AcctSchema_Default */ public int getC_Receivable_Services_Acct(); + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException; + /** Column name CB_Asset_Acct */ public static final String COLUMNNAME_CB_Asset_Acct = "CB_Asset_Acct"; @@ -285,6 +315,8 @@ public interface I_C_AcctSchema_Default */ public int getCB_Asset_Acct(); + public I_C_ValidCombination getCB_Asset_A() throws RuntimeException; + /** Column name CB_CashTransfer_Acct */ public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; @@ -298,6 +330,8 @@ public interface I_C_AcctSchema_Default */ public int getCB_CashTransfer_Acct(); + public I_C_ValidCombination getCB_CashTransfer_A() throws RuntimeException; + /** Column name CB_Differences_Acct */ public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; @@ -311,6 +345,8 @@ public interface I_C_AcctSchema_Default */ public int getCB_Differences_Acct(); + public I_C_ValidCombination getCB_Differences_A() throws RuntimeException; + /** Column name CB_Expense_Acct */ public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; @@ -324,6 +360,8 @@ public interface I_C_AcctSchema_Default */ public int getCB_Expense_Acct(); + public I_C_ValidCombination getCB_Expense_A() throws RuntimeException; + /** Column name CB_Receipt_Acct */ public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; @@ -337,6 +375,8 @@ public interface I_C_AcctSchema_Default */ public int getCB_Receipt_Acct(); + public I_C_ValidCombination getCB_Receipt_A() throws RuntimeException; + /** Column name Ch_Expense_Acct */ public static final String COLUMNNAME_Ch_Expense_Acct = "Ch_Expense_Acct"; @@ -350,6 +390,8 @@ public interface I_C_AcctSchema_Default */ public int getCh_Expense_Acct(); + public I_C_ValidCombination getCh_Expense_A() throws RuntimeException; + /** Column name Ch_Revenue_Acct */ public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; @@ -363,6 +405,8 @@ public interface I_C_AcctSchema_Default */ public int getCh_Revenue_Acct(); + public I_C_ValidCombination getCh_Revenue_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -392,6 +436,8 @@ public interface I_C_AcctSchema_Default */ public int getE_Expense_Acct(); + public I_C_ValidCombination getE_Expense_A() throws RuntimeException; + /** Column name E_Prepayment_Acct */ public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; @@ -405,6 +451,8 @@ public interface I_C_AcctSchema_Default */ public int getE_Prepayment_Acct(); + public I_C_ValidCombination getE_Prepayment_A() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -431,6 +479,8 @@ public interface I_C_AcctSchema_Default */ public int getNotInvoicedReceipts_Acct(); + public I_C_ValidCombination getNotInvoicedReceipts_A() throws RuntimeException; + /** Column name NotInvoicedReceivables_Acct */ public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; @@ -444,6 +494,8 @@ public interface I_C_AcctSchema_Default */ public int getNotInvoicedReceivables_Acct(); + public I_C_ValidCombination getNotInvoicedReceivables_A() throws RuntimeException; + /** Column name NotInvoicedRevenue_Acct */ public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; @@ -457,6 +509,8 @@ public interface I_C_AcctSchema_Default */ public int getNotInvoicedRevenue_Acct(); + public I_C_ValidCombination getNotInvoicedRevenue_A() throws RuntimeException; + /** Column name P_Asset_Acct */ public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; @@ -470,6 +524,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Asset_Acct(); + public I_C_ValidCombination getP_Asset_A() throws RuntimeException; + /** Column name P_Burden_Acct */ public static final String COLUMNNAME_P_Burden_Acct = "P_Burden_Acct"; @@ -483,6 +539,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Burden_Acct(); + public I_C_ValidCombination getP_Burden_A() throws RuntimeException; + /** Column name P_COGS_Acct */ public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; @@ -496,6 +554,8 @@ public interface I_C_AcctSchema_Default */ public int getP_COGS_Acct(); + public I_C_ValidCombination getP_COGS_A() throws RuntimeException; + /** Column name P_CostAdjustment_Acct */ public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; @@ -509,6 +569,8 @@ public interface I_C_AcctSchema_Default */ public int getP_CostAdjustment_Acct(); + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException; + /** Column name P_CostOfProduction_Acct */ public static final String COLUMNNAME_P_CostOfProduction_Acct = "P_CostOfProduction_Acct"; @@ -522,6 +584,8 @@ public interface I_C_AcctSchema_Default */ public int getP_CostOfProduction_Acct(); + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException; + /** Column name P_Expense_Acct */ public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; @@ -535,6 +599,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Expense_Acct(); + public I_C_ValidCombination getP_Expense_A() throws RuntimeException; + /** Column name P_FloorStock_Acct */ public static final String COLUMNNAME_P_FloorStock_Acct = "P_FloorStock_Acct"; @@ -548,6 +614,8 @@ public interface I_C_AcctSchema_Default */ public int getP_FloorStock_Acct(); + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException; + /** Column name P_InventoryClearing_Acct */ public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; @@ -561,6 +629,8 @@ public interface I_C_AcctSchema_Default */ public int getP_InventoryClearing_Acct(); + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException; + /** Column name P_InvoicePriceVariance_Acct */ public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; @@ -574,6 +644,8 @@ public interface I_C_AcctSchema_Default */ public int getP_InvoicePriceVariance_Acct(); + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException; + /** Column name P_Labor_Acct */ public static final String COLUMNNAME_P_Labor_Acct = "P_Labor_Acct"; @@ -587,6 +659,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Labor_Acct(); + public I_C_ValidCombination getP_Labor_A() throws RuntimeException; + /** Column name P_MethodChangeVariance_Acct */ public static final String COLUMNNAME_P_MethodChangeVariance_Acct = "P_MethodChangeVariance_Acct"; @@ -600,6 +674,8 @@ public interface I_C_AcctSchema_Default */ public int getP_MethodChangeVariance_Acct(); + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException; + /** Column name P_MixVariance_Acct */ public static final String COLUMNNAME_P_MixVariance_Acct = "P_MixVariance_Acct"; @@ -613,6 +689,8 @@ public interface I_C_AcctSchema_Default */ public int getP_MixVariance_Acct(); + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException; + /** Column name P_OutsideProcessing_Acct */ public static final String COLUMNNAME_P_OutsideProcessing_Acct = "P_OutsideProcessing_Acct"; @@ -626,6 +704,8 @@ public interface I_C_AcctSchema_Default */ public int getP_OutsideProcessing_Acct(); + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException; + /** Column name P_Overhead_Acct */ public static final String COLUMNNAME_P_Overhead_Acct = "P_Overhead_Acct"; @@ -639,6 +719,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Overhead_Acct(); + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException; + /** Column name P_PurchasePriceVariance_Acct */ public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; @@ -652,6 +734,8 @@ public interface I_C_AcctSchema_Default */ public int getP_PurchasePriceVariance_Acct(); + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException; + /** Column name P_RateVariance_Acct */ public static final String COLUMNNAME_P_RateVariance_Acct = "P_RateVariance_Acct"; @@ -665,6 +749,8 @@ public interface I_C_AcctSchema_Default */ public int getP_RateVariance_Acct(); + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException; + /** Column name P_Revenue_Acct */ public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; @@ -678,6 +764,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Revenue_Acct(); + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException; + /** Column name P_Scrap_Acct */ public static final String COLUMNNAME_P_Scrap_Acct = "P_Scrap_Acct"; @@ -691,6 +779,8 @@ public interface I_C_AcctSchema_Default */ public int getP_Scrap_Acct(); + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException; + /** Column name P_TradeDiscountGrant_Acct */ public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; @@ -704,6 +794,8 @@ public interface I_C_AcctSchema_Default */ public int getP_TradeDiscountGrant_Acct(); + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException; + /** Column name P_TradeDiscountRec_Acct */ public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; @@ -717,6 +809,8 @@ public interface I_C_AcctSchema_Default */ public int getP_TradeDiscountRec_Acct(); + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException; + /** Column name P_UsageVariance_Acct */ public static final String COLUMNNAME_P_UsageVariance_Acct = "P_UsageVariance_Acct"; @@ -730,6 +824,8 @@ public interface I_C_AcctSchema_Default */ public int getP_UsageVariance_Acct(); + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException; + /** Column name P_WIP_Acct */ public static final String COLUMNNAME_P_WIP_Acct = "P_WIP_Acct"; @@ -743,6 +839,8 @@ public interface I_C_AcctSchema_Default */ public int getP_WIP_Acct(); + public I_C_ValidCombination getP_WIP_A() throws RuntimeException; + /** Column name PayDiscount_Exp_Acct */ public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; @@ -756,6 +854,8 @@ public interface I_C_AcctSchema_Default */ public int getPayDiscount_Exp_Acct(); + public I_C_ValidCombination getPayDiscount_Exp_A() throws RuntimeException; + /** Column name PayDiscount_Rev_Acct */ public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; @@ -769,6 +869,8 @@ public interface I_C_AcctSchema_Default */ public int getPayDiscount_Rev_Acct(); + public I_C_ValidCombination getPayDiscount_Rev_A() throws RuntimeException; + /** Column name PJ_Asset_Acct */ public static final String COLUMNNAME_PJ_Asset_Acct = "PJ_Asset_Acct"; @@ -782,6 +884,8 @@ public interface I_C_AcctSchema_Default */ public int getPJ_Asset_Acct(); + public I_C_ValidCombination getPJ_Asset_A() throws RuntimeException; + /** Column name PJ_WIP_Acct */ public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; @@ -795,6 +899,8 @@ public interface I_C_AcctSchema_Default */ public int getPJ_WIP_Acct(); + public I_C_ValidCombination getPJ_WIP_A() throws RuntimeException; + /** Column name Processing */ public static final String COLUMNNAME_Processing = "Processing"; @@ -817,6 +923,8 @@ public interface I_C_AcctSchema_Default */ public int getRealizedGain_Acct(); + public I_C_ValidCombination getRealizedGain_A() throws RuntimeException; + /** Column name RealizedLoss_Acct */ public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; @@ -830,6 +938,8 @@ public interface I_C_AcctSchema_Default */ public int getRealizedLoss_Acct(); + public I_C_ValidCombination getRealizedLoss_A() throws RuntimeException; + /** Column name T_Credit_Acct */ public static final String COLUMNNAME_T_Credit_Acct = "T_Credit_Acct"; @@ -843,6 +953,8 @@ public interface I_C_AcctSchema_Default */ public int getT_Credit_Acct(); + public I_C_ValidCombination getT_Credit_A() throws RuntimeException; + /** Column name T_Due_Acct */ public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; @@ -856,6 +968,8 @@ public interface I_C_AcctSchema_Default */ public int getT_Due_Acct(); + public I_C_ValidCombination getT_Due_A() throws RuntimeException; + /** Column name T_Expense_Acct */ public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; @@ -869,6 +983,8 @@ public interface I_C_AcctSchema_Default */ public int getT_Expense_Acct(); + public I_C_ValidCombination getT_Expense_A() throws RuntimeException; + /** Column name T_Liability_Acct */ public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; @@ -882,6 +998,8 @@ public interface I_C_AcctSchema_Default */ public int getT_Liability_Acct(); + public I_C_ValidCombination getT_Liability_A() throws RuntimeException; + /** Column name T_Receivables_Acct */ public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; @@ -895,6 +1013,8 @@ public interface I_C_AcctSchema_Default */ public int getT_Receivables_Acct(); + public I_C_ValidCombination getT_Receivables_A() throws RuntimeException; + /** Column name UnEarnedRevenue_Acct */ public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; @@ -908,6 +1028,8 @@ public interface I_C_AcctSchema_Default */ public int getUnEarnedRevenue_Acct(); + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException; + /** Column name UnrealizedGain_Acct */ public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; @@ -921,6 +1043,8 @@ public interface I_C_AcctSchema_Default */ public int getUnrealizedGain_Acct(); + public I_C_ValidCombination getUnrealizedGain_A() throws RuntimeException; + /** Column name UnrealizedLoss_Acct */ public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; @@ -934,6 +1058,8 @@ public interface I_C_AcctSchema_Default */ public int getUnrealizedLoss_Acct(); + public I_C_ValidCombination getUnrealizedLoss_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; @@ -963,6 +1089,8 @@ public interface I_C_AcctSchema_Default */ public int getV_Liability_Acct(); + public I_C_ValidCombination getV_Liability_A() throws RuntimeException; + /** Column name V_Liability_Services_Acct */ public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; @@ -976,6 +1104,8 @@ public interface I_C_AcctSchema_Default */ public int getV_Liability_Services_Acct(); + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException; + /** Column name V_Prepayment_Acct */ public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; @@ -989,6 +1119,8 @@ public interface I_C_AcctSchema_Default */ public int getV_Prepayment_Acct(); + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException; + /** Column name W_Differences_Acct */ public static final String COLUMNNAME_W_Differences_Acct = "W_Differences_Acct"; @@ -1002,6 +1134,8 @@ public interface I_C_AcctSchema_Default */ public int getW_Differences_Acct(); + public I_C_ValidCombination getW_Differences_A() throws RuntimeException; + /** Column name W_InvActualAdjust_Acct */ public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; @@ -1015,6 +1149,8 @@ public interface I_C_AcctSchema_Default */ public int getW_InvActualAdjust_Acct(); + public I_C_ValidCombination getW_InvActualAdjust_A() throws RuntimeException; + /** Column name W_Inventory_Acct */ public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; @@ -1028,6 +1164,8 @@ public interface I_C_AcctSchema_Default */ public int getW_Inventory_Acct(); + public I_C_ValidCombination getW_Inventory_A() throws RuntimeException; + /** Column name W_Revaluation_Acct */ public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; @@ -1041,6 +1179,8 @@ public interface I_C_AcctSchema_Default */ public int getW_Revaluation_Acct(); + public I_C_ValidCombination getW_Revaluation_A() throws RuntimeException; + /** Column name Withholding_Acct */ public static final String COLUMNNAME_Withholding_Acct = "Withholding_Acct"; @@ -1054,6 +1194,8 @@ public interface I_C_AcctSchema_Default */ public int getWithholding_Acct(); + public I_C_ValidCombination getWithholding_A() throws RuntimeException; + /** Column name WriteOff_Acct */ public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; @@ -1066,4 +1208,6 @@ public interface I_C_AcctSchema_Default * Account for Receivables write-off */ public int getWriteOff_Acct(); + + public I_C_ValidCombination getWriteOff_A() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_AcctSchema_Element.java b/base/src/org/compiere/model/I_C_AcctSchema_Element.java index c520967fb4..6103a7c641 100644 --- a/base/src/org/compiere/model/I_C_AcctSchema_Element.java +++ b/base/src/org/compiere/model/I_C_AcctSchema_Element.java @@ -189,6 +189,8 @@ public interface I_C_AcctSchema_Element */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; diff --git a/base/src/org/compiere/model/I_C_AcctSchema_GL.java b/base/src/org/compiere/model/I_C_AcctSchema_GL.java index eb38adbc8f..eb82bbe369 100644 --- a/base/src/org/compiere/model/I_C_AcctSchema_GL.java +++ b/base/src/org/compiere/model/I_C_AcctSchema_GL.java @@ -90,6 +90,8 @@ public interface I_C_AcctSchema_GL */ public int getCommitmentOffset_Acct(); + public I_C_ValidCombination getCommitmentOffset_A() throws RuntimeException; + /** Column name CommitmentOffsetSales_Acct */ public static final String COLUMNNAME_CommitmentOffsetSales_Acct = "CommitmentOffsetSales_Acct"; @@ -103,6 +105,8 @@ public interface I_C_AcctSchema_GL */ public int getCommitmentOffsetSales_Acct(); + public I_C_ValidCombination getCommitmentOffsetSales_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -132,6 +136,8 @@ public interface I_C_AcctSchema_GL */ public int getCurrencyBalancing_Acct(); + public I_C_ValidCombination getCurrencyBalancing_A() throws RuntimeException; + /** Column name IncomeSummary_Acct */ public static final String COLUMNNAME_IncomeSummary_Acct = "IncomeSummary_Acct"; @@ -145,6 +151,8 @@ public interface I_C_AcctSchema_GL */ public int getIncomeSummary_Acct(); + public I_C_ValidCombination getIncomeSummary_A() throws RuntimeException; + /** Column name IntercompanyDueFrom_Acct */ public static final String COLUMNNAME_IntercompanyDueFrom_Acct = "IntercompanyDueFrom_Acct"; @@ -158,6 +166,8 @@ public interface I_C_AcctSchema_GL */ public int getIntercompanyDueFrom_Acct(); + public I_C_ValidCombination getIntercompanyDueFrom_A() throws RuntimeException; + /** Column name IntercompanyDueTo_Acct */ public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; @@ -171,6 +181,8 @@ public interface I_C_AcctSchema_GL */ public int getIntercompanyDueTo_Acct(); + public I_C_ValidCombination getIntercompanyDueTo_A() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -197,6 +209,8 @@ public interface I_C_AcctSchema_GL */ public int getPPVOffset_Acct(); + public I_C_ValidCombination getPPVOffset_A() throws RuntimeException; + /** Column name RetainedEarning_Acct */ public static final String COLUMNNAME_RetainedEarning_Acct = "RetainedEarning_Acct"; @@ -206,6 +220,8 @@ public interface I_C_AcctSchema_GL /** Get Retained Earning Acct */ public int getRetainedEarning_Acct(); + public I_C_ValidCombination getRetainedEarning_A() throws RuntimeException; + /** Column name SuspenseBalancing_Acct */ public static final String COLUMNNAME_SuspenseBalancing_Acct = "SuspenseBalancing_Acct"; @@ -215,6 +231,8 @@ public interface I_C_AcctSchema_GL /** Get Suspense Balancing Acct */ public int getSuspenseBalancing_Acct(); + public I_C_ValidCombination getSuspenseBalancing_A() throws RuntimeException; + /** Column name SuspenseError_Acct */ public static final String COLUMNNAME_SuspenseError_Acct = "SuspenseError_Acct"; @@ -224,6 +242,8 @@ public interface I_C_AcctSchema_GL /** Get Suspense Error Acct */ public int getSuspenseError_Acct(); + public I_C_ValidCombination getSuspenseError_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_BP_Customer_Acct.java b/base/src/org/compiere/model/I_C_BP_Customer_Acct.java index f886e59f09..28c22fa63b 100644 --- a/base/src/org/compiere/model/I_C_BP_Customer_Acct.java +++ b/base/src/org/compiere/model/I_C_BP_Customer_Acct.java @@ -105,6 +105,8 @@ public interface I_C_BP_Customer_Acct */ public int getC_Prepayment_Acct(); + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException; + /** Column name C_Receivable_Acct */ public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; @@ -118,6 +120,8 @@ public interface I_C_BP_Customer_Acct */ public int getC_Receivable_Acct(); + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException; + /** Column name C_Receivable_Services_Acct */ public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; @@ -131,6 +135,8 @@ public interface I_C_BP_Customer_Acct */ public int getC_Receivable_Services_Acct(); + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_BP_EDI.java b/base/src/org/compiere/model/I_C_BP_EDI.java index c083ef8c63..13e7f48c20 100644 --- a/base/src/org/compiere/model/I_C_BP_EDI.java +++ b/base/src/org/compiere/model/I_C_BP_EDI.java @@ -75,6 +75,8 @@ public interface I_C_BP_EDI */ public int getAD_Sequence_ID(); + public I_AD_Sequence getAD_Sequence() throws RuntimeException; + /** Column name C_BP_EDI_ID */ public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID"; diff --git a/base/src/org/compiere/model/I_C_BP_Employee_Acct.java b/base/src/org/compiere/model/I_C_BP_Employee_Acct.java index 7f46142138..f406ce1e34 100644 --- a/base/src/org/compiere/model/I_C_BP_Employee_Acct.java +++ b/base/src/org/compiere/model/I_C_BP_Employee_Acct.java @@ -121,6 +121,8 @@ public interface I_C_BP_Employee_Acct */ public int getE_Expense_Acct(); + public I_C_ValidCombination getE_Expense_A() throws RuntimeException; + /** Column name E_Prepayment_Acct */ public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; @@ -134,6 +136,8 @@ public interface I_C_BP_Employee_Acct */ public int getE_Prepayment_Acct(); + public I_C_ValidCombination getE_Prepayment_A() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; diff --git a/base/src/org/compiere/model/I_C_BP_Group.java b/base/src/org/compiere/model/I_C_BP_Group.java index 9d4e7341c4..0914c60331 100644 --- a/base/src/org/compiere/model/I_C_BP_Group.java +++ b/base/src/org/compiere/model/I_C_BP_Group.java @@ -199,6 +199,8 @@ public interface I_C_BP_Group */ public int getM_DiscountSchema_ID(); + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException; + /** Column name M_PriceList_ID */ public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; @@ -240,6 +242,8 @@ public interface I_C_BP_Group */ public int getPO_DiscountSchema_ID(); + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException; + /** Column name PO_PriceList_ID */ public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; @@ -253,6 +257,8 @@ public interface I_C_BP_Group */ public int getPO_PriceList_ID(); + public I_M_PriceList getPO_PriceList() throws RuntimeException; + /** Column name PriceMatchTolerance */ public static final String COLUMNNAME_PriceMatchTolerance = "PriceMatchTolerance"; diff --git a/base/src/org/compiere/model/I_C_BP_Group_Acct.java b/base/src/org/compiere/model/I_C_BP_Group_Acct.java index 04b8878227..45caf5975e 100644 --- a/base/src/org/compiere/model/I_C_BP_Group_Acct.java +++ b/base/src/org/compiere/model/I_C_BP_Group_Acct.java @@ -105,6 +105,8 @@ public interface I_C_BP_Group_Acct */ public int getC_Prepayment_Acct(); + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException; + /** Column name C_Receivable_Acct */ public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; @@ -118,6 +120,8 @@ public interface I_C_BP_Group_Acct */ public int getC_Receivable_Acct(); + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException; + /** Column name C_Receivable_Services_Acct */ public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; @@ -131,6 +135,8 @@ public interface I_C_BP_Group_Acct */ public int getC_Receivable_Services_Acct(); + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -173,6 +179,8 @@ public interface I_C_BP_Group_Acct */ public int getNotInvoicedReceipts_Acct(); + public I_C_ValidCombination getNotInvoicedReceipts_A() throws RuntimeException; + /** Column name NotInvoicedReceivables_Acct */ public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; @@ -186,6 +194,8 @@ public interface I_C_BP_Group_Acct */ public int getNotInvoicedReceivables_Acct(); + public I_C_ValidCombination getNotInvoicedReceivables_A() throws RuntimeException; + /** Column name NotInvoicedRevenue_Acct */ public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; @@ -199,6 +209,8 @@ public interface I_C_BP_Group_Acct */ public int getNotInvoicedRevenue_Acct(); + public I_C_ValidCombination getNotInvoicedRevenue_A() throws RuntimeException; + /** Column name PayDiscount_Exp_Acct */ public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; @@ -212,6 +224,8 @@ public interface I_C_BP_Group_Acct */ public int getPayDiscount_Exp_Acct(); + public I_C_ValidCombination getPayDiscount_Exp_A() throws RuntimeException; + /** Column name PayDiscount_Rev_Acct */ public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; @@ -225,6 +239,8 @@ public interface I_C_BP_Group_Acct */ public int getPayDiscount_Rev_Acct(); + public I_C_ValidCombination getPayDiscount_Rev_A() throws RuntimeException; + /** Column name Processing */ public static final String COLUMNNAME_Processing = "Processing"; @@ -247,6 +263,8 @@ public interface I_C_BP_Group_Acct */ public int getUnEarnedRevenue_Acct(); + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; @@ -276,6 +294,8 @@ public interface I_C_BP_Group_Acct */ public int getV_Liability_Acct(); + public I_C_ValidCombination getV_Liability_A() throws RuntimeException; + /** Column name V_Liability_Services_Acct */ public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; @@ -289,6 +309,8 @@ public interface I_C_BP_Group_Acct */ public int getV_Liability_Services_Acct(); + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException; + /** Column name V_Prepayment_Acct */ public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; @@ -302,6 +324,8 @@ public interface I_C_BP_Group_Acct */ public int getV_Prepayment_Acct(); + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException; + /** Column name WriteOff_Acct */ public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; @@ -314,4 +338,6 @@ public interface I_C_BP_Group_Acct * Account for Receivables write-off */ public int getWriteOff_Acct(); + + public I_C_ValidCombination getWriteOff_A() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_BP_Relation.java b/base/src/org/compiere/model/I_C_BP_Relation.java index b38ca8e4e9..f66a1f463e 100644 --- a/base/src/org/compiere/model/I_C_BP_Relation.java +++ b/base/src/org/compiere/model/I_C_BP_Relation.java @@ -118,6 +118,8 @@ public interface I_C_BP_Relation */ public int getC_BPartnerRelation_ID(); + public I_C_BPartner getC_BPartnerRelation() throws RuntimeException; + /** Column name C_BPartnerRelation_Location_ID */ public static final String COLUMNNAME_C_BPartnerRelation_Location_ID = "C_BPartnerRelation_Location_ID"; @@ -131,6 +133,8 @@ public interface I_C_BP_Relation */ public int getC_BPartnerRelation_Location_ID(); + public I_C_BPartner_Location getC_BPartnerRelation_Location() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_BP_Vendor_Acct.java b/base/src/org/compiere/model/I_C_BP_Vendor_Acct.java index 98d39fc42b..783edb2177 100644 --- a/base/src/org/compiere/model/I_C_BP_Vendor_Acct.java +++ b/base/src/org/compiere/model/I_C_BP_Vendor_Acct.java @@ -150,6 +150,8 @@ public interface I_C_BP_Vendor_Acct */ public int getV_Liability_Acct(); + public I_C_ValidCombination getV_Liability_A() throws RuntimeException; + /** Column name V_Liability_Services_Acct */ public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; @@ -163,6 +165,8 @@ public interface I_C_BP_Vendor_Acct */ public int getV_Liability_Services_Acct(); + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException; + /** Column name V_Prepayment_Acct */ public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; @@ -175,4 +179,6 @@ public interface I_C_BP_Vendor_Acct * Account for Vendor Prepayments */ public int getV_Prepayment_Acct(); + + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_BPartner.java b/base/src/org/compiere/model/I_C_BPartner.java index 4ad2c0cf43..c808411511 100644 --- a/base/src/org/compiere/model/I_C_BPartner.java +++ b/base/src/org/compiere/model/I_C_BPartner.java @@ -368,6 +368,8 @@ public interface I_C_BPartner */ public int getInvoice_PrintFormat_ID(); + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException; + /** Column name InvoiceRule */ public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; @@ -529,6 +531,8 @@ public interface I_C_BPartner */ public int getM_DiscountSchema_ID(); + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException; + /** Column name M_PriceList_ID */ public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; @@ -635,6 +639,8 @@ public interface I_C_BPartner */ public int getPO_DiscountSchema_ID(); + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException; + /** Column name PO_PaymentTerm_ID */ public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; @@ -648,6 +654,8 @@ public interface I_C_BPartner */ public int getPO_PaymentTerm_ID(); + public I_C_PaymentTerm getPO_PaymentTerm() throws RuntimeException; + /** Column name PO_PriceList_ID */ public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; @@ -661,6 +669,8 @@ public interface I_C_BPartner */ public int getPO_PriceList_ID(); + public I_M_PriceList getPO_PriceList() throws RuntimeException; + /** Column name POReference */ public static final String COLUMNNAME_POReference = "POReference"; @@ -726,6 +736,8 @@ public interface I_C_BPartner */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SalesVolume */ public static final String COLUMNNAME_SalesVolume = "SalesVolume"; diff --git a/base/src/org/compiere/model/I_C_BPartner_Location.java b/base/src/org/compiere/model/I_C_BPartner_Location.java index 9b66d7cd0a..28f3cb78e9 100644 --- a/base/src/org/compiere/model/I_C_BPartner_Location.java +++ b/base/src/org/compiere/model/I_C_BPartner_Location.java @@ -103,6 +103,8 @@ public interface I_C_BPartner_Location */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_SalesRegion_ID */ public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; diff --git a/base/src/org/compiere/model/I_C_Bank.java b/base/src/org/compiere/model/I_C_Bank.java index 53564df4b2..2ad27f25b6 100644 --- a/base/src/org/compiere/model/I_C_Bank.java +++ b/base/src/org/compiere/model/I_C_Bank.java @@ -88,6 +88,8 @@ public interface I_C_Bank */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_BankAccountDoc.java b/base/src/org/compiere/model/I_C_BankAccountDoc.java index 782e43bb04..3388c2cbdc 100644 --- a/base/src/org/compiere/model/I_C_BankAccountDoc.java +++ b/base/src/org/compiere/model/I_C_BankAccountDoc.java @@ -103,6 +103,8 @@ public interface I_C_BankAccountDoc */ public int getCheck_PrintFormat_ID(); + public I_AD_PrintFormat getCheck_PrintFormat() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_BankAccount_Acct.java b/base/src/org/compiere/model/I_C_BankAccount_Acct.java index f25a77ac96..8a01257715 100644 --- a/base/src/org/compiere/model/I_C_BankAccount_Acct.java +++ b/base/src/org/compiere/model/I_C_BankAccount_Acct.java @@ -75,6 +75,8 @@ public interface I_C_BankAccount_Acct */ public int getB_Asset_Acct(); + public I_C_ValidCombination getB_Asset_A() throws RuntimeException; + /** Column name B_Expense_Acct */ public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; @@ -88,6 +90,8 @@ public interface I_C_BankAccount_Acct */ public int getB_Expense_Acct(); + public I_C_ValidCombination getB_Expense_A() throws RuntimeException; + /** Column name B_InterestExp_Acct */ public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; @@ -101,6 +105,8 @@ public interface I_C_BankAccount_Acct */ public int getB_InterestExp_Acct(); + public I_C_ValidCombination getB_InterestExp_A() throws RuntimeException; + /** Column name B_InterestRev_Acct */ public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; @@ -114,6 +120,8 @@ public interface I_C_BankAccount_Acct */ public int getB_InterestRev_Acct(); + public I_C_ValidCombination getB_InterestRev_A() throws RuntimeException; + /** Column name B_InTransit_Acct */ public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; @@ -127,6 +135,8 @@ public interface I_C_BankAccount_Acct */ public int getB_InTransit_Acct(); + public I_C_ValidCombination getB_InTransit_A() throws RuntimeException; + /** Column name B_PaymentSelect_Acct */ public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; @@ -140,6 +150,8 @@ public interface I_C_BankAccount_Acct */ public int getB_PaymentSelect_Acct(); + public I_C_ValidCombination getB_PaymentSelect_A() throws RuntimeException; + /** Column name B_RevaluationGain_Acct */ public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; @@ -153,6 +165,8 @@ public interface I_C_BankAccount_Acct */ public int getB_RevaluationGain_Acct(); + public I_C_ValidCombination getB_RevaluationGain_A() throws RuntimeException; + /** Column name B_RevaluationLoss_Acct */ public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; @@ -166,6 +180,8 @@ public interface I_C_BankAccount_Acct */ public int getB_RevaluationLoss_Acct(); + public I_C_ValidCombination getB_RevaluationLoss_A() throws RuntimeException; + /** Column name B_SettlementGain_Acct */ public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; @@ -179,6 +195,8 @@ public interface I_C_BankAccount_Acct */ public int getB_SettlementGain_Acct(); + public I_C_ValidCombination getB_SettlementGain_A() throws RuntimeException; + /** Column name B_SettlementLoss_Acct */ public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; @@ -192,6 +210,8 @@ public interface I_C_BankAccount_Acct */ public int getB_SettlementLoss_Acct(); + public I_C_ValidCombination getB_SettlementLoss_A() throws RuntimeException; + /** Column name B_UnallocatedCash_Acct */ public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; @@ -205,6 +225,8 @@ public interface I_C_BankAccount_Acct */ public int getB_UnallocatedCash_Acct(); + public I_C_ValidCombination getB_UnallocatedCash_A() throws RuntimeException; + /** Column name B_Unidentified_Acct */ public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; @@ -218,6 +240,8 @@ public interface I_C_BankAccount_Acct */ public int getB_Unidentified_Acct(); + public I_C_ValidCombination getB_Unidentified_A() throws RuntimeException; + /** Column name C_AcctSchema_ID */ public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; diff --git a/base/src/org/compiere/model/I_C_Cash.java b/base/src/org/compiere/model/I_C_Cash.java index a8729362a5..a7cb6b8d87 100644 --- a/base/src/org/compiere/model/I_C_Cash.java +++ b/base/src/org/compiere/model/I_C_Cash.java @@ -371,6 +371,8 @@ public interface I_C_Cash */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -383,4 +385,6 @@ public interface I_C_Cash * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_CashBook_Acct.java b/base/src/org/compiere/model/I_C_CashBook_Acct.java index 0ca05b539d..4cceb573e6 100644 --- a/base/src/org/compiere/model/I_C_CashBook_Acct.java +++ b/base/src/org/compiere/model/I_C_CashBook_Acct.java @@ -105,6 +105,8 @@ public interface I_C_CashBook_Acct */ public int getCB_Asset_Acct(); + public I_C_ValidCombination getCB_Asset_A() throws RuntimeException; + /** Column name CB_CashTransfer_Acct */ public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; @@ -118,6 +120,8 @@ public interface I_C_CashBook_Acct */ public int getCB_CashTransfer_Acct(); + public I_C_ValidCombination getCB_CashTransfer_A() throws RuntimeException; + /** Column name CB_Differences_Acct */ public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; @@ -131,6 +135,8 @@ public interface I_C_CashBook_Acct */ public int getCB_Differences_Acct(); + public I_C_ValidCombination getCB_Differences_A() throws RuntimeException; + /** Column name CB_Expense_Acct */ public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; @@ -144,6 +150,8 @@ public interface I_C_CashBook_Acct */ public int getCB_Expense_Acct(); + public I_C_ValidCombination getCB_Expense_A() throws RuntimeException; + /** Column name CB_Receipt_Acct */ public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; @@ -157,6 +165,8 @@ public interface I_C_CashBook_Acct */ public int getCB_Receipt_Acct(); + public I_C_ValidCombination getCB_Receipt_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_Charge_Acct.java b/base/src/org/compiere/model/I_C_Charge_Acct.java index 0c428e096d..8cd8382fca 100644 --- a/base/src/org/compiere/model/I_C_Charge_Acct.java +++ b/base/src/org/compiere/model/I_C_Charge_Acct.java @@ -105,6 +105,8 @@ public interface I_C_Charge_Acct */ public int getCh_Expense_Acct(); + public I_C_ValidCombination getCh_Expense_A() throws RuntimeException; + /** Column name Ch_Revenue_Acct */ public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; @@ -118,6 +120,8 @@ public interface I_C_Charge_Acct */ public int getCh_Revenue_Acct(); + public I_C_ValidCombination getCh_Revenue_A() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_City.java b/base/src/org/compiere/model/I_C_City.java index 2acd732b5a..55553abf1f 100644 --- a/base/src/org/compiere/model/I_C_City.java +++ b/base/src/org/compiere/model/I_C_City.java @@ -116,6 +116,8 @@ public interface I_C_City */ public int getC_Region_ID(); + public I_C_Region getC_Region() throws RuntimeException; + /** Column name Coordinates */ public static final String COLUMNNAME_Coordinates = "Coordinates"; diff --git a/base/src/org/compiere/model/I_C_Commission.java b/base/src/org/compiere/model/I_C_Commission.java index ee91e89a78..6aa992c970 100644 --- a/base/src/org/compiere/model/I_C_Commission.java +++ b/base/src/org/compiere/model/I_C_Commission.java @@ -75,6 +75,8 @@ public interface I_C_Commission */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name C_Charge_ID */ public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; diff --git a/base/src/org/compiere/model/I_C_Conversion_Rate.java b/base/src/org/compiere/model/I_C_Conversion_Rate.java index f7fb47cd96..7b9769a289 100644 --- a/base/src/org/compiere/model/I_C_Conversion_Rate.java +++ b/base/src/org/compiere/model/I_C_Conversion_Rate.java @@ -103,6 +103,8 @@ public interface I_C_Conversion_Rate */ public int getC_Currency_ID(); + public I_C_Currency getC_Currency() throws RuntimeException; + /** Column name C_Currency_ID_To */ public static final String COLUMNNAME_C_Currency_ID_To = "C_Currency_ID_To"; @@ -116,6 +118,8 @@ public interface I_C_Conversion_Rate */ public int getC_Currency_ID_To(); + public I_C_Currency getC_Currency_To() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_Currency_Acct.java b/base/src/org/compiere/model/I_C_Currency_Acct.java index 36b39b85d4..64a9874dca 100644 --- a/base/src/org/compiere/model/I_C_Currency_Acct.java +++ b/base/src/org/compiere/model/I_C_Currency_Acct.java @@ -134,6 +134,8 @@ public interface I_C_Currency_Acct */ public int getRealizedGain_Acct(); + public I_C_ValidCombination getRealizedGain_A() throws RuntimeException; + /** Column name RealizedLoss_Acct */ public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; @@ -147,6 +149,8 @@ public interface I_C_Currency_Acct */ public int getRealizedLoss_Acct(); + public I_C_ValidCombination getRealizedLoss_A() throws RuntimeException; + /** Column name UnrealizedGain_Acct */ public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; @@ -160,6 +164,8 @@ public interface I_C_Currency_Acct */ public int getUnrealizedGain_Acct(); + public I_C_ValidCombination getUnrealizedGain_A() throws RuntimeException; + /** Column name UnrealizedLoss_Acct */ public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; @@ -173,6 +179,8 @@ public interface I_C_Currency_Acct */ public int getUnrealizedLoss_Acct(); + public I_C_ValidCombination getUnrealizedLoss_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_DocType.java b/base/src/org/compiere/model/I_C_DocType.java index 28b868bc24..365f88cada 100644 --- a/base/src/org/compiere/model/I_C_DocType.java +++ b/base/src/org/compiere/model/I_C_DocType.java @@ -103,6 +103,8 @@ public interface I_C_DocType */ public int getC_DocTypeDifference_ID(); + public I_C_DocType getC_DocTypeDifference() throws RuntimeException; + /** Column name C_DocTypeInvoice_ID */ public static final String COLUMNNAME_C_DocTypeInvoice_ID = "C_DocTypeInvoice_ID"; @@ -116,6 +118,8 @@ public interface I_C_DocType */ public int getC_DocTypeInvoice_ID(); + public I_C_DocType getC_DocTypeInvoice() throws RuntimeException; + /** Column name C_DocTypeProforma_ID */ public static final String COLUMNNAME_C_DocTypeProforma_ID = "C_DocTypeProforma_ID"; @@ -129,6 +133,8 @@ public interface I_C_DocType */ public int getC_DocTypeProforma_ID(); + public I_C_DocType getC_DocTypeProforma() throws RuntimeException; + /** Column name C_DocTypeShipment_ID */ public static final String COLUMNNAME_C_DocTypeShipment_ID = "C_DocTypeShipment_ID"; @@ -142,6 +148,8 @@ public interface I_C_DocType */ public int getC_DocTypeShipment_ID(); + public I_C_DocType getC_DocTypeShipment() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -167,6 +175,8 @@ public interface I_C_DocType /** Get Definite Sequence */ public int getDefiniteSequence_ID(); + public I_AD_Sequence getDefiniteSequence() throws RuntimeException; + /** Column name Description */ public static final String COLUMNNAME_Description = "Description"; @@ -206,6 +216,8 @@ public interface I_C_DocType */ public int getDocNoSequence_ID(); + public I_AD_Sequence getDocNoSequence() throws RuntimeException; + /** Column name DocSubTypeSO */ public static final String COLUMNNAME_DocSubTypeSO = "DocSubTypeSO"; diff --git a/base/src/org/compiere/model/I_C_DocTypeCounter.java b/base/src/org/compiere/model/I_C_DocTypeCounter.java index f7ca480afa..c67ca0180a 100644 --- a/base/src/org/compiere/model/I_C_DocTypeCounter.java +++ b/base/src/org/compiere/model/I_C_DocTypeCounter.java @@ -103,6 +103,8 @@ public interface I_C_DocTypeCounter */ public int getCounter_C_DocType_ID(); + public I_C_DocType getCounter_C_DocType() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_DunningLevel.java b/base/src/org/compiere/model/I_C_DunningLevel.java index 02d4d7ee44..0624e5160b 100644 --- a/base/src/org/compiere/model/I_C_DunningLevel.java +++ b/base/src/org/compiere/model/I_C_DunningLevel.java @@ -195,6 +195,8 @@ public interface I_C_DunningLevel */ public int getDunning_PrintFormat_ID(); + public I_AD_PrintFormat getDunning_PrintFormat() throws RuntimeException; + /** Column name FeeAmt */ public static final String COLUMNNAME_FeeAmt = "FeeAmt"; diff --git a/base/src/org/compiere/model/I_C_DunningRunEntry.java b/base/src/org/compiere/model/I_C_DunningRunEntry.java index 52c3ccb826..6acb426715 100644 --- a/base/src/org/compiere/model/I_C_DunningRunEntry.java +++ b/base/src/org/compiere/model/I_C_DunningRunEntry.java @@ -244,6 +244,8 @@ public interface I_C_DunningRunEntry */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_InterOrg_Acct.java b/base/src/org/compiere/model/I_C_InterOrg_Acct.java index 46f26f677b..0347ef26f0 100644 --- a/base/src/org/compiere/model/I_C_InterOrg_Acct.java +++ b/base/src/org/compiere/model/I_C_InterOrg_Acct.java @@ -119,6 +119,8 @@ public interface I_C_InterOrg_Acct */ public int getIntercompanyDueFrom_Acct(); + public I_C_ValidCombination getIntercompanyDueFrom_A() throws RuntimeException; + /** Column name IntercompanyDueTo_Acct */ public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; @@ -132,6 +134,8 @@ public interface I_C_InterOrg_Acct */ public int getIntercompanyDueTo_Acct(); + public I_C_ValidCombination getIntercompanyDueTo_A() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; diff --git a/base/src/org/compiere/model/I_C_Invoice.java b/base/src/org/compiere/model/I_C_Invoice.java index 75dc8a5ef2..4ad3ade85e 100644 --- a/base/src/org/compiere/model/I_C_Invoice.java +++ b/base/src/org/compiere/model/I_C_Invoice.java @@ -178,6 +178,8 @@ public interface I_C_Invoice */ public int getC_Charge_ID(); + public I_C_Charge getC_Charge() throws RuntimeException; + /** Column name C_ConversionType_ID */ public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; @@ -236,6 +238,8 @@ public interface I_C_Invoice */ public int getC_DocTypeTarget_ID(); + public I_C_DocType getC_DocTypeTarget() throws RuntimeException; + /** Column name C_DunningLevel_ID */ public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; @@ -783,6 +787,8 @@ public interface I_C_Invoice */ public int getReversal_ID(); + public I_C_Invoice getReversal() throws RuntimeException; + /** Column name SalesRep_ID */ public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; @@ -796,6 +802,8 @@ public interface I_C_Invoice */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SendEMail */ public static final String COLUMNNAME_SendEMail = "SendEMail"; @@ -851,6 +859,8 @@ public interface I_C_Invoice */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -863,4 +873,6 @@ public interface I_C_Invoice * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_InvoiceBatch.java b/base/src/org/compiere/model/I_C_InvoiceBatch.java index 59735ea3f7..eeca922996 100644 --- a/base/src/org/compiere/model/I_C_InvoiceBatch.java +++ b/base/src/org/compiere/model/I_C_InvoiceBatch.java @@ -247,6 +247,8 @@ public interface I_C_InvoiceBatch */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_InvoiceBatchLine.java b/base/src/org/compiere/model/I_C_InvoiceBatchLine.java index 5c5dfcdcbe..e8341c1223 100644 --- a/base/src/org/compiere/model/I_C_InvoiceBatchLine.java +++ b/base/src/org/compiere/model/I_C_InvoiceBatchLine.java @@ -467,6 +467,8 @@ public interface I_C_InvoiceBatchLine */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -479,4 +481,6 @@ public interface I_C_InvoiceBatchLine * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_InvoiceLine.java b/base/src/org/compiere/model/I_C_InvoiceLine.java index b5977b1f9a..e50f414c58 100644 --- a/base/src/org/compiere/model/I_C_InvoiceLine.java +++ b/base/src/org/compiere/model/I_C_InvoiceLine.java @@ -415,6 +415,8 @@ public interface I_C_InvoiceLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; @@ -641,6 +643,8 @@ public interface I_C_InvoiceLine */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -653,4 +657,6 @@ public interface I_C_InvoiceLine * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_LandedCostAllocation.java b/base/src/org/compiere/model/I_C_LandedCostAllocation.java index 0225eff871..3c6ba6ce25 100644 --- a/base/src/org/compiere/model/I_C_LandedCostAllocation.java +++ b/base/src/org/compiere/model/I_C_LandedCostAllocation.java @@ -145,6 +145,8 @@ public interface I_C_LandedCostAllocation */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_CostElement_ID */ public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; diff --git a/base/src/org/compiere/model/I_C_Order.java b/base/src/org/compiere/model/I_C_Order.java index e4ab6ba160..cfcf1fe576 100644 --- a/base/src/org/compiere/model/I_C_Order.java +++ b/base/src/org/compiere/model/I_C_Order.java @@ -121,6 +121,8 @@ public interface I_C_Order */ public int getBill_BPartner_ID(); + public I_C_BPartner getBill_BPartner() throws RuntimeException; + /** Column name Bill_Location_ID */ public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; @@ -134,6 +136,8 @@ public interface I_C_Order */ public int getBill_Location_ID(); + public I_C_BPartner_Location getBill_Location() throws RuntimeException; + /** Column name Bill_User_ID */ public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; @@ -147,6 +151,8 @@ public interface I_C_Order */ public int getBill_User_ID(); + public I_AD_User getBill_User() throws RuntimeException; + /** Column name C_Activity_ID */ public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; @@ -235,6 +241,8 @@ public interface I_C_Order */ public int getC_Charge_ID(); + public I_C_Charge getC_Charge() throws RuntimeException; + /** Column name C_ConversionType_ID */ public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; @@ -293,6 +301,8 @@ public interface I_C_Order */ public int getC_DocTypeTarget_ID(); + public I_C_DocType getC_DocTypeTarget() throws RuntimeException; + /** Column name C_Order_ID */ public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; @@ -551,6 +561,8 @@ public interface I_C_Order */ public int getDropShip_BPartner_ID(); + public I_C_BPartner getDropShip_BPartner() throws RuntimeException; + /** Column name DropShip_Location_ID */ public static final String COLUMNNAME_DropShip_Location_ID = "DropShip_Location_ID"; @@ -564,6 +576,8 @@ public interface I_C_Order */ public int getDropShip_Location_ID(); + public I_C_BPartner_Location getDropShip_Location() throws RuntimeException; + /** Column name DropShip_User_ID */ public static final String COLUMNNAME_DropShip_User_ID = "DropShip_User_ID"; @@ -577,6 +591,8 @@ public interface I_C_Order */ public int getDropShip_User_ID(); + public I_AD_User getDropShip_User() throws RuntimeException; + /** Column name FreightAmt */ public static final String COLUMNNAME_FreightAmt = "FreightAmt"; @@ -803,6 +819,8 @@ public interface I_C_Order */ public int getLink_Order_ID(); + public I_C_Order getLink_Order() throws RuntimeException; + /** Column name M_FreightCategory_ID */ public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; @@ -998,6 +1016,8 @@ public interface I_C_Order */ public int getRef_Order_ID(); + public I_C_Order getRef_Order() throws RuntimeException; + /** Column name SalesRep_ID */ public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; @@ -1011,6 +1031,8 @@ public interface I_C_Order */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SendEMail */ public static final String COLUMNNAME_SendEMail = "SendEMail"; @@ -1066,6 +1088,8 @@ public interface I_C_Order */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -1079,6 +1103,8 @@ public interface I_C_Order */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name Volume */ public static final String COLUMNNAME_Volume = "Volume"; diff --git a/base/src/org/compiere/model/I_C_OrderLine.java b/base/src/org/compiere/model/I_C_OrderLine.java index 98033d61a2..094576539a 100644 --- a/base/src/org/compiere/model/I_C_OrderLine.java +++ b/base/src/org/compiere/model/I_C_OrderLine.java @@ -440,6 +440,8 @@ public interface I_C_OrderLine */ public int getLink_OrderLine_ID(); + public I_C_OrderLine getLink_OrderLine() throws RuntimeException; + /** Column name M_AttributeSetInstance_ID */ public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; @@ -453,6 +455,8 @@ public interface I_C_OrderLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; @@ -507,6 +511,8 @@ public interface I_C_OrderLine */ public int getM_Warehouse_ID(); + public I_M_Warehouse getM_Warehouse() throws RuntimeException; + /** Column name PP_Cost_Collector_ID */ public static final String COLUMNNAME_PP_Cost_Collector_ID = "PP_Cost_Collector_ID"; @@ -687,6 +693,8 @@ public interface I_C_OrderLine */ public int getRef_OrderLine_ID(); + public I_C_OrderLine getRef_OrderLine() throws RuntimeException; + /** Column name RRAmt */ public static final String COLUMNNAME_RRAmt = "RRAmt"; @@ -755,6 +763,8 @@ public interface I_C_OrderLine */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -767,4 +777,6 @@ public interface I_C_OrderLine * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_C_POS.java b/base/src/org/compiere/model/I_C_POS.java index c23a8c5595..554927ee24 100644 --- a/base/src/org/compiere/model/I_C_POS.java +++ b/base/src/org/compiere/model/I_C_POS.java @@ -90,6 +90,8 @@ public interface I_C_POS */ public int getC_BPartnerCashTrx_ID(); + public I_C_BPartner getC_BPartnerCashTrx() throws RuntimeException; + /** Column name C_CashBook_ID */ public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; @@ -294,6 +296,8 @@ public interface I_C_POS */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_PaySelectionCheck.java b/base/src/org/compiere/model/I_C_PaySelectionCheck.java index a0ab44293f..e5e9c8a353 100644 --- a/base/src/org/compiere/model/I_C_PaySelectionCheck.java +++ b/base/src/org/compiere/model/I_C_PaySelectionCheck.java @@ -105,6 +105,8 @@ public interface I_C_PaySelectionCheck */ public int getC_Payment_ID(); + public I_C_Payment getC_Payment() throws RuntimeException; + /** Column name C_PaySelection_ID */ public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; diff --git a/base/src/org/compiere/model/I_C_Payment.java b/base/src/org/compiere/model/I_C_Payment.java index c379a295a2..badab23aac 100644 --- a/base/src/org/compiere/model/I_C_Payment.java +++ b/base/src/org/compiere/model/I_C_Payment.java @@ -1008,6 +1008,8 @@ public interface I_C_Payment /** Get Referenced Payment */ public int getRef_Payment_ID(); + public I_C_Payment getRef_Payment() throws RuntimeException; + /** Column name Reversal_ID */ public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; @@ -1021,6 +1023,8 @@ public interface I_C_Payment */ public int getReversal_ID(); + public I_C_Payment getReversal() throws RuntimeException; + /** Column name RoutingNo */ public static final String COLUMNNAME_RoutingNo = "RoutingNo"; @@ -1115,6 +1119,8 @@ public interface I_C_Payment */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -1128,6 +1134,8 @@ public interface I_C_Payment */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name VoiceAuthCode */ public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; diff --git a/base/src/org/compiere/model/I_C_PaymentProcessor.java b/base/src/org/compiere/model/I_C_PaymentProcessor.java index d3e3c6ee6b..f084ef28e8 100644 --- a/base/src/org/compiere/model/I_C_PaymentProcessor.java +++ b/base/src/org/compiere/model/I_C_PaymentProcessor.java @@ -205,6 +205,8 @@ public interface I_C_PaymentProcessor */ public int getAD_Sequence_ID(); + public I_AD_Sequence getAD_Sequence() throws RuntimeException; + /** Column name C_BankAccount_ID */ public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; diff --git a/base/src/org/compiere/model/I_C_Project.java b/base/src/org/compiere/model/I_C_Project.java index 96c042f7b9..a51fcd5204 100644 --- a/base/src/org/compiere/model/I_C_Project.java +++ b/base/src/org/compiere/model/I_C_Project.java @@ -120,6 +120,8 @@ public interface I_C_Project */ public int getC_BPartnerSR_ID(); + public I_C_BPartner getC_BPartnerSR() throws RuntimeException; + /** Column name C_Campaign_ID */ public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; @@ -586,6 +588,8 @@ public interface I_C_Project */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_ProjectIssue.java b/base/src/org/compiere/model/I_C_ProjectIssue.java index a5bf570f8d..14abf92572 100644 --- a/base/src/org/compiere/model/I_C_ProjectIssue.java +++ b/base/src/org/compiere/model/I_C_ProjectIssue.java @@ -158,6 +158,8 @@ public interface I_C_ProjectIssue */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; @@ -186,6 +188,8 @@ public interface I_C_ProjectIssue */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_C_ProjectIssueMA.java b/base/src/org/compiere/model/I_C_ProjectIssueMA.java index ba56fccebf..ba7265668f 100644 --- a/base/src/org/compiere/model/I_C_ProjectIssueMA.java +++ b/base/src/org/compiere/model/I_C_ProjectIssueMA.java @@ -119,6 +119,8 @@ public interface I_C_ProjectIssueMA */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name MovementQty */ public static final String COLUMNNAME_MovementQty = "MovementQty"; diff --git a/base/src/org/compiere/model/I_C_ProjectLine.java b/base/src/org/compiere/model/I_C_ProjectLine.java index 26120e6cea..12a6857366 100644 --- a/base/src/org/compiere/model/I_C_ProjectLine.java +++ b/base/src/org/compiere/model/I_C_ProjectLine.java @@ -90,6 +90,8 @@ public interface I_C_ProjectLine */ public int getC_OrderPO_ID(); + public I_C_Order getC_OrderPO() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; diff --git a/base/src/org/compiere/model/I_C_Project_Acct.java b/base/src/org/compiere/model/I_C_Project_Acct.java index 91e229e670..bfdc349e9d 100644 --- a/base/src/org/compiere/model/I_C_Project_Acct.java +++ b/base/src/org/compiere/model/I_C_Project_Acct.java @@ -134,6 +134,8 @@ public interface I_C_Project_Acct */ public int getPJ_Asset_Acct(); + public I_C_ValidCombination getPJ_Asset_A() throws RuntimeException; + /** Column name PJ_WIP_Acct */ public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; @@ -147,6 +149,8 @@ public interface I_C_Project_Acct */ public int getPJ_WIP_Acct(); + public I_C_ValidCombination getPJ_WIP_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java b/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java index ae4420282c..9a2d31106d 100644 --- a/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java +++ b/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java @@ -177,6 +177,8 @@ public interface I_C_RevenueRecognition_Plan */ public int getP_Revenue_Acct(); + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException; + /** Column name RecognizedAmt */ public static final String COLUMNNAME_RecognizedAmt = "RecognizedAmt"; @@ -212,6 +214,8 @@ public interface I_C_RevenueRecognition_Plan */ public int getUnEarnedRevenue_Acct(); + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_RfQ.java b/base/src/org/compiere/model/I_C_RfQ.java index 4095daefdf..2b671bc09d 100644 --- a/base/src/org/compiere/model/I_C_RfQ.java +++ b/base/src/org/compiere/model/I_C_RfQ.java @@ -473,6 +473,8 @@ public interface I_C_RfQ */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_RfQLine.java b/base/src/org/compiere/model/I_C_RfQLine.java index 624a853e86..2ee8ae87b4 100644 --- a/base/src/org/compiere/model/I_C_RfQLine.java +++ b/base/src/org/compiere/model/I_C_RfQLine.java @@ -210,6 +210,8 @@ public interface I_C_RfQLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_C_SalesRegion.java b/base/src/org/compiere/model/I_C_SalesRegion.java index e1965bb1c1..c3c23ac7b0 100644 --- a/base/src/org/compiere/model/I_C_SalesRegion.java +++ b/base/src/org/compiere/model/I_C_SalesRegion.java @@ -169,6 +169,8 @@ public interface I_C_SalesRegion */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_Tax.java b/base/src/org/compiere/model/I_C_Tax.java index a4a62e41de..17a90e3172 100644 --- a/base/src/org/compiere/model/I_C_Tax.java +++ b/base/src/org/compiere/model/I_C_Tax.java @@ -99,6 +99,8 @@ public interface I_C_Tax */ public int getC_Region_ID(); + public I_C_Region getC_Region() throws RuntimeException; + /** Column name C_Tax_ID */ public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; @@ -260,6 +262,8 @@ public interface I_C_Tax */ public int getParent_Tax_ID(); + public I_C_Tax getParent_Tax() throws RuntimeException; + /** Column name Rate */ public static final String COLUMNNAME_Rate = "Rate"; @@ -338,6 +342,8 @@ public interface I_C_Tax */ public int getTo_Region_ID(); + public I_C_Region getTo_Region() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java b/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java index 3287ec8078..4c00869314 100644 --- a/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java +++ b/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java @@ -54,6 +54,8 @@ public interface I_C_TaxDeclarationAcct */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; diff --git a/base/src/org/compiere/model/I_C_Tax_Acct.java b/base/src/org/compiere/model/I_C_Tax_Acct.java index 8d44d81fa1..c5a1d54232 100644 --- a/base/src/org/compiere/model/I_C_Tax_Acct.java +++ b/base/src/org/compiere/model/I_C_Tax_Acct.java @@ -134,6 +134,8 @@ public interface I_C_Tax_Acct */ public int getT_Credit_Acct(); + public I_C_ValidCombination getT_Credit_A() throws RuntimeException; + /** Column name T_Due_Acct */ public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; @@ -147,6 +149,8 @@ public interface I_C_Tax_Acct */ public int getT_Due_Acct(); + public I_C_ValidCombination getT_Due_A() throws RuntimeException; + /** Column name T_Expense_Acct */ public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; @@ -160,6 +164,8 @@ public interface I_C_Tax_Acct */ public int getT_Expense_Acct(); + public I_C_ValidCombination getT_Expense_A() throws RuntimeException; + /** Column name T_Liability_Acct */ public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; @@ -173,6 +179,8 @@ public interface I_C_Tax_Acct */ public int getT_Liability_Acct(); + public I_C_ValidCombination getT_Liability_A() throws RuntimeException; + /** Column name T_Receivables_Acct */ public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; @@ -186,6 +194,8 @@ public interface I_C_Tax_Acct */ public int getT_Receivables_Acct(); + public I_C_ValidCombination getT_Receivables_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_C_UOM_Conversion.java b/base/src/org/compiere/model/I_C_UOM_Conversion.java index 11c7cc8dd8..6b610b8536 100644 --- a/base/src/org/compiere/model/I_C_UOM_Conversion.java +++ b/base/src/org/compiere/model/I_C_UOM_Conversion.java @@ -103,6 +103,8 @@ public interface I_C_UOM_Conversion */ public int getC_UOM_To_ID(); + public I_C_UOM getC_UOM_To() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_C_ValidCombination.java b/base/src/org/compiere/model/I_C_ValidCombination.java index 4eac5ae35e..f9f04522d4 100644 --- a/base/src/org/compiere/model/I_C_ValidCombination.java +++ b/base/src/org/compiere/model/I_C_ValidCombination.java @@ -54,6 +54,8 @@ public interface I_C_ValidCombination */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -129,6 +131,8 @@ public interface I_C_ValidCombination */ public int getC_Activity_ID(); + public I_C_Activity getC_Activity() throws RuntimeException; + /** Column name C_BPartner_ID */ public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; @@ -142,6 +146,8 @@ public interface I_C_ValidCombination */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name C_Campaign_ID */ public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; @@ -155,6 +161,8 @@ public interface I_C_ValidCombination */ public int getC_Campaign_ID(); + public I_C_Campaign getC_Campaign() throws RuntimeException; + /** Column name C_LocFrom_ID */ public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; @@ -168,6 +176,8 @@ public interface I_C_ValidCombination */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -181,6 +191,8 @@ public interface I_C_ValidCombination */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; @@ -194,6 +206,8 @@ public interface I_C_ValidCombination */ public int getC_Project_ID(); + public I_C_Project getC_Project() throws RuntimeException; + /** Column name C_SalesRegion_ID */ public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; @@ -207,6 +221,8 @@ public interface I_C_ValidCombination */ public int getC_SalesRegion_ID(); + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException; + /** Column name C_SubAcct_ID */ public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; @@ -316,6 +332,8 @@ public interface I_C_ValidCombination */ public int getM_Product_ID(); + public I_M_Product getM_Product() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; @@ -345,6 +363,8 @@ public interface I_C_ValidCombination */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -358,6 +378,8 @@ public interface I_C_ValidCombination */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name UserElement1_ID */ public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; diff --git a/base/src/org/compiere/model/I_C_Withholding.java b/base/src/org/compiere/model/I_C_Withholding.java index 29bd25a7ed..211863ca81 100644 --- a/base/src/org/compiere/model/I_C_Withholding.java +++ b/base/src/org/compiere/model/I_C_Withholding.java @@ -75,6 +75,8 @@ public interface I_C_Withholding */ public int getBeneficiary(); + public I_C_BPartner getBenefici() throws RuntimeException; + /** Column name C_PaymentTerm_ID */ public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; diff --git a/base/src/org/compiere/model/I_C_Withholding_Acct.java b/base/src/org/compiere/model/I_C_Withholding_Acct.java index 5ca1d5e2a4..71bcd5668b 100644 --- a/base/src/org/compiere/model/I_C_Withholding_Acct.java +++ b/base/src/org/compiere/model/I_C_Withholding_Acct.java @@ -149,4 +149,6 @@ public interface I_C_Withholding_Acct * Account for Withholdings */ public int getWithholding_Acct(); + + public I_C_ValidCombination getWithholding_A() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_EXP_FormatLine.java b/base/src/org/compiere/model/I_EXP_FormatLine.java index 6434645160..9802ad8a1b 100644 --- a/base/src/org/compiere/model/I_EXP_FormatLine.java +++ b/base/src/org/compiere/model/I_EXP_FormatLine.java @@ -90,6 +90,8 @@ public interface I_EXP_FormatLine */ public int getAD_Reference_ID(); + public I_AD_Reference getAD_Reference() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -141,6 +143,8 @@ public interface I_EXP_FormatLine /** Get Embedded Format */ public int getEXP_EmbeddedFormat_ID(); + public org.compiere.model.I_EXP_Format getEXP_EmbeddedFormat() throws RuntimeException; + /** Column name EXP_Format_ID */ public static final String COLUMNNAME_EXP_Format_ID = "EXP_Format_ID"; diff --git a/base/src/org/compiere/model/I_Fact_Acct.java b/base/src/org/compiere/model/I_Fact_Acct.java index f42904a737..b4abb2d5cf 100644 --- a/base/src/org/compiere/model/I_Fact_Acct.java +++ b/base/src/org/compiere/model/I_Fact_Acct.java @@ -256,6 +256,8 @@ public interface I_Fact_Acct */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -269,6 +271,8 @@ public interface I_Fact_Acct */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Period_ID */ public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; @@ -607,6 +611,8 @@ public interface I_Fact_Acct */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -620,6 +626,8 @@ public interface I_Fact_Acct */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name UserElement1_ID */ public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; diff --git a/base/src/org/compiere/model/I_Fact_Acct_Summary.java b/base/src/org/compiere/model/I_Fact_Acct_Summary.java index 09ffe08dc2..eca945b779 100644 --- a/base/src/org/compiere/model/I_Fact_Acct_Summary.java +++ b/base/src/org/compiere/model/I_Fact_Acct_Summary.java @@ -54,6 +54,8 @@ public interface I_Fact_Acct_Summary */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -88,6 +90,8 @@ public interface I_Fact_Acct_Summary */ public int getAD_OrgTrx_ID(); + public I_AD_Org getAD_OrgTrx() throws RuntimeException; + /** Column name AmtAcctCr */ public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; @@ -187,6 +191,8 @@ public interface I_Fact_Acct_Summary */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -200,6 +206,8 @@ public interface I_Fact_Acct_Summary */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Period_ID */ public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; @@ -432,6 +440,8 @@ public interface I_Fact_Acct_Summary */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -445,6 +455,8 @@ public interface I_Fact_Acct_Summary */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name UserElement1_ID */ public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; diff --git a/base/src/org/compiere/model/I_GL_Distribution.java b/base/src/org/compiere/model/I_GL_Distribution.java index 9a8e13b7f5..eac3cdc039 100644 --- a/base/src/org/compiere/model/I_GL_Distribution.java +++ b/base/src/org/compiere/model/I_GL_Distribution.java @@ -54,6 +54,8 @@ public interface I_GL_Distribution */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -345,6 +347,8 @@ public interface I_GL_Distribution */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -358,6 +362,8 @@ public interface I_GL_Distribution */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; @@ -587,6 +593,8 @@ public interface I_GL_Distribution */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -599,4 +607,6 @@ public interface I_GL_Distribution * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_GL_DistributionLine.java b/base/src/org/compiere/model/I_GL_DistributionLine.java index e62a02b8d1..d921380f3f 100644 --- a/base/src/org/compiere/model/I_GL_DistributionLine.java +++ b/base/src/org/compiere/model/I_GL_DistributionLine.java @@ -146,6 +146,8 @@ public interface I_GL_DistributionLine */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -159,6 +161,8 @@ public interface I_GL_DistributionLine */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; @@ -511,6 +515,8 @@ public interface I_GL_DistributionLine */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -523,4 +529,6 @@ public interface I_GL_DistributionLine * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_GL_Journal.java b/base/src/org/compiere/model/I_GL_Journal.java index 4f958ad32d..8edc3f79d1 100644 --- a/base/src/org/compiere/model/I_GL_Journal.java +++ b/base/src/org/compiere/model/I_GL_Journal.java @@ -135,6 +135,8 @@ public interface I_GL_Journal */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name ControlAmt */ public static final String COLUMNNAME_ControlAmt = "ControlAmt"; @@ -413,6 +415,8 @@ public interface I_GL_Journal */ public int getReversal_ID(); + public I_GL_Journal getReversal() throws RuntimeException; + /** Column name TotalCr */ public static final String COLUMNNAME_TotalCr = "TotalCr"; diff --git a/base/src/org/compiere/model/I_GL_JournalBatch.java b/base/src/org/compiere/model/I_GL_JournalBatch.java index 43eaeaac7a..efc9c57c14 100644 --- a/base/src/org/compiere/model/I_GL_JournalBatch.java +++ b/base/src/org/compiere/model/I_GL_JournalBatch.java @@ -105,6 +105,8 @@ public interface I_GL_JournalBatch */ public int getC_Period_ID(); + public I_C_Period getC_Period() throws RuntimeException; + /** Column name ControlAmt */ public static final String COLUMNNAME_ControlAmt = "ControlAmt"; @@ -327,6 +329,8 @@ public interface I_GL_JournalBatch */ public int getReversal_ID(); + public I_GL_JournalBatch getReversal() throws RuntimeException; + /** Column name TotalCr */ public static final String COLUMNNAME_TotalCr = "TotalCr"; diff --git a/base/src/org/compiere/model/I_GL_JournalLine.java b/base/src/org/compiere/model/I_GL_JournalLine.java index d265f6244c..61ca25dfbe 100644 --- a/base/src/org/compiere/model/I_GL_JournalLine.java +++ b/base/src/org/compiere/model/I_GL_JournalLine.java @@ -69,6 +69,8 @@ public interface I_GL_JournalLine */ public int getA_Asset_ID(); + public I_A_Asset getA_Asset() throws RuntimeException; + /** Column name A_CreateAsset */ public static final String COLUMNNAME_A_CreateAsset = "A_CreateAsset"; @@ -218,6 +220,8 @@ public interface I_GL_JournalLine */ public int getC_ValidCombination_ID(); + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_I_Asset.java b/base/src/org/compiere/model/I_I_Asset.java index d584fd4a93..49cdcc86ee 100644 --- a/base/src/org/compiere/model/I_I_Asset.java +++ b/base/src/org/compiere/model/I_I_Asset.java @@ -50,6 +50,8 @@ public interface I_I_Asset /** Get Accumulated Depreciation */ public int getA_Accumdepreciation_Acct(); + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException; + /** Column name A_Accumulated_Depr */ public static final String COLUMNNAME_A_Accumulated_Depr = "A_Accumulated_Depr"; @@ -68,6 +70,8 @@ public interface I_I_Asset /** Get Asset Cost Account */ public int getA_Asset_Acct(); + public I_C_ValidCombination getA_Asset_A() throws RuntimeException; + /** Column name A_Asset_Cost */ public static final String COLUMNNAME_A_Asset_Cost = "A_Asset_Cost"; @@ -132,6 +136,8 @@ public interface I_I_Asset /** Get A_Asset_Spread_Type */ public int getA_Asset_Spread_Type(); + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException; + /** Column name A_Base_Amount */ public static final String COLUMNNAME_A_Base_Amount = "A_Base_Amount"; @@ -177,6 +183,8 @@ public interface I_I_Asset /** Get Depreciation Expense Account */ public int getA_Depreciation_Acct(); + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException; + /** Column name A_Depreciation_Calc_Type */ public static final String COLUMNNAME_A_Depreciation_Calc_Type = "A_Depreciation_Calc_Type"; @@ -186,6 +194,8 @@ public interface I_I_Asset /** Get Depreciation Calculation Type */ public int getA_Depreciation_Calc_Type(); + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException; + /** Column name A_Depreciation_Manual_Amount */ public static final String COLUMNNAME_A_Depreciation_Manual_Amount = "A_Depreciation_Manual_Amount"; @@ -213,6 +223,8 @@ public interface I_I_Asset /** Get A_Depreciation_Table_Header_ID */ public int getA_Depreciation_Table_Header_ID(); + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException; + /** Column name A_Depreciation_Variable_Perc */ public static final String COLUMNNAME_A_Depreciation_Variable_Perc = "A_Depreciation_Variable_Perc"; @@ -231,6 +243,8 @@ public interface I_I_Asset /** Get Loss on Disposal */ public int getA_Disposal_Loss(); + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException; + /** Column name A_Disposal_Revenue */ public static final String COLUMNNAME_A_Disposal_Revenue = "A_Disposal_Revenue"; @@ -240,6 +254,8 @@ public interface I_I_Asset /** Get Disposal Revenue */ public int getA_Disposal_Revenue(); + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException; + /** Column name A_Life_Period */ public static final String COLUMNNAME_A_Life_Period = "A_Life_Period"; @@ -321,6 +337,8 @@ public interface I_I_Asset /** Get Revaluation Accumulated Depreciation Offset for Current Year */ public int getA_Reval_Accumdep_Offset_Cur(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException; + /** Column name A_Reval_Accumdep_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Accumdep_Offset_Prior = "A_Reval_Accumdep_Offset_Prior"; @@ -330,6 +348,8 @@ public interface I_I_Asset /** Get Revaluation Accumulated Depreciation Offset for Prior Year */ public int getA_Reval_Accumdep_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Cal_Method */ public static final String COLUMNNAME_A_Reval_Cal_Method = "A_Reval_Cal_Method"; @@ -348,6 +368,8 @@ public interface I_I_Asset /** Get Revaluation Cost Offset for Current Year */ public int getA_Reval_Cost_Offset(); + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException; + /** Column name A_Reval_Cost_Offset_Prior */ public static final String COLUMNNAME_A_Reval_Cost_Offset_Prior = "A_Reval_Cost_Offset_Prior"; @@ -357,6 +379,8 @@ public interface I_I_Asset /** Get Revaluation Cost Offset for Prior Year */ public int getA_Reval_Cost_Offset_Prior(); + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException; + /** Column name A_Reval_Depexp_Offset */ public static final String COLUMNNAME_A_Reval_Depexp_Offset = "A_Reval_Depexp_Offset"; @@ -366,6 +390,8 @@ public interface I_I_Asset /** Get Revaluation Expense Offs */ public int getA_Reval_Depexp_Offset(); + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException; + /** Column name A_Salvage_Value */ public static final String COLUMNNAME_A_Salvage_Value = "A_Salvage_Value"; @@ -539,6 +565,8 @@ public interface I_I_Asset /** Get ConventionType */ public int getConventionType(); + public I_A_Depreciation_Convention getConventionT() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -564,6 +592,8 @@ public interface I_I_Asset /** Get DepreciationType */ public int getDepreciationType(); + public I_A_Depreciation getDepreciationT() throws RuntimeException; + /** Column name Description */ public static final String COLUMNNAME_Description = "Description"; @@ -768,6 +798,8 @@ public interface I_I_Asset */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Locator_ID */ public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; diff --git a/base/src/org/compiere/model/I_I_Conversion_Rate.java b/base/src/org/compiere/model/I_I_Conversion_Rate.java index e9250306dc..8e3927fba2 100644 --- a/base/src/org/compiere/model/I_I_Conversion_Rate.java +++ b/base/src/org/compiere/model/I_I_Conversion_Rate.java @@ -120,6 +120,8 @@ public interface I_I_Conversion_Rate */ public int getC_Currency_ID_To(); + public I_C_Currency getC_Currency_To() throws RuntimeException; + /** Column name ConversionTypeValue */ public static final String COLUMNNAME_ConversionTypeValue = "ConversionTypeValue"; diff --git a/base/src/org/compiere/model/I_I_ElementValue.java b/base/src/org/compiere/model/I_I_ElementValue.java index 80800f2366..afe2d38015 100644 --- a/base/src/org/compiere/model/I_I_ElementValue.java +++ b/base/src/org/compiere/model/I_I_ElementValue.java @@ -88,6 +88,8 @@ public interface I_I_ElementValue */ public int getAD_Column_ID(); + public I_AD_Column getAD_Column() throws RuntimeException; + /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -290,6 +292,8 @@ public interface I_I_ElementValue */ public int getParentElementValue_ID(); + public I_C_ElementValue getParentElementValue() throws RuntimeException; + /** Column name ParentValue */ public static final String COLUMNNAME_ParentValue = "ParentValue"; diff --git a/base/src/org/compiere/model/I_I_FAJournal.java b/base/src/org/compiere/model/I_I_FAJournal.java index 1b13e9f2ed..1dd115b08a 100644 --- a/base/src/org/compiere/model/I_I_FAJournal.java +++ b/base/src/org/compiere/model/I_I_FAJournal.java @@ -76,6 +76,8 @@ public interface I_I_FAJournal */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AccountValue */ public static final String COLUMNNAME_AccountValue = "AccountValue"; @@ -918,6 +920,8 @@ public interface I_I_FAJournal */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -931,6 +935,8 @@ public interface I_I_FAJournal */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name UserElement1_ID */ public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; diff --git a/base/src/org/compiere/model/I_I_GLJournal.java b/base/src/org/compiere/model/I_I_GLJournal.java index b3b185bdc0..17fb4bbe7f 100644 --- a/base/src/org/compiere/model/I_I_GLJournal.java +++ b/base/src/org/compiere/model/I_I_GLJournal.java @@ -54,6 +54,8 @@ public interface I_I_GLJournal */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AccountValue */ public static final String COLUMNNAME_AccountValue = "AccountValue"; @@ -336,6 +338,8 @@ public interface I_I_GLJournal */ public int getC_LocFrom_ID(); + public I_C_Location getC_LocFrom() throws RuntimeException; + /** Column name C_LocTo_ID */ public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; @@ -349,6 +353,8 @@ public interface I_I_GLJournal */ public int getC_LocTo_ID(); + public I_C_Location getC_LocTo() throws RuntimeException; + /** Column name C_Period_ID */ public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; @@ -893,6 +899,8 @@ public interface I_I_GLJournal */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -905,4 +913,6 @@ public interface I_I_GLJournal * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_I_Invoice.java b/base/src/org/compiere/model/I_I_Invoice.java index 032a2fcda1..6b982459b9 100644 --- a/base/src/org/compiere/model/I_I_Invoice.java +++ b/base/src/org/compiere/model/I_I_Invoice.java @@ -769,6 +769,8 @@ public interface I_I_Invoice */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SKU */ public static final String COLUMNNAME_SKU = "SKU"; diff --git a/base/src/org/compiere/model/I_I_Order.java b/base/src/org/compiere/model/I_I_Order.java index 1e87e5d8ed..6e08a020d4 100644 --- a/base/src/org/compiere/model/I_I_Order.java +++ b/base/src/org/compiere/model/I_I_Order.java @@ -129,6 +129,8 @@ public interface I_I_Order */ public int getBillTo_ID(); + public I_C_BPartner_Location getBillTo() throws RuntimeException; + /** Column name BPartnerValue */ public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; @@ -818,6 +820,8 @@ public interface I_I_Order */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SKU */ public static final String COLUMNNAME_SKU = "SKU"; diff --git a/base/src/org/compiere/model/I_M_AttributeInstance.java b/base/src/org/compiere/model/I_M_AttributeInstance.java index 7d8440ae17..7c2775f66d 100644 --- a/base/src/org/compiere/model/I_M_AttributeInstance.java +++ b/base/src/org/compiere/model/I_M_AttributeInstance.java @@ -119,6 +119,8 @@ public interface I_M_AttributeInstance */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_AttributeValue_ID */ public static final String COLUMNNAME_M_AttributeValue_ID = "M_AttributeValue_ID"; diff --git a/base/src/org/compiere/model/I_M_BOMProduct.java b/base/src/org/compiere/model/I_M_BOMProduct.java index 62b8d8f393..0d7eab946f 100644 --- a/base/src/org/compiere/model/I_M_BOMProduct.java +++ b/base/src/org/compiere/model/I_M_BOMProduct.java @@ -195,6 +195,8 @@ public interface I_M_BOMProduct */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_BOM_ID */ public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; @@ -266,6 +268,8 @@ public interface I_M_BOMProduct */ public int getM_ProductBOM_ID(); + public I_M_Product getM_ProductBOM() throws RuntimeException; + /** Column name M_ProductOperation_ID */ public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; diff --git a/base/src/org/compiere/model/I_M_ChangeRequest.java b/base/src/org/compiere/model/I_M_ChangeRequest.java index 122faaaed4..482a6f39a4 100644 --- a/base/src/org/compiere/model/I_M_ChangeRequest.java +++ b/base/src/org/compiere/model/I_M_ChangeRequest.java @@ -197,6 +197,8 @@ public interface I_M_ChangeRequest */ public int getM_FixChangeNotice_ID(); + public I_M_ChangeNotice getM_FixChangeNotice() throws RuntimeException; + /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; diff --git a/base/src/org/compiere/model/I_M_Cost.java b/base/src/org/compiere/model/I_M_Cost.java index 42d5f1c206..746d44b22b 100644 --- a/base/src/org/compiere/model/I_M_Cost.java +++ b/base/src/org/compiere/model/I_M_Cost.java @@ -241,6 +241,8 @@ public interface I_M_Cost */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_CostElement_ID */ public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; diff --git a/base/src/org/compiere/model/I_M_CostDetail.java b/base/src/org/compiere/model/I_M_CostDetail.java index c5423017bd..93f3a622e1 100644 --- a/base/src/org/compiere/model/I_M_CostDetail.java +++ b/base/src/org/compiere/model/I_M_CostDetail.java @@ -229,6 +229,8 @@ public interface I_M_CostDetail */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_CostDetail_ID */ public static final String COLUMNNAME_M_CostDetail_ID = "M_CostDetail_ID"; diff --git a/base/src/org/compiere/model/I_M_CostQueue.java b/base/src/org/compiere/model/I_M_CostQueue.java index 5a4fe9fe38..c99d0f77a6 100644 --- a/base/src/org/compiere/model/I_M_CostQueue.java +++ b/base/src/org/compiere/model/I_M_CostQueue.java @@ -145,6 +145,8 @@ public interface I_M_CostQueue */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_CostElement_ID */ public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; diff --git a/base/src/org/compiere/model/I_M_Freight.java b/base/src/org/compiere/model/I_M_Freight.java index 3b182bc5fa..2a88a03a75 100644 --- a/base/src/org/compiere/model/I_M_Freight.java +++ b/base/src/org/compiere/model/I_M_Freight.java @@ -218,6 +218,8 @@ public interface I_M_Freight */ public int getTo_Region_ID(); + public I_C_Region getTo_Region() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_InOut.java b/base/src/org/compiere/model/I_M_InOut.java index 104bb323de..3424ba6129 100644 --- a/base/src/org/compiere/model/I_M_InOut.java +++ b/base/src/org/compiere/model/I_M_InOut.java @@ -163,6 +163,8 @@ public interface I_M_InOut */ public int getC_Charge_ID(); + public I_C_Charge getC_Charge() throws RuntimeException; + /** Column name C_DocType_ID */ public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; @@ -176,6 +178,8 @@ public interface I_M_InOut */ public int getC_DocType_ID(); + public I_C_DocType getC_DocType() throws RuntimeException; + /** Column name C_Invoice_ID */ public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; @@ -424,6 +428,8 @@ public interface I_M_InOut */ public int getDropShip_BPartner_ID(); + public I_C_BPartner getDropShip_BPartner() throws RuntimeException; + /** Column name DropShip_Location_ID */ public static final String COLUMNNAME_DropShip_Location_ID = "DropShip_Location_ID"; @@ -437,6 +443,8 @@ public interface I_M_InOut */ public int getDropShip_Location_ID(); + public I_C_BPartner_Location getDropShip_Location() throws RuntimeException; + /** Column name DropShip_User_ID */ public static final String COLUMNNAME_DropShip_User_ID = "DropShip_User_ID"; @@ -450,6 +458,8 @@ public interface I_M_InOut */ public int getDropShip_User_ID(); + public I_AD_User getDropShip_User() throws RuntimeException; + /** Column name FreightAmt */ public static final String COLUMNNAME_FreightAmt = "FreightAmt"; @@ -773,6 +783,8 @@ public interface I_M_InOut */ public int getReversal_ID(); + public I_M_InOut getReversal() throws RuntimeException; + /** Column name SalesRep_ID */ public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; @@ -786,6 +798,8 @@ public interface I_M_InOut */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SendEMail */ public static final String COLUMNNAME_SendEMail = "SendEMail"; @@ -854,6 +868,8 @@ public interface I_M_InOut */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -867,6 +883,8 @@ public interface I_M_InOut */ public int getUser2_ID(); + public I_C_ElementValue getUser2() throws RuntimeException; + /** Column name Volume */ public static final String COLUMNNAME_Volume = "Volume"; diff --git a/base/src/org/compiere/model/I_M_InOutLine.java b/base/src/org/compiere/model/I_M_InOutLine.java index a28519016f..095d78af91 100644 --- a/base/src/org/compiere/model/I_M_InOutLine.java +++ b/base/src/org/compiere/model/I_M_InOutLine.java @@ -302,6 +302,8 @@ public interface I_M_InOutLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOut_ID */ public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; @@ -343,6 +345,8 @@ public interface I_M_InOutLine */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; @@ -443,6 +447,8 @@ public interface I_M_InOutLine */ public int getReversalLine_ID(); + public I_M_InOutLine getReversalLine() throws RuntimeException; + /** Column name ScrappedQty */ public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; @@ -498,6 +504,8 @@ public interface I_M_InOutLine */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -510,4 +518,6 @@ public interface I_M_InOutLine * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_M_InOutLineMA.java b/base/src/org/compiere/model/I_M_InOutLineMA.java index fd129cf1b6..0c1779eb70 100644 --- a/base/src/org/compiere/model/I_M_InOutLineMA.java +++ b/base/src/org/compiere/model/I_M_InOutLineMA.java @@ -104,6 +104,8 @@ public interface I_M_InOutLineMA */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; diff --git a/base/src/org/compiere/model/I_M_Inventory.java b/base/src/org/compiere/model/I_M_Inventory.java index 9a3feefb38..3780407601 100644 --- a/base/src/org/compiere/model/I_M_Inventory.java +++ b/base/src/org/compiere/model/I_M_Inventory.java @@ -359,6 +359,8 @@ public interface I_M_Inventory */ public int getReversal_ID(); + public I_M_Inventory getReversal() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; @@ -397,6 +399,8 @@ public interface I_M_Inventory */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -409,4 +413,6 @@ public interface I_M_Inventory * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_M_InventoryLine.java b/base/src/org/compiere/model/I_M_InventoryLine.java index 3f131aa400..5d524f71f6 100644 --- a/base/src/org/compiere/model/I_M_InventoryLine.java +++ b/base/src/org/compiere/model/I_M_InventoryLine.java @@ -158,6 +158,8 @@ public interface I_M_InventoryLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Inventory_ID */ public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; @@ -199,6 +201,8 @@ public interface I_M_InventoryLine */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; @@ -212,6 +216,8 @@ public interface I_M_InventoryLine */ public int getM_Product_ID(); + public I_M_Product getM_Product() throws RuntimeException; + /** Column name Processed */ public static final String COLUMNNAME_Processed = "Processed"; @@ -286,6 +292,8 @@ public interface I_M_InventoryLine */ public int getReversalLine_ID(); + public I_M_InventoryLine getReversalLine() throws RuntimeException; + /** Column name UPC */ public static final String COLUMNNAME_UPC = "UPC"; diff --git a/base/src/org/compiere/model/I_M_InventoryLineMA.java b/base/src/org/compiere/model/I_M_InventoryLineMA.java index 94db265d47..f395bb2a01 100644 --- a/base/src/org/compiere/model/I_M_InventoryLineMA.java +++ b/base/src/org/compiere/model/I_M_InventoryLineMA.java @@ -104,6 +104,8 @@ public interface I_M_InventoryLineMA */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InventoryLine_ID */ public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; diff --git a/base/src/org/compiere/model/I_M_MatchInv.java b/base/src/org/compiere/model/I_M_MatchInv.java index 071bc555c1..eb9ea2d66c 100644 --- a/base/src/org/compiere/model/I_M_MatchInv.java +++ b/base/src/org/compiere/model/I_M_MatchInv.java @@ -171,6 +171,8 @@ public interface I_M_MatchInv */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; diff --git a/base/src/org/compiere/model/I_M_MatchPO.java b/base/src/org/compiere/model/I_M_MatchPO.java index 817f442476..a1e3ffbd7f 100644 --- a/base/src/org/compiere/model/I_M_MatchPO.java +++ b/base/src/org/compiere/model/I_M_MatchPO.java @@ -199,6 +199,8 @@ public interface I_M_MatchPO */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; diff --git a/base/src/org/compiere/model/I_M_Movement.java b/base/src/org/compiere/model/I_M_Movement.java index a6ee81aac6..c27888c67c 100644 --- a/base/src/org/compiere/model/I_M_Movement.java +++ b/base/src/org/compiere/model/I_M_Movement.java @@ -88,6 +88,8 @@ public interface I_M_Movement */ public int getAD_User_ID(); + public I_AD_User getAD_User() throws RuntimeException; + /** Column name ApprovalAmt */ public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; @@ -144,6 +146,8 @@ public interface I_M_Movement */ public int getC_BPartner_Location_ID(); + public I_C_Location getC_BPartner_Location() throws RuntimeException; + /** Column name C_Campaign_ID */ public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; @@ -528,6 +532,8 @@ public interface I_M_Movement */ public int getReversal_ID(); + public I_M_Movement getReversal() throws RuntimeException; + /** Column name SalesRep_ID */ public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; @@ -541,6 +547,8 @@ public interface I_M_Movement */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; @@ -570,6 +578,8 @@ public interface I_M_Movement */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -582,4 +592,6 @@ public interface I_M_Movement * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_M_MovementLine.java b/base/src/org/compiere/model/I_M_MovementLine.java index dd1750121c..0034899e14 100644 --- a/base/src/org/compiere/model/I_M_MovementLine.java +++ b/base/src/org/compiere/model/I_M_MovementLine.java @@ -154,6 +154,8 @@ public interface I_M_MovementLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_AttributeSetInstanceTo_ID */ public static final String COLUMNNAME_M_AttributeSetInstanceTo_ID = "M_AttributeSetInstanceTo_ID"; @@ -167,6 +169,8 @@ public interface I_M_MovementLine */ public int getM_AttributeSetInstanceTo_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstanceTo() throws RuntimeException; + /** Column name M_Locator_ID */ public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; @@ -180,6 +184,8 @@ public interface I_M_MovementLine */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_LocatorTo_ID */ public static final String COLUMNNAME_M_LocatorTo_ID = "M_LocatorTo_ID"; @@ -193,6 +199,8 @@ public interface I_M_MovementLine */ public int getM_LocatorTo_ID(); + public I_M_Locator getM_LocatorTo() throws RuntimeException; + /** Column name M_Movement_ID */ public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; @@ -234,6 +242,8 @@ public interface I_M_MovementLine */ public int getM_Product_ID(); + public I_M_Product getM_Product() throws RuntimeException; + /** Column name MovementQty */ public static final String COLUMNNAME_MovementQty = "MovementQty"; @@ -273,6 +283,8 @@ public interface I_M_MovementLine */ public int getReversalLine_ID(); + public I_M_MovementLine getReversalLine() throws RuntimeException; + /** Column name ScrappedQty */ public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; diff --git a/base/src/org/compiere/model/I_M_MovementLineMA.java b/base/src/org/compiere/model/I_M_MovementLineMA.java index 83d8d7a753..6beb386514 100644 --- a/base/src/org/compiere/model/I_M_MovementLineMA.java +++ b/base/src/org/compiere/model/I_M_MovementLineMA.java @@ -104,6 +104,8 @@ public interface I_M_MovementLineMA */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_MovementLine_ID */ public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; diff --git a/base/src/org/compiere/model/I_M_PriceList.java b/base/src/org/compiere/model/I_M_PriceList.java index 3f6206d65a..75978e843f 100644 --- a/base/src/org/compiere/model/I_M_PriceList.java +++ b/base/src/org/compiere/model/I_M_PriceList.java @@ -75,6 +75,8 @@ public interface I_M_PriceList */ public int getBasePriceList_ID(); + public I_M_PriceList getBasePriceList() throws RuntimeException; + /** Column name C_Currency_ID */ public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; diff --git a/base/src/org/compiere/model/I_M_PriceList_Version.java b/base/src/org/compiere/model/I_M_PriceList_Version.java index bec41359f5..d199031a0b 100644 --- a/base/src/org/compiere/model/I_M_PriceList_Version.java +++ b/base/src/org/compiere/model/I_M_PriceList_Version.java @@ -147,6 +147,8 @@ public interface I_M_PriceList_Version */ public int getM_Pricelist_Version_Base_ID(); + public I_M_PriceList_Version getM_Pricelist_Version_Base() throws RuntimeException; + /** Column name M_PriceList_Version_ID */ public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; diff --git a/base/src/org/compiere/model/I_M_Product.java b/base/src/org/compiere/model/I_M_Product.java index 489181876e..7934a13293 100644 --- a/base/src/org/compiere/model/I_M_Product.java +++ b/base/src/org/compiere/model/I_M_Product.java @@ -490,6 +490,8 @@ public interface I_M_Product */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_FreightCategory_ID */ public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; @@ -518,6 +520,8 @@ public interface I_M_Product */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_Category_ID */ public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; @@ -639,6 +643,8 @@ public interface I_M_Product */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name ShelfDepth */ public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; diff --git a/base/src/org/compiere/model/I_M_ProductPriceVendorBreak.java b/base/src/org/compiere/model/I_M_ProductPriceVendorBreak.java index c680f7ab00..cbba24ec69 100644 --- a/base/src/org/compiere/model/I_M_ProductPriceVendorBreak.java +++ b/base/src/org/compiere/model/I_M_ProductPriceVendorBreak.java @@ -88,6 +88,8 @@ public interface I_M_ProductPriceVendorBreak */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_M_Product_Acct.java b/base/src/org/compiere/model/I_M_Product_Acct.java index 6f04808779..158226ce85 100644 --- a/base/src/org/compiere/model/I_M_Product_Acct.java +++ b/base/src/org/compiere/model/I_M_Product_Acct.java @@ -134,6 +134,8 @@ public interface I_M_Product_Acct */ public int getP_Asset_Acct(); + public I_C_ValidCombination getP_Asset_A() throws RuntimeException; + /** Column name P_Burden_Acct */ public static final String COLUMNNAME_P_Burden_Acct = "P_Burden_Acct"; @@ -147,6 +149,8 @@ public interface I_M_Product_Acct */ public int getP_Burden_Acct(); + public I_C_ValidCombination getP_Burden_A() throws RuntimeException; + /** Column name P_COGS_Acct */ public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; @@ -160,6 +164,8 @@ public interface I_M_Product_Acct */ public int getP_COGS_Acct(); + public I_C_ValidCombination getP_COGS_A() throws RuntimeException; + /** Column name P_CostAdjustment_Acct */ public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; @@ -173,6 +179,8 @@ public interface I_M_Product_Acct */ public int getP_CostAdjustment_Acct(); + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException; + /** Column name P_CostOfProduction_Acct */ public static final String COLUMNNAME_P_CostOfProduction_Acct = "P_CostOfProduction_Acct"; @@ -186,6 +194,8 @@ public interface I_M_Product_Acct */ public int getP_CostOfProduction_Acct(); + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException; + /** Column name P_Expense_Acct */ public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; @@ -199,6 +209,8 @@ public interface I_M_Product_Acct */ public int getP_Expense_Acct(); + public I_C_ValidCombination getP_Expense_A() throws RuntimeException; + /** Column name P_FloorStock_Acct */ public static final String COLUMNNAME_P_FloorStock_Acct = "P_FloorStock_Acct"; @@ -212,6 +224,8 @@ public interface I_M_Product_Acct */ public int getP_FloorStock_Acct(); + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException; + /** Column name P_InventoryClearing_Acct */ public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; @@ -225,6 +239,8 @@ public interface I_M_Product_Acct */ public int getP_InventoryClearing_Acct(); + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException; + /** Column name P_InvoicePriceVariance_Acct */ public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; @@ -238,6 +254,8 @@ public interface I_M_Product_Acct */ public int getP_InvoicePriceVariance_Acct(); + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException; + /** Column name P_Labor_Acct */ public static final String COLUMNNAME_P_Labor_Acct = "P_Labor_Acct"; @@ -251,6 +269,8 @@ public interface I_M_Product_Acct */ public int getP_Labor_Acct(); + public I_C_ValidCombination getP_Labor_A() throws RuntimeException; + /** Column name P_MethodChangeVariance_Acct */ public static final String COLUMNNAME_P_MethodChangeVariance_Acct = "P_MethodChangeVariance_Acct"; @@ -264,6 +284,8 @@ public interface I_M_Product_Acct */ public int getP_MethodChangeVariance_Acct(); + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException; + /** Column name P_MixVariance_Acct */ public static final String COLUMNNAME_P_MixVariance_Acct = "P_MixVariance_Acct"; @@ -277,6 +299,8 @@ public interface I_M_Product_Acct */ public int getP_MixVariance_Acct(); + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException; + /** Column name P_OutsideProcessing_Acct */ public static final String COLUMNNAME_P_OutsideProcessing_Acct = "P_OutsideProcessing_Acct"; @@ -290,6 +314,8 @@ public interface I_M_Product_Acct */ public int getP_OutsideProcessing_Acct(); + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException; + /** Column name P_Overhead_Acct */ public static final String COLUMNNAME_P_Overhead_Acct = "P_Overhead_Acct"; @@ -303,6 +329,8 @@ public interface I_M_Product_Acct */ public int getP_Overhead_Acct(); + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException; + /** Column name P_PurchasePriceVariance_Acct */ public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; @@ -316,6 +344,8 @@ public interface I_M_Product_Acct */ public int getP_PurchasePriceVariance_Acct(); + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException; + /** Column name P_RateVariance_Acct */ public static final String COLUMNNAME_P_RateVariance_Acct = "P_RateVariance_Acct"; @@ -329,6 +359,8 @@ public interface I_M_Product_Acct */ public int getP_RateVariance_Acct(); + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException; + /** Column name P_Revenue_Acct */ public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; @@ -342,6 +374,8 @@ public interface I_M_Product_Acct */ public int getP_Revenue_Acct(); + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException; + /** Column name P_Scrap_Acct */ public static final String COLUMNNAME_P_Scrap_Acct = "P_Scrap_Acct"; @@ -355,6 +389,8 @@ public interface I_M_Product_Acct */ public int getP_Scrap_Acct(); + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException; + /** Column name P_TradeDiscountGrant_Acct */ public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; @@ -368,6 +404,8 @@ public interface I_M_Product_Acct */ public int getP_TradeDiscountGrant_Acct(); + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException; + /** Column name P_TradeDiscountRec_Acct */ public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; @@ -381,6 +419,8 @@ public interface I_M_Product_Acct */ public int getP_TradeDiscountRec_Acct(); + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException; + /** Column name P_UsageVariance_Acct */ public static final String COLUMNNAME_P_UsageVariance_Acct = "P_UsageVariance_Acct"; @@ -394,6 +434,8 @@ public interface I_M_Product_Acct */ public int getP_UsageVariance_Acct(); + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException; + /** Column name P_WIP_Acct */ public static final String COLUMNNAME_P_WIP_Acct = "P_WIP_Acct"; @@ -407,6 +449,8 @@ public interface I_M_Product_Acct */ public int getP_WIP_Acct(); + public I_C_ValidCombination getP_WIP_A() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_Product_BOM.java b/base/src/org/compiere/model/I_M_Product_BOM.java index 5099ceac3a..37d62ff4aa 100644 --- a/base/src/org/compiere/model/I_M_Product_BOM.java +++ b/base/src/org/compiere/model/I_M_Product_BOM.java @@ -180,6 +180,8 @@ public interface I_M_Product_BOM */ public int getM_ProductBOM_ID(); + public I_M_Product getM_ProductBOM() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_Product_Category.java b/base/src/org/compiere/model/I_M_Product_Category.java index df3f5b9eb9..8ada4348d7 100644 --- a/base/src/org/compiere/model/I_M_Product_Category.java +++ b/base/src/org/compiere/model/I_M_Product_Category.java @@ -182,6 +182,8 @@ public interface I_M_Product_Category /** Get Parent Product Category */ public int getM_Product_Category_Parent_ID(); + public I_M_Product_Category getM_Product_Category_Parent() throws RuntimeException; + /** Column name MMPolicy */ public static final String COLUMNNAME_MMPolicy = "MMPolicy"; diff --git a/base/src/org/compiere/model/I_M_Product_Category_Acct.java b/base/src/org/compiere/model/I_M_Product_Category_Acct.java index 4700cefc37..3bb9745bf2 100644 --- a/base/src/org/compiere/model/I_M_Product_Category_Acct.java +++ b/base/src/org/compiere/model/I_M_Product_Category_Acct.java @@ -160,6 +160,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Asset_Acct(); + public I_C_ValidCombination getP_Asset_A() throws RuntimeException; + /** Column name P_Burden_Acct */ public static final String COLUMNNAME_P_Burden_Acct = "P_Burden_Acct"; @@ -173,6 +175,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Burden_Acct(); + public I_C_ValidCombination getP_Burden_A() throws RuntimeException; + /** Column name P_COGS_Acct */ public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; @@ -186,6 +190,8 @@ public interface I_M_Product_Category_Acct */ public int getP_COGS_Acct(); + public I_C_ValidCombination getP_COGS_A() throws RuntimeException; + /** Column name P_CostAdjustment_Acct */ public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; @@ -199,6 +205,8 @@ public interface I_M_Product_Category_Acct */ public int getP_CostAdjustment_Acct(); + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException; + /** Column name P_CostOfProduction_Acct */ public static final String COLUMNNAME_P_CostOfProduction_Acct = "P_CostOfProduction_Acct"; @@ -212,6 +220,8 @@ public interface I_M_Product_Category_Acct */ public int getP_CostOfProduction_Acct(); + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException; + /** Column name P_Expense_Acct */ public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; @@ -225,6 +235,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Expense_Acct(); + public I_C_ValidCombination getP_Expense_A() throws RuntimeException; + /** Column name P_FloorStock_Acct */ public static final String COLUMNNAME_P_FloorStock_Acct = "P_FloorStock_Acct"; @@ -238,6 +250,8 @@ public interface I_M_Product_Category_Acct */ public int getP_FloorStock_Acct(); + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException; + /** Column name P_InventoryClearing_Acct */ public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; @@ -251,6 +265,8 @@ public interface I_M_Product_Category_Acct */ public int getP_InventoryClearing_Acct(); + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException; + /** Column name P_InvoicePriceVariance_Acct */ public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; @@ -264,6 +280,8 @@ public interface I_M_Product_Category_Acct */ public int getP_InvoicePriceVariance_Acct(); + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException; + /** Column name P_Labor_Acct */ public static final String COLUMNNAME_P_Labor_Acct = "P_Labor_Acct"; @@ -277,6 +295,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Labor_Acct(); + public I_C_ValidCombination getP_Labor_A() throws RuntimeException; + /** Column name P_MethodChangeVariance_Acct */ public static final String COLUMNNAME_P_MethodChangeVariance_Acct = "P_MethodChangeVariance_Acct"; @@ -290,6 +310,8 @@ public interface I_M_Product_Category_Acct */ public int getP_MethodChangeVariance_Acct(); + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException; + /** Column name P_MixVariance_Acct */ public static final String COLUMNNAME_P_MixVariance_Acct = "P_MixVariance_Acct"; @@ -303,6 +325,8 @@ public interface I_M_Product_Category_Acct */ public int getP_MixVariance_Acct(); + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException; + /** Column name P_OutsideProcessing_Acct */ public static final String COLUMNNAME_P_OutsideProcessing_Acct = "P_OutsideProcessing_Acct"; @@ -316,6 +340,8 @@ public interface I_M_Product_Category_Acct */ public int getP_OutsideProcessing_Acct(); + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException; + /** Column name P_Overhead_Acct */ public static final String COLUMNNAME_P_Overhead_Acct = "P_Overhead_Acct"; @@ -329,6 +355,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Overhead_Acct(); + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException; + /** Column name P_PurchasePriceVariance_Acct */ public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; @@ -342,6 +370,8 @@ public interface I_M_Product_Category_Acct */ public int getP_PurchasePriceVariance_Acct(); + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException; + /** Column name P_RateVariance_Acct */ public static final String COLUMNNAME_P_RateVariance_Acct = "P_RateVariance_Acct"; @@ -355,6 +385,8 @@ public interface I_M_Product_Category_Acct */ public int getP_RateVariance_Acct(); + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException; + /** Column name P_Revenue_Acct */ public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; @@ -368,6 +400,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Revenue_Acct(); + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException; + /** Column name P_Scrap_Acct */ public static final String COLUMNNAME_P_Scrap_Acct = "P_Scrap_Acct"; @@ -381,6 +415,8 @@ public interface I_M_Product_Category_Acct */ public int getP_Scrap_Acct(); + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException; + /** Column name P_TradeDiscountGrant_Acct */ public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; @@ -394,6 +430,8 @@ public interface I_M_Product_Category_Acct */ public int getP_TradeDiscountGrant_Acct(); + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException; + /** Column name P_TradeDiscountRec_Acct */ public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; @@ -407,6 +445,8 @@ public interface I_M_Product_Category_Acct */ public int getP_TradeDiscountRec_Acct(); + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException; + /** Column name P_UsageVariance_Acct */ public static final String COLUMNNAME_P_UsageVariance_Acct = "P_UsageVariance_Acct"; @@ -420,6 +460,8 @@ public interface I_M_Product_Category_Acct */ public int getP_UsageVariance_Acct(); + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException; + /** Column name P_WIP_Acct */ public static final String COLUMNNAME_P_WIP_Acct = "P_WIP_Acct"; @@ -433,6 +475,8 @@ public interface I_M_Product_Category_Acct */ public int getP_WIP_Acct(); + public I_C_ValidCombination getP_WIP_A() throws RuntimeException; + /** Column name Processing */ public static final String COLUMNNAME_Processing = "Processing"; diff --git a/base/src/org/compiere/model/I_M_Production.java b/base/src/org/compiere/model/I_M_Production.java index d6920db994..5c109055a9 100644 --- a/base/src/org/compiere/model/I_M_Production.java +++ b/base/src/org/compiere/model/I_M_Production.java @@ -274,6 +274,8 @@ public interface I_M_Production */ public int getUser1_ID(); + public I_C_ElementValue getUser1() throws RuntimeException; + /** Column name User2_ID */ public static final String COLUMNNAME_User2_ID = "User2_ID"; @@ -286,4 +288,6 @@ public interface I_M_Production * User defined list element #2 */ public int getUser2_ID(); + + public I_C_ElementValue getUser2() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_M_ProductionLine.java b/base/src/org/compiere/model/I_M_ProductionLine.java index 395beeeef4..7c3a9772a6 100644 --- a/base/src/org/compiere/model/I_M_ProductionLine.java +++ b/base/src/org/compiere/model/I_M_ProductionLine.java @@ -130,6 +130,8 @@ public interface I_M_ProductionLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Locator_ID */ public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; @@ -143,6 +145,8 @@ public interface I_M_ProductionLine */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_M_ProductionLineMA.java b/base/src/org/compiere/model/I_M_ProductionLineMA.java index d283308035..a1e73c8332 100644 --- a/base/src/org/compiere/model/I_M_ProductionLineMA.java +++ b/base/src/org/compiere/model/I_M_ProductionLineMA.java @@ -104,6 +104,8 @@ public interface I_M_ProductionLineMA */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_ProductionLine_ID */ public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; diff --git a/base/src/org/compiere/model/I_M_ProductionPlan.java b/base/src/org/compiere/model/I_M_ProductionPlan.java index aeee81c98c..f883cf5d55 100644 --- a/base/src/org/compiere/model/I_M_ProductionPlan.java +++ b/base/src/org/compiere/model/I_M_ProductionPlan.java @@ -130,6 +130,8 @@ public interface I_M_ProductionPlan */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; @@ -143,6 +145,8 @@ public interface I_M_ProductionPlan */ public int getM_Product_ID(); + public I_M_Product getM_Product() throws RuntimeException; + /** Column name M_Production_ID */ public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; diff --git a/base/src/org/compiere/model/I_M_PromotionReward.java b/base/src/org/compiere/model/I_M_PromotionReward.java index 5a6a92cfbc..96b1ae4440 100644 --- a/base/src/org/compiere/model/I_M_PromotionReward.java +++ b/base/src/org/compiere/model/I_M_PromotionReward.java @@ -202,6 +202,8 @@ public interface I_M_PromotionReward */ public int getM_TargetDistribution_ID(); + public I_M_PromotionDistribution getM_TargetDistribution() throws RuntimeException; + /** Column name Qty */ public static final String COLUMNNAME_Qty = "Qty"; diff --git a/base/src/org/compiere/model/I_M_RMA.java b/base/src/org/compiere/model/I_M_RMA.java index 583c27787e..fd9c82e63a 100644 --- a/base/src/org/compiere/model/I_M_RMA.java +++ b/base/src/org/compiere/model/I_M_RMA.java @@ -118,6 +118,8 @@ public interface I_M_RMA */ public int getC_DocType_ID(); + public I_C_DocType getC_DocType() throws RuntimeException; + /** Column name C_Order_ID */ public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; @@ -240,6 +242,8 @@ public interface I_M_RMA */ public int getInOut_ID(); + public I_M_InOut getInOut() throws RuntimeException; + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -351,6 +355,8 @@ public interface I_M_RMA /** Get Referenced RMA */ public int getRef_RMA_ID(); + public I_M_RMA getRef_RMA() throws RuntimeException; + /** Column name SalesRep_ID */ public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; @@ -364,6 +370,8 @@ public interface I_M_RMA */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_RMALine.java b/base/src/org/compiere/model/I_M_RMALine.java index 91122bf71d..5135581b23 100644 --- a/base/src/org/compiere/model/I_M_RMALine.java +++ b/base/src/org/compiere/model/I_M_RMALine.java @@ -262,6 +262,8 @@ public interface I_M_RMALine /** Get Referenced RMA Line */ public int getRef_RMALine_ID(); + public I_M_RMALine getRef_RMALine() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_RelatedProduct.java b/base/src/org/compiere/model/I_M_RelatedProduct.java index de686737bb..a6c92c40d4 100644 --- a/base/src/org/compiere/model/I_M_RelatedProduct.java +++ b/base/src/org/compiere/model/I_M_RelatedProduct.java @@ -145,6 +145,8 @@ public interface I_M_RelatedProduct */ public int getRelatedProduct_ID(); + public I_M_Product getRelatedProduct() throws RuntimeException; + /** Column name RelatedProductType */ public static final String COLUMNNAME_RelatedProductType = "RelatedProductType"; diff --git a/base/src/org/compiere/model/I_M_Replenish.java b/base/src/org/compiere/model/I_M_Replenish.java index b44d46b41a..415611900e 100644 --- a/base/src/org/compiere/model/I_M_Replenish.java +++ b/base/src/org/compiere/model/I_M_Replenish.java @@ -175,6 +175,8 @@ public interface I_M_Replenish */ public int getM_WarehouseSource_ID(); + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException; + /** Column name ReplenishType */ public static final String COLUMNNAME_ReplenishType = "ReplenishType"; diff --git a/base/src/org/compiere/model/I_M_RequisitionLine.java b/base/src/org/compiere/model/I_M_RequisitionLine.java index 2adaf443ae..0c81cb5c6e 100644 --- a/base/src/org/compiere/model/I_M_RequisitionLine.java +++ b/base/src/org/compiere/model/I_M_RequisitionLine.java @@ -203,6 +203,8 @@ public interface I_M_RequisitionLine */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_M_Storage.java b/base/src/org/compiere/model/I_M_Storage.java index a3f8b9c121..4aa5eccef1 100644 --- a/base/src/org/compiere/model/I_M_Storage.java +++ b/base/src/org/compiere/model/I_M_Storage.java @@ -117,6 +117,8 @@ public interface I_M_Storage */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_Locator_ID */ public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; @@ -130,6 +132,8 @@ public interface I_M_Storage */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_M_Substitute.java b/base/src/org/compiere/model/I_M_Substitute.java index 4fbd7a9b14..f9e8461166 100644 --- a/base/src/org/compiere/model/I_M_Substitute.java +++ b/base/src/org/compiere/model/I_M_Substitute.java @@ -145,6 +145,8 @@ public interface I_M_Substitute */ public int getSubstitute_ID(); + public I_M_Product getSubstitute() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_M_Transaction.java b/base/src/org/compiere/model/I_M_Transaction.java index 6eda010e78..a0107dd9bd 100644 --- a/base/src/org/compiere/model/I_M_Transaction.java +++ b/base/src/org/compiere/model/I_M_Transaction.java @@ -119,6 +119,8 @@ public interface I_M_Transaction */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; @@ -162,6 +164,8 @@ public interface I_M_Transaction */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_MovementLine_ID */ public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; diff --git a/base/src/org/compiere/model/I_M_TransactionAllocation.java b/base/src/org/compiere/model/I_M_TransactionAllocation.java index 84a665d432..fafb3a27f8 100644 --- a/base/src/org/compiere/model/I_M_TransactionAllocation.java +++ b/base/src/org/compiere/model/I_M_TransactionAllocation.java @@ -143,6 +143,8 @@ public interface I_M_TransactionAllocation */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOutLine_ID */ public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; @@ -227,6 +229,8 @@ public interface I_M_TransactionAllocation */ public int getOut_M_InOutLine_ID(); + public I_M_InOutLine getOut_M_InOutLine() throws RuntimeException; + /** Column name Out_M_InventoryLine_ID */ public static final String COLUMNNAME_Out_M_InventoryLine_ID = "Out_M_InventoryLine_ID"; @@ -240,6 +244,8 @@ public interface I_M_TransactionAllocation */ public int getOut_M_InventoryLine_ID(); + public I_M_InventoryLine getOut_M_InventoryLine() throws RuntimeException; + /** Column name Out_M_ProductionLine_ID */ public static final String COLUMNNAME_Out_M_ProductionLine_ID = "Out_M_ProductionLine_ID"; @@ -253,6 +259,8 @@ public interface I_M_TransactionAllocation */ public int getOut_M_ProductionLine_ID(); + public I_M_ProductionLine getOut_M_ProductionLine() throws RuntimeException; + /** Column name Out_M_Transaction_ID */ public static final String COLUMNNAME_Out_M_Transaction_ID = "Out_M_Transaction_ID"; @@ -266,6 +274,8 @@ public interface I_M_TransactionAllocation */ public int getOut_M_Transaction_ID(); + public I_M_Transaction getOut_M_Transaction() throws RuntimeException; + /** Column name Qty */ public static final String COLUMNNAME_Qty = "Qty"; diff --git a/base/src/org/compiere/model/I_M_Warehouse.java b/base/src/org/compiere/model/I_M_Warehouse.java index 7c5f369cdc..9e8571a2e8 100644 --- a/base/src/org/compiere/model/I_M_Warehouse.java +++ b/base/src/org/compiere/model/I_M_Warehouse.java @@ -75,6 +75,8 @@ public interface I_M_Warehouse */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -156,6 +158,8 @@ public interface I_M_Warehouse */ public int getM_WarehouseSource_ID(); + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException; + /** Column name Name */ public static final String COLUMNNAME_Name = "Name"; diff --git a/base/src/org/compiere/model/I_M_Warehouse_Acct.java b/base/src/org/compiere/model/I_M_Warehouse_Acct.java index f65c3593f6..01460cbaaf 100644 --- a/base/src/org/compiere/model/I_M_Warehouse_Acct.java +++ b/base/src/org/compiere/model/I_M_Warehouse_Acct.java @@ -150,6 +150,8 @@ public interface I_M_Warehouse_Acct */ public int getW_Differences_Acct(); + public I_C_ValidCombination getW_Differences_A() throws RuntimeException; + /** Column name W_InvActualAdjust_Acct */ public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; @@ -163,6 +165,8 @@ public interface I_M_Warehouse_Acct */ public int getW_InvActualAdjust_Acct(); + public I_C_ValidCombination getW_InvActualAdjust_A() throws RuntimeException; + /** Column name W_Inventory_Acct */ public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; @@ -176,6 +180,8 @@ public interface I_M_Warehouse_Acct */ public int getW_Inventory_Acct(); + public I_C_ValidCombination getW_Inventory_A() throws RuntimeException; + /** Column name W_Revaluation_Acct */ public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; @@ -188,4 +194,6 @@ public interface I_M_Warehouse_Acct * Account for Inventory Revaluation */ public int getW_Revaluation_Acct(); + + public I_C_ValidCombination getW_Revaluation_A() throws RuntimeException; } diff --git a/base/src/org/compiere/model/I_PA_ColorSchema.java b/base/src/org/compiere/model/I_PA_ColorSchema.java index 97f27d8f5d..01cb6ecdb8 100644 --- a/base/src/org/compiere/model/I_PA_ColorSchema.java +++ b/base/src/org/compiere/model/I_PA_ColorSchema.java @@ -75,6 +75,8 @@ public interface I_PA_ColorSchema */ public int getAD_PrintColor1_ID(); + public I_AD_PrintColor getAD_PrintColor1() throws RuntimeException; + /** Column name AD_PrintColor2_ID */ public static final String COLUMNNAME_AD_PrintColor2_ID = "AD_PrintColor2_ID"; @@ -88,6 +90,8 @@ public interface I_PA_ColorSchema */ public int getAD_PrintColor2_ID(); + public I_AD_PrintColor getAD_PrintColor2() throws RuntimeException; + /** Column name AD_PrintColor3_ID */ public static final String COLUMNNAME_AD_PrintColor3_ID = "AD_PrintColor3_ID"; @@ -101,6 +105,8 @@ public interface I_PA_ColorSchema */ public int getAD_PrintColor3_ID(); + public I_AD_PrintColor getAD_PrintColor3() throws RuntimeException; + /** Column name AD_PrintColor4_ID */ public static final String COLUMNNAME_AD_PrintColor4_ID = "AD_PrintColor4_ID"; @@ -114,6 +120,8 @@ public interface I_PA_ColorSchema */ public int getAD_PrintColor4_ID(); + public I_AD_PrintColor getAD_PrintColor4() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_PA_Goal.java b/base/src/org/compiere/model/I_PA_Goal.java index fdeb5abfa7..b5541ae9ff 100644 --- a/base/src/org/compiere/model/I_PA_Goal.java +++ b/base/src/org/compiere/model/I_PA_Goal.java @@ -331,6 +331,8 @@ public interface I_PA_Goal */ public int getPA_GoalParent_ID(); + public I_PA_Goal getPA_GoalParent() throws RuntimeException; + /** Column name PA_Measure_ID */ public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; diff --git a/base/src/org/compiere/model/I_PA_Hierarchy.java b/base/src/org/compiere/model/I_PA_Hierarchy.java index c94edb4376..37039a5a48 100644 --- a/base/src/org/compiere/model/I_PA_Hierarchy.java +++ b/base/src/org/compiere/model/I_PA_Hierarchy.java @@ -75,6 +75,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Account_ID(); + public I_AD_Tree getAD_Tree_Account() throws RuntimeException; + /** Column name AD_Tree_Activity_ID */ public static final String COLUMNNAME_AD_Tree_Activity_ID = "AD_Tree_Activity_ID"; @@ -88,6 +90,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Activity_ID(); + public I_AD_Tree getAD_Tree_Activity() throws RuntimeException; + /** Column name AD_Tree_BPartner_ID */ public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; @@ -101,6 +105,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_BPartner_ID(); + public I_AD_Tree getAD_Tree_BPartner() throws RuntimeException; + /** Column name AD_Tree_Campaign_ID */ public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; @@ -114,6 +120,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Campaign_ID(); + public I_AD_Tree getAD_Tree_Campaign() throws RuntimeException; + /** Column name AD_Tree_Org_ID */ public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; @@ -127,6 +135,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Org_ID(); + public I_AD_Tree getAD_Tree_Org() throws RuntimeException; + /** Column name AD_Tree_Product_ID */ public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; @@ -140,6 +150,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Product_ID(); + public I_AD_Tree getAD_Tree_Product() throws RuntimeException; + /** Column name AD_Tree_Project_ID */ public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; @@ -153,6 +165,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_Project_ID(); + public I_AD_Tree getAD_Tree_Project() throws RuntimeException; + /** Column name AD_Tree_SalesRegion_ID */ public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; @@ -166,6 +180,8 @@ public interface I_PA_Hierarchy */ public int getAD_Tree_SalesRegion_ID(); + public I_AD_Tree getAD_Tree_SalesRegion() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_PA_RatioElement.java b/base/src/org/compiere/model/I_PA_RatioElement.java index 0c0b23d5dd..adcc911c4a 100644 --- a/base/src/org/compiere/model/I_PA_RatioElement.java +++ b/base/src/org/compiere/model/I_PA_RatioElement.java @@ -54,6 +54,8 @@ public interface I_PA_RatioElement */ public int getAccount_ID(); + public I_C_ElementValue getAccount() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -199,6 +201,8 @@ public interface I_PA_RatioElement */ public int getPA_RatioUsed_ID(); + public I_PA_Ratio getPA_RatioUsed() throws RuntimeException; + /** Column name PostingType */ public static final String COLUMNNAME_PostingType = "PostingType"; diff --git a/base/src/org/compiere/model/I_PA_Report.java b/base/src/org/compiere/model/I_PA_Report.java index 9bb16ff4d8..834e814291 100644 --- a/base/src/org/compiere/model/I_PA_Report.java +++ b/base/src/org/compiere/model/I_PA_Report.java @@ -162,6 +162,8 @@ public interface I_PA_Report */ public int getJasperProcess_ID(); + public I_AD_Process getJasperProcess() throws RuntimeException; + /** Column name JasperProcessing */ public static final String COLUMNNAME_JasperProcessing = "JasperProcessing"; @@ -251,6 +253,8 @@ public interface I_PA_Report */ public int getPA_ReportCube_ID(); + public I_PA_ReportCube getPA_ReportCube() throws RuntimeException; + /** Column name PA_ReportLineSet_ID */ public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; diff --git a/base/src/org/compiere/model/I_PA_ReportColumn.java b/base/src/org/compiere/model/I_PA_ReportColumn.java index 80e502d435..bf20f24bb0 100644 --- a/base/src/org/compiere/model/I_PA_ReportColumn.java +++ b/base/src/org/compiere/model/I_PA_ReportColumn.java @@ -176,6 +176,8 @@ public interface I_PA_ReportColumn */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; @@ -552,6 +554,8 @@ public interface I_PA_ReportColumn */ public int getOper_1_ID(); + public I_PA_ReportColumn getOper_1() throws RuntimeException; + /** Column name Oper_2_ID */ public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; @@ -565,6 +569,8 @@ public interface I_PA_ReportColumn */ public int getOper_2_ID(); + public I_PA_ReportColumn getOper_2() throws RuntimeException; + /** Column name Org_ID */ public static final String COLUMNNAME_Org_ID = "Org_ID"; diff --git a/base/src/org/compiere/model/I_PA_ReportLine.java b/base/src/org/compiere/model/I_PA_ReportLine.java index 563601389f..888b327ef0 100644 --- a/base/src/org/compiere/model/I_PA_ReportLine.java +++ b/base/src/org/compiere/model/I_PA_ReportLine.java @@ -189,6 +189,8 @@ public interface I_PA_ReportLine */ public int getOper_1_ID(); + public I_PA_ReportLine getOper_1() throws RuntimeException; + /** Column name Oper_2_ID */ public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; @@ -202,6 +204,8 @@ public interface I_PA_ReportLine */ public int getOper_2_ID(); + public I_PA_ReportLine getOper_2() throws RuntimeException; + /** Column name PA_ReportLine_ID */ public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; diff --git a/base/src/org/compiere/model/I_PA_ReportSource.java b/base/src/org/compiere/model/I_PA_ReportSource.java index 08a63ca95c..64d1cfe5db 100644 --- a/base/src/org/compiere/model/I_PA_ReportSource.java +++ b/base/src/org/compiere/model/I_PA_ReportSource.java @@ -133,6 +133,8 @@ public interface I_PA_ReportSource */ public int getC_ElementValue_ID(); + public I_C_ElementValue getC_ElementValue() throws RuntimeException; + /** Column name C_Location_ID */ public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; @@ -146,6 +148,8 @@ public interface I_PA_ReportSource */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; diff --git a/base/src/org/compiere/model/I_RV_BPartner.java b/base/src/org/compiere/model/I_RV_BPartner.java index 316a2d750d..ea4eab3ed8 100644 --- a/base/src/org/compiere/model/I_RV_BPartner.java +++ b/base/src/org/compiere/model/I_RV_BPartner.java @@ -207,6 +207,8 @@ public interface I_RV_BPartner */ public int getBPartner_Parent_ID(); + public I_C_BPartner getBPartner_Parent() throws RuntimeException; + /** Column name BPContactGreeting */ public static final String COLUMNNAME_BPContactGreeting = "BPContactGreeting"; @@ -220,6 +222,8 @@ public interface I_RV_BPartner */ public int getBPContactGreeting(); + public I_C_Greeting getBPContactGreet() throws RuntimeException; + /** Column name C_BP_Group_ID */ public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; @@ -616,6 +620,8 @@ public interface I_RV_BPartner */ public int getInvoice_PrintFormat_ID(); + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException; + /** Column name InvoiceRule */ public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; @@ -954,6 +960,8 @@ public interface I_RV_BPartner */ public int getPO_DiscountSchema_ID(); + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException; + /** Column name PO_PaymentTerm_ID */ public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; @@ -967,6 +975,8 @@ public interface I_RV_BPartner */ public int getPO_PaymentTerm_ID(); + public I_C_PaymentTerm getPO_PaymentTerm() throws RuntimeException; + /** Column name PO_PriceList_ID */ public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; @@ -980,6 +990,8 @@ public interface I_RV_BPartner */ public int getPO_PriceList_ID(); + public I_M_PriceList getPO_PriceList() throws RuntimeException; + /** Column name POReference */ public static final String COLUMNNAME_POReference = "POReference"; @@ -1071,6 +1083,8 @@ public interface I_RV_BPartner */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SalesVolume */ public static final String COLUMNNAME_SalesVolume = "SalesVolume"; @@ -1201,6 +1215,8 @@ public interface I_RV_BPartner */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name TaxID */ public static final String COLUMNNAME_TaxID = "TaxID"; diff --git a/base/src/org/compiere/model/I_R_Request.java b/base/src/org/compiere/model/I_R_Request.java index 76809af925..793b4cf2bc 100644 --- a/base/src/org/compiere/model/I_R_Request.java +++ b/base/src/org/compiere/model/I_R_Request.java @@ -195,6 +195,8 @@ public interface I_R_Request */ public int getC_InvoiceRequest_ID(); + public I_C_Invoice getC_InvoiceRequest() throws RuntimeException; + /** Column name C_Order_ID */ public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; @@ -492,6 +494,8 @@ public interface I_R_Request */ public int getM_FixChangeNotice_ID(); + public I_M_ChangeNotice getM_FixChangeNotice() throws RuntimeException; + /** Column name M_InOut_ID */ public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; @@ -535,6 +539,8 @@ public interface I_R_Request */ public int getM_ProductSpent_ID(); + public I_M_Product getM_ProductSpent() throws RuntimeException; + /** Column name M_RMA_ID */ public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; @@ -712,6 +718,8 @@ public interface I_R_Request */ public int getR_RequestRelated_ID(); + public I_R_Request getR_RequestRelated() throws RuntimeException; + /** Column name R_RequestType_ID */ public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; @@ -824,6 +832,8 @@ public interface I_R_Request */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name StartDate */ public static final String COLUMNNAME_StartDate = "StartDate"; diff --git a/base/src/org/compiere/model/I_R_RequestAction.java b/base/src/org/compiere/model/I_R_RequestAction.java index 71706f6731..fcb0a1e1d4 100644 --- a/base/src/org/compiere/model/I_R_RequestAction.java +++ b/base/src/org/compiere/model/I_R_RequestAction.java @@ -373,6 +373,8 @@ public interface I_R_RequestAction */ public int getM_ProductSpent_ID(); + public I_M_Product getM_ProductSpent() throws RuntimeException; + /** Column name M_RMA_ID */ public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; @@ -582,6 +584,8 @@ public interface I_R_RequestAction */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name StartDate */ public static final String COLUMNNAME_StartDate = "StartDate"; diff --git a/base/src/org/compiere/model/I_R_RequestProcessor.java b/base/src/org/compiere/model/I_R_RequestProcessor.java index 430e6ff24c..2788c202dc 100644 --- a/base/src/org/compiere/model/I_R_RequestProcessor.java +++ b/base/src/org/compiere/model/I_R_RequestProcessor.java @@ -284,6 +284,8 @@ public interface I_R_RequestProcessor */ public int getSupervisor_ID(); + public I_AD_User getSupervisor() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_R_RequestUpdate.java b/base/src/org/compiere/model/I_R_RequestUpdate.java index 5abd7feac3..530ab80b7a 100644 --- a/base/src/org/compiere/model/I_R_RequestUpdate.java +++ b/base/src/org/compiere/model/I_R_RequestUpdate.java @@ -130,6 +130,8 @@ public interface I_R_RequestUpdate */ public int getM_ProductSpent_ID(); + public I_M_Product getM_ProductSpent() throws RuntimeException; + /** Column name QtyInvoiced */ public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; diff --git a/base/src/org/compiere/model/I_R_Status.java b/base/src/org/compiere/model/I_R_Status.java index 583804b46a..c035ca1bb9 100644 --- a/base/src/org/compiere/model/I_R_Status.java +++ b/base/src/org/compiere/model/I_R_Status.java @@ -208,6 +208,8 @@ public interface I_R_Status */ public int getNext_Status_ID(); + public I_R_Status getNext_Status() throws RuntimeException; + /** Column name R_Status_ID */ public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; @@ -277,6 +279,8 @@ public interface I_R_Status */ public int getUpdate_Status_ID(); + public I_R_Status getUpdate_Status() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_S_TimeExpense.java b/base/src/org/compiere/model/I_S_TimeExpense.java index 842ea9d1bf..618cad8231 100644 --- a/base/src/org/compiere/model/I_S_TimeExpense.java +++ b/base/src/org/compiere/model/I_S_TimeExpense.java @@ -88,6 +88,8 @@ public interface I_S_TimeExpense */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_T_InventoryValue.java b/base/src/org/compiere/model/I_T_InventoryValue.java index 9527526ea0..6618f2c1b2 100644 --- a/base/src/org/compiere/model/I_T_InventoryValue.java +++ b/base/src/org/compiere/model/I_T_InventoryValue.java @@ -170,6 +170,8 @@ public interface I_T_InventoryValue */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_CostElement_ID */ public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; diff --git a/base/src/org/compiere/model/I_T_InvoiceGL.java b/base/src/org/compiere/model/I_T_InvoiceGL.java index fcb9775557..67e69c1ec2 100644 --- a/base/src/org/compiere/model/I_T_InvoiceGL.java +++ b/base/src/org/compiere/model/I_T_InvoiceGL.java @@ -181,6 +181,8 @@ public interface I_T_InvoiceGL */ public int getC_ConversionTypeReval_ID(); + public I_C_ConversionType getC_ConversionTypeReval() throws RuntimeException; + /** Column name C_DocTypeReval_ID */ public static final String COLUMNNAME_C_DocTypeReval_ID = "C_DocTypeReval_ID"; @@ -194,6 +196,8 @@ public interface I_T_InvoiceGL */ public int getC_DocTypeReval_ID(); + public I_C_DocType getC_DocTypeReval() throws RuntimeException; + /** Column name C_Invoice_ID */ public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; diff --git a/base/src/org/compiere/model/I_T_Replenish.java b/base/src/org/compiere/model/I_T_Replenish.java index 1019bcdd4e..fd82c43b5c 100644 --- a/base/src/org/compiere/model/I_T_Replenish.java +++ b/base/src/org/compiere/model/I_T_Replenish.java @@ -176,6 +176,8 @@ public interface I_T_Replenish */ public int getM_WarehouseSource_ID(); + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException; + /** Column name Order_Min */ public static final String COLUMNNAME_Order_Min = "Order_Min"; diff --git a/base/src/org/compiere/model/I_T_Transaction.java b/base/src/org/compiere/model/I_T_Transaction.java index 19630056fd..1a3a120e3e 100644 --- a/base/src/org/compiere/model/I_T_Transaction.java +++ b/base/src/org/compiere/model/I_T_Transaction.java @@ -149,6 +149,8 @@ public interface I_T_Transaction */ public int getM_AttributeSetInstance_ID(); + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException; + /** Column name M_InOut_ID */ public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; @@ -222,6 +224,8 @@ public interface I_T_Transaction */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Movement_ID */ public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; @@ -360,6 +364,8 @@ public interface I_T_Transaction */ public int getSearch_InOut_ID(); + public I_M_InOutLine getSearch_InOut() throws RuntimeException; + /** Column name Search_Invoice_ID */ public static final String COLUMNNAME_Search_Invoice_ID = "Search_Invoice_ID"; @@ -373,6 +379,8 @@ public interface I_T_Transaction */ public int getSearch_Invoice_ID(); + public I_C_Invoice getSearch_Invoice() throws RuntimeException; + /** Column name Search_Order_ID */ public static final String COLUMNNAME_Search_Order_ID = "Search_Order_ID"; @@ -386,6 +394,8 @@ public interface I_T_Transaction */ public int getSearch_Order_ID(); + public I_C_Order getSearch_Order() throws RuntimeException; + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/base/src/org/compiere/model/I_Test.java b/base/src/org/compiere/model/I_Test.java index 8958bd40ee..5d1c0f8e16 100644 --- a/base/src/org/compiere/model/I_Test.java +++ b/base/src/org/compiere/model/I_Test.java @@ -50,6 +50,8 @@ public interface I_Test /** Get Account_Acct */ public int getAccount_Acct(); + public I_C_ValidCombination getAccount_A() throws RuntimeException; + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -127,6 +129,8 @@ public interface I_Test */ public int getC_Location_ID(); + public I_C_Location getC_Location() throws RuntimeException; + /** Column name C_Payment_ID */ public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; @@ -238,6 +242,8 @@ public interface I_Test */ public int getM_Locator_ID(); + public I_M_Locator getM_Locator() throws RuntimeException; + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; diff --git a/base/src/org/compiere/model/I_U_POSTerminal.java b/base/src/org/compiere/model/I_U_POSTerminal.java index d30290df3d..b2394c3f1c 100644 --- a/base/src/org/compiere/model/I_U_POSTerminal.java +++ b/base/src/org/compiere/model/I_U_POSTerminal.java @@ -103,6 +103,8 @@ public interface I_U_POSTerminal */ public int getC_CashBPartner_ID(); + public I_C_BPartner getC_CashBPartner() throws RuntimeException; + /** Column name C_TemplateBPartner_ID */ public static final String COLUMNNAME_C_TemplateBPartner_ID = "C_TemplateBPartner_ID"; @@ -116,6 +118,8 @@ public interface I_U_POSTerminal */ public int getC_TemplateBPartner_ID(); + public I_C_BPartner getC_TemplateBPartner() throws RuntimeException; + /** Column name Card_BankAccount_ID */ public static final String COLUMNNAME_Card_BankAccount_ID = "Card_BankAccount_ID"; @@ -129,6 +133,8 @@ public interface I_U_POSTerminal */ public int getCard_BankAccount_ID(); + public I_C_BankAccount getCard_BankAccount() throws RuntimeException; + /** Column name CardTransferBankAccount_ID */ public static final String COLUMNNAME_CardTransferBankAccount_ID = "CardTransferBankAccount_ID"; @@ -142,6 +148,8 @@ public interface I_U_POSTerminal */ public int getCardTransferBankAccount_ID(); + public I_C_BankAccount getCardTransferBankAccount() throws RuntimeException; + /** Column name CardTransferCashBook_ID */ public static final String COLUMNNAME_CardTransferCashBook_ID = "CardTransferCashBook_ID"; @@ -155,6 +163,8 @@ public interface I_U_POSTerminal */ public int getCardTransferCashBook_ID(); + public I_C_CashBook getCardTransferCashBook() throws RuntimeException; + /** Column name CardTransferType */ public static final String COLUMNNAME_CardTransferType = "CardTransferType"; @@ -190,6 +200,8 @@ public interface I_U_POSTerminal */ public int getCashTransferBankAccount_ID(); + public I_C_BankAccount getCashTransferBankAccount() throws RuntimeException; + /** Column name CashTransferCashBook_ID */ public static final String COLUMNNAME_CashTransferCashBook_ID = "CashTransferCashBook_ID"; @@ -203,6 +215,8 @@ public interface I_U_POSTerminal */ public int getCashTransferCashBook_ID(); + public I_C_CashBook getCashTransferCashBook() throws RuntimeException; + /** Column name Check_BankAccount_ID */ public static final String COLUMNNAME_Check_BankAccount_ID = "Check_BankAccount_ID"; @@ -216,6 +230,8 @@ public interface I_U_POSTerminal */ public int getCheck_BankAccount_ID(); + public I_C_BankAccount getCheck_BankAccount() throws RuntimeException; + /** Column name CheckTransferBankAccount_ID */ public static final String COLUMNNAME_CheckTransferBankAccount_ID = "CheckTransferBankAccount_ID"; @@ -229,6 +245,8 @@ public interface I_U_POSTerminal */ public int getCheckTransferBankAccount_ID(); + public I_C_BankAccount getCheckTransferBankAccount() throws RuntimeException; + /** Column name CheckTransferCashBook_ID */ public static final String COLUMNNAME_CheckTransferCashBook_ID = "CheckTransferCashBook_ID"; @@ -242,6 +260,8 @@ public interface I_U_POSTerminal */ public int getCheckTransferCashBook_ID(); + public I_C_CashBook getCheckTransferCashBook() throws RuntimeException; + /** Column name CheckTransferType */ public static final String COLUMNNAME_CheckTransferType = "CheckTransferType"; @@ -386,6 +406,8 @@ public interface I_U_POSTerminal */ public int getPO_PriceList_ID(); + public I_M_PriceList getPO_PriceList() throws RuntimeException; + /** Column name PrinterName */ public static final String COLUMNNAME_PrinterName = "PrinterName"; @@ -412,6 +434,8 @@ public interface I_U_POSTerminal */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name SO_PriceList_ID */ public static final String COLUMNNAME_SO_PriceList_ID = "SO_PriceList_ID"; @@ -421,6 +445,8 @@ public interface I_U_POSTerminal /** Get Sales Pricelist */ public int getSO_PriceList_ID(); + public I_M_PriceList getSO_PriceList() throws RuntimeException; + /** Column name U_POSTerminal_ID */ public static final String COLUMNNAME_U_POSTerminal_ID = "U_POSTerminal_ID"; diff --git a/base/src/org/compiere/model/I_U_WebMenu.java b/base/src/org/compiere/model/I_U_WebMenu.java index 867b18a480..49ac59c973 100644 --- a/base/src/org/compiere/model/I_U_WebMenu.java +++ b/base/src/org/compiere/model/I_U_WebMenu.java @@ -184,6 +184,8 @@ public interface I_U_WebMenu /** Get Parent Menu */ public int getParentMenu_ID(); + public I_U_WebMenu getParentMenu() throws RuntimeException; + /** Column name Position */ public static final String COLUMNNAME_Position = "Position"; diff --git a/base/src/org/compiere/model/I_W_Advertisement.java b/base/src/org/compiere/model/I_W_Advertisement.java index 7d85f0b2d0..2aac517d00 100644 --- a/base/src/org/compiere/model/I_W_Advertisement.java +++ b/base/src/org/compiere/model/I_W_Advertisement.java @@ -103,6 +103,8 @@ public interface I_W_Advertisement */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/I_W_ClickCount.java b/base/src/org/compiere/model/I_W_ClickCount.java index ab281c0c0d..866743f4ac 100644 --- a/base/src/org/compiere/model/I_W_ClickCount.java +++ b/base/src/org/compiere/model/I_W_ClickCount.java @@ -75,6 +75,8 @@ public interface I_W_ClickCount */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name Counter */ public static final String COLUMNNAME_Counter = "Counter"; diff --git a/base/src/org/compiere/model/I_W_CounterCount.java b/base/src/org/compiere/model/I_W_CounterCount.java index fe93a516dc..e368c46b3f 100644 --- a/base/src/org/compiere/model/I_W_CounterCount.java +++ b/base/src/org/compiere/model/I_W_CounterCount.java @@ -75,6 +75,8 @@ public interface I_W_CounterCount */ public int getC_BPartner_ID(); + public I_C_BPartner getC_BPartner() throws RuntimeException; + /** Column name Counter */ public static final String COLUMNNAME_Counter = "Counter"; diff --git a/base/src/org/compiere/model/I_W_Store.java b/base/src/org/compiere/model/I_W_Store.java index ac05a1fd8d..b364cdcd32 100644 --- a/base/src/org/compiere/model/I_W_Store.java +++ b/base/src/org/compiere/model/I_W_Store.java @@ -357,6 +357,8 @@ public interface I_W_Store */ public int getSalesRep_ID(); + public I_AD_User getSalesRep() throws RuntimeException; + /** Column name Stylesheet */ public static final String COLUMNNAME_Stylesheet = "Stylesheet"; diff --git a/base/src/org/compiere/model/X_AD_AccessLog.java b/base/src/org/compiere/model/X_AD_AccessLog.java index 196cbcfc0c..6f3d0e1d83 100644 --- a/base/src/org/compiere/model/X_AD_AccessLog.java +++ b/base/src/org/compiere/model/X_AD_AccessLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_AccessLog @@ -103,21 +101,10 @@ public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getAD_AccessLog_ID())); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -142,21 +129,10 @@ public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_Alert.java b/base/src/org/compiere/model/X_AD_Alert.java index 03dd4a8fee..1a112bc533 100644 --- a/base/src/org/compiere/model/X_AD_Alert.java +++ b/base/src/org/compiere/model/X_AD_Alert.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Alert @@ -105,21 +103,10 @@ public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent return ii.intValue(); } - public I_AD_AlertProcessor getAD_AlertProcessor() throws RuntimeException + public I_AD_AlertProcessor getAD_AlertProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_AlertProcessor.Table_Name); - I_AD_AlertProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_AlertProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_AlertProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_AlertProcessor)MTable.get(getCtx(), I_AD_AlertProcessor.Table_Name) + .getPO(getAD_AlertProcessor_ID(), get_TrxName()); } /** Set Alert Processor. @param AD_AlertProcessor_ID diff --git a/base/src/org/compiere/model/X_AD_AlertProcessor.java b/base/src/org/compiere/model/X_AD_AlertProcessor.java index e384e66fbb..391e7186dc 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessor.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessor.java @@ -263,6 +263,11 @@ public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Pe return false; } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java index 541ce932e9..d9b3c353d4 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_AlertProcessorLog * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_AlertProcessorLog extends PO implements I_AD_AlertProcessorLog return sb.toString(); } - public I_AD_AlertProcessor getAD_AlertProcessor() throws RuntimeException + public I_AD_AlertProcessor getAD_AlertProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_AlertProcessor.Table_Name); - I_AD_AlertProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_AlertProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_AlertProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_AlertProcessor)MTable.get(getCtx(), I_AD_AlertProcessor.Table_Name) + .getPO(getAD_AlertProcessor_ID(), get_TrxName()); } /** Set Alert Processor. @param AD_AlertProcessor_ID diff --git a/base/src/org/compiere/model/X_AD_AlertRecipient.java b/base/src/org/compiere/model/X_AD_AlertRecipient.java index 8f00d6325e..584e74f2b8 100644 --- a/base/src/org/compiere/model/X_AD_AlertRecipient.java +++ b/base/src/org/compiere/model/X_AD_AlertRecipient.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_AlertRecipient @@ -73,21 +71,10 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe return sb.toString(); } - public I_AD_Alert getAD_Alert() throws RuntimeException + public I_AD_Alert getAD_Alert() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Alert.Table_Name); - I_AD_Alert result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Alert)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Alert_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Alert)MTable.get(getCtx(), I_AD_Alert.Table_Name) + .getPO(getAD_Alert_ID(), get_TrxName()); } /** Set Alert. @param AD_Alert_ID @@ -135,21 +122,10 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -174,21 +150,10 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_AD_AlertRule.java b/base/src/org/compiere/model/X_AD_AlertRule.java index 510f106d69..6fadb9280c 100644 --- a/base/src/org/compiere/model/X_AD_AlertRule.java +++ b/base/src/org/compiere/model/X_AD_AlertRule.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_AlertRule @@ -78,21 +76,10 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent return sb.toString(); } - public I_AD_Alert getAD_Alert() throws RuntimeException + public I_AD_Alert getAD_Alert() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Alert.Table_Name); - I_AD_Alert result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Alert)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Alert_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Alert)MTable.get(getCtx(), I_AD_Alert.Table_Name) + .getPO(getAD_Alert_ID(), get_TrxName()); } /** Set Alert. @param AD_Alert_ID @@ -140,21 +127,10 @@ public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_Archive.java b/base/src/org/compiere/model/X_AD_Archive.java index 8e7efcb075..57eea732f1 100644 --- a/base/src/org/compiere/model/X_AD_Archive.java +++ b/base/src/org/compiere/model/X_AD_Archive.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Archive @@ -98,21 +96,10 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -137,21 +124,10 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -193,21 +169,10 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent return (byte[])get_Value(COLUMNNAME_BinaryData); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID diff --git a/base/src/org/compiere/model/X_AD_Attachment.java b/base/src/org/compiere/model/X_AD_Attachment.java index fafda01b72..4e137e3eab 100644 --- a/base/src/org/compiere/model/X_AD_Attachment.java +++ b/base/src/org/compiere/model/X_AD_Attachment.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Attachment @@ -98,21 +96,10 @@ public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_AttachmentNote.java b/base/src/org/compiere/model/X_AD_AttachmentNote.java index 0f6a1e28a6..93d82bef74 100644 --- a/base/src/org/compiere/model/X_AD_AttachmentNote.java +++ b/base/src/org/compiere/model/X_AD_AttachmentNote.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_AttachmentNote @@ -76,21 +74,10 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe return sb.toString(); } - public I_AD_Attachment getAD_Attachment() throws RuntimeException + public I_AD_Attachment getAD_Attachment() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Attachment.Table_Name); - I_AD_Attachment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Attachment)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Attachment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Attachment)MTable.get(getCtx(), I_AD_Attachment.Table_Name) + .getPO(getAD_Attachment_ID(), get_TrxName()); } /** Set Attachment. @param AD_Attachment_ID @@ -138,21 +125,10 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_AD_Attribute.java b/base/src/org/compiere/model/X_AD_Attribute.java index 12c289663f..8fa6fa013c 100644 --- a/base/src/org/compiere/model/X_AD_Attribute.java +++ b/base/src/org/compiere/model/X_AD_Attribute.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Attribute @@ -102,6 +100,11 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -125,6 +128,11 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference_Value() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_Value_ID(), get_TrxName()); } + /** Set Reference Key. @param AD_Reference_Value_ID Required to specify, if data type is Table or List @@ -148,21 +156,10 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -187,21 +184,10 @@ public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent return ii.intValue(); } - public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException + public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Val_Rule.Table_Name); - I_AD_Val_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Val_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Val_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Val_Rule)MTable.get(getCtx(), I_AD_Val_Rule.Table_Name) + .getPO(getAD_Val_Rule_ID(), get_TrxName()); } /** Set Dynamic Validation. @param AD_Val_Rule_ID diff --git a/base/src/org/compiere/model/X_AD_ChangeLog.java b/base/src/org/compiere/model/X_AD_ChangeLog.java index 8f6862d82f..c7a810be31 100644 --- a/base/src/org/compiere/model/X_AD_ChangeLog.java +++ b/base/src/org/compiere/model/X_AD_ChangeLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ChangeLog @@ -100,21 +98,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent return ii.intValue(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -139,21 +126,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent return ii.intValue(); } - public I_AD_Session getAD_Session() throws RuntimeException + public I_AD_Session getAD_Session() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Session.Table_Name); - I_AD_Session result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Session)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Session_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Session)MTable.get(getCtx(), I_AD_Session.Table_Name) + .getPO(getAD_Session_ID(), get_TrxName()); } /** Set Session. @param AD_Session_ID @@ -186,21 +162,10 @@ public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getAD_Session_ID())); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_Client.java b/base/src/org/compiere/model/X_AD_Client.java index 327b1f7bcd..8dbf90056d 100644 --- a/base/src/org/compiere/model/X_AD_Client.java +++ b/base/src/org/compiere/model/X_AD_Client.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Client @@ -111,21 +109,10 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent return (String)get_Value(COLUMNNAME_AD_Language); } - public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException + public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReplicationStrategy.Table_Name); - I_AD_ReplicationStrategy result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReplicationStrategy)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReplicationStrategy_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReplicationStrategy)MTable.get(getCtx(), I_AD_ReplicationStrategy.Table_Name) + .getPO(getAD_ReplicationStrategy_ID(), get_TrxName()); } /** Set Replication Strategy. @param AD_ReplicationStrategy_ID diff --git a/base/src/org/compiere/model/X_AD_ClientInfo.java b/base/src/org/compiere/model/X_AD_ClientInfo.java index 0473f57254..10d357ecaa 100644 --- a/base/src/org/compiere/model/X_AD_ClientInfo.java +++ b/base/src/org/compiere/model/X_AD_ClientInfo.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_ClientInfo * @author Adempiere (generated) @@ -71,6 +69,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return sb.toString(); } + public I_AD_Tree getAD_Tree_Activity() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Activity_ID(), get_TrxName()); } + /** Set Activity Tree. @param AD_Tree_Activity_ID Tree to determine activity hierarchy @@ -94,6 +97,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_BPartner() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_BPartner_ID(), get_TrxName()); } + /** Set BPartner Tree. @param AD_Tree_BPartner_ID Tree to determine business partner hierarchy @@ -117,6 +125,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Campaign() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Campaign_ID(), get_TrxName()); } + /** Set Campaign Tree. @param AD_Tree_Campaign_ID Tree to determine marketing campaign hierarchy @@ -140,6 +153,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Menu() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Menu_ID(), get_TrxName()); } + /** Set Menu Tree. @param AD_Tree_Menu_ID Tree of the menu @@ -163,6 +181,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Org() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Org_ID(), get_TrxName()); } + /** Set Organization Tree. @param AD_Tree_Org_ID Tree to determine organizational hierarchy @@ -186,6 +209,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Product() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Product_ID(), get_TrxName()); } + /** Set Product Tree. @param AD_Tree_Product_ID Tree to determine product hierarchy @@ -209,6 +237,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Project() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Project_ID(), get_TrxName()); } + /** Set Project Tree. @param AD_Tree_Project_ID Tree to determine project hierarchy @@ -232,6 +265,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_SalesRegion() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_SalesRegion_ID(), get_TrxName()); } + /** Set Sales Region Tree. @param AD_Tree_SalesRegion_ID Tree to determine sales regional hierarchy @@ -255,6 +293,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_AcctSchema getC_AcctSchema1() throws RuntimeException + { + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema1_ID(), get_TrxName()); } + /** Set Primary Accounting Schema. @param C_AcctSchema1_ID Primary rules for accounting @@ -278,6 +321,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_BPartnerCashTrx() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartnerCashTrx_ID(), get_TrxName()); } + /** Set Template B.Partner. @param C_BPartnerCashTrx_ID Business Partner used for creating new Business Partners on the fly @@ -301,21 +349,10 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID @@ -340,6 +377,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_UOM getC_UOM_Length() throws RuntimeException + { + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_Length_ID(), get_TrxName()); } + /** Set UOM for Length. @param C_UOM_Length_ID Standard Unit of Measure for Length @@ -363,6 +405,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_UOM getC_UOM_Time() throws RuntimeException + { + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_Time_ID(), get_TrxName()); } + /** Set UOM for Time. @param C_UOM_Time_ID Standard Unit of Measure for Time @@ -386,6 +433,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_UOM getC_UOM_Volume() throws RuntimeException + { + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_Volume_ID(), get_TrxName()); } + /** Set UOM for Volume. @param C_UOM_Volume_ID Standard Unit of Measure for Volume @@ -409,6 +461,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_C_UOM getC_UOM_Weight() throws RuntimeException + { + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_Weight_ID(), get_TrxName()); } + /** Set UOM for Weight. @param C_UOM_Weight_ID Standard Unit of Measure for Weight @@ -536,6 +593,11 @@ public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent return ii.intValue(); } + public I_M_Product getM_ProductFreight() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductFreight_ID(), get_TrxName()); } + /** Set Product for Freight. @param M_ProductFreight_ID Product for Freight */ public void setM_ProductFreight_ID (int M_ProductFreight_ID) diff --git a/base/src/org/compiere/model/X_AD_ClientShare.java b/base/src/org/compiere/model/X_AD_ClientShare.java index 286bb19c43..53cca4d84d 100644 --- a/base/src/org/compiere/model/X_AD_ClientShare.java +++ b/base/src/org/compiere/model/X_AD_ClientShare.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ClientShare @@ -98,21 +96,10 @@ public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persiste return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_Color.java b/base/src/org/compiere/model/X_AD_Color.java index d355bc53dd..7e2e107581 100644 --- a/base/src/org/compiere/model/X_AD_Color.java +++ b/base/src/org/compiere/model/X_AD_Color.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -105,21 +103,10 @@ public class X_AD_Color extends PO implements I_AD_Color, I_Persistent return ii.intValue(); } - public I_AD_Image getAD_Image() throws RuntimeException + public I_AD_Image getAD_Image() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Image.Table_Name); - I_AD_Image result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name) + .getPO(getAD_Image_ID(), get_TrxName()); } /** Set Image. @param AD_Image_ID diff --git a/base/src/org/compiere/model/X_AD_Column.java b/base/src/org/compiere/model/X_AD_Column.java index 49da11e096..9511b2169e 100644 --- a/base/src/org/compiere/model/X_AD_Column.java +++ b/base/src/org/compiere/model/X_AD_Column.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -119,21 +117,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } - public I_AD_Element getAD_Element() throws RuntimeException + public I_AD_Element getAD_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Element.Table_Name); - I_AD_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Element)MTable.get(getCtx(), I_AD_Element.Table_Name) + .getPO(getAD_Element_ID(), get_TrxName()); } /** Set System Element. @param AD_Element_ID @@ -158,21 +145,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -197,6 +173,11 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -220,6 +201,11 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference_Value() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_Value_ID(), get_TrxName()); } + /** Set Reference Key. @param AD_Reference_Value_ID Required to specify, if data type is Table or List @@ -243,21 +229,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -282,21 +257,10 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent return ii.intValue(); } - public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException + public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Val_Rule.Table_Name); - I_AD_Val_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Val_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Val_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Val_Rule)MTable.get(getCtx(), I_AD_Val_Rule.Table_Name) + .getPO(getAD_Val_Rule_ID(), get_TrxName()); } /** Set Dynamic Validation. @param AD_Val_Rule_ID 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 9980574bfb..6799535e78 100644 --- a/base/src/org/compiere/model/X_AD_Column_Access.java +++ b/base/src/org/compiere/model/X_AD_Column_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Column_Access @@ -76,21 +74,10 @@ public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Pers return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -123,21 +110,10 @@ public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getAD_Column_ID())); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -162,21 +138,10 @@ public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Pers return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java index 093f1e3d2f..58c69aadf3 100644 --- a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java +++ b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_DesktopWorkbench @@ -75,21 +73,10 @@ public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, return sb.toString(); } - public I_AD_Desktop getAD_Desktop() throws RuntimeException + public I_AD_Desktop getAD_Desktop() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Desktop.Table_Name); - I_AD_Desktop result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Desktop)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Desktop_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Desktop)MTable.get(getCtx(), I_AD_Desktop.Table_Name) + .getPO(getAD_Desktop_ID(), get_TrxName()); } /** Set Desktop. @param AD_Desktop_ID @@ -134,21 +121,10 @@ public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, return ii.intValue(); } - public I_AD_Workbench getAD_Workbench() throws RuntimeException + public I_AD_Workbench getAD_Workbench() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workbench.Table_Name); - I_AD_Workbench result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workbench)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workbench_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workbench)MTable.get(getCtx(), I_AD_Workbench.Table_Name) + .getPO(getAD_Workbench_ID(), get_TrxName()); } /** Set Workbench. @param AD_Workbench_ID 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 cf72106fba..3f4be1098b 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Document_Action_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act return sb.toString(); } - public I_AD_Ref_List getAD_Ref_List() throws RuntimeException + public I_AD_Ref_List getAD_Ref_List() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Ref_List.Table_Name); - I_AD_Ref_List result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Ref_List)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Ref_List_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Ref_List)MTable.get(getCtx(), I_AD_Ref_List.Table_Name) + .getPO(getAD_Ref_List_ID(), get_TrxName()); } /** Set Reference List. @param AD_Ref_List_ID @@ -112,21 +99,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -151,21 +127,10 @@ public class X_AD_Document_Action_Access extends PO implements I_AD_Document_Act return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID diff --git a/base/src/org/compiere/model/X_AD_Field.java b/base/src/org/compiere/model/X_AD_Field.java index c8ab185d3f..b996c17b39 100644 --- a/base/src/org/compiere/model/X_AD_Field.java +++ b/base/src/org/compiere/model/X_AD_Field.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -88,21 +86,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -150,21 +137,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return ii.intValue(); } - public I_AD_FieldGroup getAD_FieldGroup() throws RuntimeException + public I_AD_FieldGroup getAD_FieldGroup() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_FieldGroup.Table_Name); - I_AD_FieldGroup result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_FieldGroup)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_FieldGroup_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_FieldGroup)MTable.get(getCtx(), I_AD_FieldGroup.Table_Name) + .getPO(getAD_FieldGroup_ID(), get_TrxName()); } /** Set Field Group. @param AD_FieldGroup_ID @@ -189,6 +165,11 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -212,6 +193,11 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference_Value() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_Value_ID(), get_TrxName()); } + /** Set Reference Key. @param AD_Reference_Value_ID Required to specify, if data type is Table or List @@ -235,21 +221,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return ii.intValue(); } - public I_AD_Tab getAD_Tab() throws RuntimeException + public I_AD_Tab getAD_Tab() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tab.Table_Name); - I_AD_Tab result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getAD_Tab_ID(), get_TrxName()); } /** Set Tab. @param AD_Tab_ID @@ -274,21 +249,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return ii.intValue(); } - public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException + public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Val_Rule.Table_Name); - I_AD_Val_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Val_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Val_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Val_Rule)MTable.get(getCtx(), I_AD_Val_Rule.Table_Name) + .getPO(getAD_Val_Rule_ID(), get_TrxName()); } /** Set Dynamic Validation. @param AD_Val_Rule_ID @@ -421,6 +385,11 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent return (String)get_Value(COLUMNNAME_Help); } + public I_AD_Tab getIncluded_Tab() throws RuntimeException + { + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getIncluded_Tab_ID(), get_TrxName()); } + /** Set Included Tab. @param Included_Tab_ID Included Tab in this Tab (Master Dateail) diff --git a/base/src/org/compiere/model/X_AD_Find.java b/base/src/org/compiere/model/X_AD_Find.java index bdd1e397ab..f8f60d5204 100644 --- a/base/src/org/compiere/model/X_AD_Find.java +++ b/base/src/org/compiere/model/X_AD_Find.java @@ -79,6 +79,11 @@ public class X_AD_Find extends PO implements I_AD_Find, I_Persistent return sb.toString(); } + public I_AD_Column getAD_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } + /** Set Column. @param AD_Column_ID Column in the table 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 09f46a7e5d..93be8b0c76 100644 --- a/base/src/org/compiere/model/X_AD_Form_Access.java +++ b/base/src/org/compiere/model/X_AD_Form_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Form_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Form_Access extends PO implements I_AD_Form_Access, I_Persiste return sb.toString(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -112,21 +99,10 @@ public class X_AD_Form_Access extends PO implements I_AD_Form_Access, I_Persiste return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID diff --git a/base/src/org/compiere/model/X_AD_HouseKeeping.java b/base/src/org/compiere/model/X_AD_HouseKeeping.java index ff757650a3..65caf22694 100644 --- a/base/src/org/compiere/model/X_AD_HouseKeeping.java +++ b/base/src/org/compiere/model/X_AD_HouseKeeping.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_HouseKeeping @@ -96,21 +94,10 @@ public class X_AD_HouseKeeping extends PO implements I_AD_HouseKeeping, I_Persis return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_ImpFormat.java b/base/src/org/compiere/model/X_AD_ImpFormat.java index ee05b37b40..a313cd5488 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ImpFormat @@ -96,21 +94,10 @@ public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID 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 201ad2d410..d116799971 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat_Row.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat_Row.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ImpFormat_Row @@ -81,21 +79,10 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -120,21 +107,10 @@ public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Pers return ii.intValue(); } - public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException + public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ImpFormat.Table_Name); - I_AD_ImpFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ImpFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ImpFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ImpFormat)MTable.get(getCtx(), I_AD_ImpFormat.Table_Name) + .getPO(getAD_ImpFormat_ID(), get_TrxName()); } /** Set Import Format. @param AD_ImpFormat_ID Import Format */ diff --git a/base/src/org/compiere/model/X_AD_InfoColumn.java b/base/src/org/compiere/model/X_AD_InfoColumn.java index 80f58586c0..8b71074dc5 100644 --- a/base/src/org/compiere/model/X_AD_InfoColumn.java +++ b/base/src/org/compiere/model/X_AD_InfoColumn.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_InfoColumn @@ -81,21 +79,10 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent return sb.toString(); } - public I_AD_Element getAD_Element() throws RuntimeException + public I_AD_Element getAD_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Element.Table_Name); - I_AD_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Element)MTable.get(getCtx(), I_AD_Element.Table_Name) + .getPO(getAD_Element_ID(), get_TrxName()); } /** Set System Element. @param AD_Element_ID @@ -143,21 +130,10 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent return ii.intValue(); } - public I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException + public I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_InfoWindow.Table_Name); - I_AD_InfoWindow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_InfoWindow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_InfoWindow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_InfoWindow)MTable.get(getCtx(), I_AD_InfoWindow.Table_Name) + .getPO(getAD_InfoWindow_ID(), get_TrxName()); } /** Set Info Window. @param AD_InfoWindow_ID @@ -182,6 +158,11 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation diff --git a/base/src/org/compiere/model/X_AD_InfoWindow.java b/base/src/org/compiere/model/X_AD_InfoWindow.java index d7a7c8c516..b4d0307d18 100644 --- a/base/src/org/compiere/model/X_AD_InfoWindow.java +++ b/base/src/org/compiere/model/X_AD_InfoWindow.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_InfoWindow @@ -100,21 +98,10 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_Issue.java b/base/src/org/compiere/model/X_AD_Issue.java index eedc4b5c54..60b2ad3d5d 100644 --- a/base/src/org/compiere/model/X_AD_Issue.java +++ b/base/src/org/compiere/model/X_AD_Issue.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Issue @@ -85,21 +83,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -124,21 +111,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -186,21 +162,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -225,21 +190,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -606,21 +560,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return (String)get_Value(COLUMNNAME_ProfileInfo); } - public I_R_IssueKnown getR_IssueKnown() throws RuntimeException + public I_R_IssueKnown getR_IssueKnown() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueKnown.Table_Name); - I_R_IssueKnown result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueKnown)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueKnown_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueKnown)MTable.get(getCtx(), I_R_IssueKnown.Table_Name) + .getPO(getR_IssueKnown_ID(), get_TrxName()); } /** Set Known Issue. @param R_IssueKnown_ID @@ -645,21 +588,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_R_IssueProject getR_IssueProject() throws RuntimeException + public I_R_IssueProject getR_IssueProject() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueProject.Table_Name); - I_R_IssueProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueProject)MTable.get(getCtx(), I_R_IssueProject.Table_Name) + .getPO(getR_IssueProject_ID(), get_TrxName()); } /** Set Issue Project. @param R_IssueProject_ID @@ -684,21 +616,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_R_IssueSystem getR_IssueSystem() throws RuntimeException + public I_R_IssueSystem getR_IssueSystem() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueSystem.Table_Name); - I_R_IssueSystem result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueSystem)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueSystem_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueSystem)MTable.get(getCtx(), I_R_IssueSystem.Table_Name) + .getPO(getR_IssueSystem_ID(), get_TrxName()); } /** Set Issue System. @param R_IssueSystem_ID @@ -723,21 +644,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_R_IssueUser getR_IssueUser() throws RuntimeException + public I_R_IssueUser getR_IssueUser() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueUser.Table_Name); - I_R_IssueUser result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueUser)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueUser_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueUser)MTable.get(getCtx(), I_R_IssueUser.Table_Name) + .getPO(getR_IssueUser_ID(), get_TrxName()); } /** Set IssueUser. @param R_IssueUser_ID @@ -762,21 +672,10 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent return ii.intValue(); } - public I_R_Request getR_Request() throws RuntimeException + public I_R_Request getR_Request() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Request.Table_Name); - I_R_Request result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Request)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Request_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID diff --git a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java index a380d5fd75..37f2d059cb 100644 --- a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java +++ b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_LabelPrinterFunction @@ -75,21 +73,10 @@ public class X_AD_LabelPrinterFunction extends PO implements I_AD_LabelPrinterFu return sb.toString(); } - public I_AD_LabelPrinter getAD_LabelPrinter() throws RuntimeException + public I_AD_LabelPrinter getAD_LabelPrinter() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_LabelPrinter.Table_Name); - I_AD_LabelPrinter result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_LabelPrinter)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_LabelPrinter_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_LabelPrinter)MTable.get(getCtx(), I_AD_LabelPrinter.Table_Name) + .getPO(getAD_LabelPrinter_ID(), get_TrxName()); } /** Set Label printer. @param AD_LabelPrinter_ID diff --git a/base/src/org/compiere/model/X_AD_LdapAccess.java b/base/src/org/compiere/model/X_AD_LdapAccess.java index 7cfcb15434..0eb292a5c7 100755 --- a/base/src/org/compiere/model/X_AD_LdapAccess.java +++ b/base/src/org/compiere/model/X_AD_LdapAccess.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_LdapAccess @@ -97,21 +95,10 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent return ii.intValue(); } - public I_AD_LdapProcessor getAD_LdapProcessor() throws RuntimeException + public I_AD_LdapProcessor getAD_LdapProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_LdapProcessor.Table_Name); - I_AD_LdapProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_LdapProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_LdapProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_LdapProcessor)MTable.get(getCtx(), I_AD_LdapProcessor.Table_Name) + .getPO(getAD_LdapProcessor_ID(), get_TrxName()); } /** Set Ldap Processor. @param AD_LdapProcessor_ID @@ -136,21 +123,10 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -224,21 +200,10 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent return false; } - public I_R_InterestArea getR_InterestArea() throws RuntimeException + public I_R_InterestArea getR_InterestArea() throws RuntimeException { - Class clazz = MTable.getClass(I_R_InterestArea.Table_Name); - I_R_InterestArea result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_InterestArea)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_InterestArea_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_InterestArea)MTable.get(getCtx(), I_R_InterestArea.Table_Name) + .getPO(getR_InterestArea_ID(), get_TrxName()); } /** Set Interest Area. @param R_InterestArea_ID diff --git a/base/src/org/compiere/model/X_AD_LdapProcessor.java b/base/src/org/compiere/model/X_AD_LdapProcessor.java index b5af9f86bf..13c9f7e484 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessor.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessor.java @@ -237,6 +237,11 @@ public class X_AD_LdapProcessor extends PO implements I_AD_LdapProcessor, I_Pers return false; } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java index 7c7263c0a0..29923e476f 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_LdapProcessorLog * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_LdapProcessorLog extends PO implements I_AD_LdapProcessorLog, return sb.toString(); } - public I_AD_LdapProcessor getAD_LdapProcessor() throws RuntimeException + public I_AD_LdapProcessor getAD_LdapProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_LdapProcessor.Table_Name); - I_AD_LdapProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_LdapProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_LdapProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_LdapProcessor)MTable.get(getCtx(), I_AD_LdapProcessor.Table_Name) + .getPO(getAD_LdapProcessor_ID(), get_TrxName()); } /** Set Ldap Processor. @param AD_LdapProcessor_ID diff --git a/base/src/org/compiere/model/X_AD_Menu.java b/base/src/org/compiere/model/X_AD_Menu.java index 9aacb6adcb..88d2dc3bfb 100644 --- a/base/src/org/compiere/model/X_AD_Menu.java +++ b/base/src/org/compiere/model/X_AD_Menu.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Menu @@ -113,21 +111,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return (String)get_Value(COLUMNNAME_Action); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -175,21 +162,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -214,21 +190,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return ii.intValue(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID @@ -253,21 +218,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -292,21 +246,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return ii.intValue(); } - public I_AD_Workbench getAD_Workbench() throws RuntimeException + public I_AD_Workbench getAD_Workbench() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workbench.Table_Name); - I_AD_Workbench result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workbench)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workbench_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workbench)MTable.get(getCtx(), I_AD_Workbench.Table_Name) + .getPO(getAD_Workbench_ID(), get_TrxName()); } /** Set Workbench. @param AD_Workbench_ID @@ -331,21 +274,10 @@ public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID diff --git a/base/src/org/compiere/model/X_AD_Note.java b/base/src/org/compiere/model/X_AD_Note.java index e7057a8882..647c33e844 100644 --- a/base/src/org/compiere/model/X_AD_Note.java +++ b/base/src/org/compiere/model/X_AD_Note.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Note @@ -73,6 +71,11 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent return sb.toString(); } + public I_AD_Message getAD_Message() throws RuntimeException + { + return (I_AD_Message)MTable.get(getCtx(), I_AD_Message.Table_Name) + .getPO(getAD_Message_ID(), get_TrxName()); } + /** Set Message. @param AD_Message_ID System Message @@ -127,21 +130,10 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -166,21 +158,10 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -205,21 +186,10 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent return ii.intValue(); } - public I_AD_WF_Activity getAD_WF_Activity() throws RuntimeException + public I_AD_WF_Activity getAD_WF_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Activity.Table_Name); - I_AD_WF_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Activity)MTable.get(getCtx(), I_AD_WF_Activity.Table_Name) + .getPO(getAD_WF_Activity_ID(), get_TrxName()); } /** Set Workflow Activity. @param AD_WF_Activity_ID diff --git a/base/src/org/compiere/model/X_AD_OrgInfo.java b/base/src/org/compiere/model/X_AD_OrgInfo.java index dfa952e959..1787b9889f 100644 --- a/base/src/org/compiere/model/X_AD_OrgInfo.java +++ b/base/src/org/compiere/model/X_AD_OrgInfo.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_OrgInfo * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return sb.toString(); } - public I_AD_OrgType getAD_OrgType() throws RuntimeException + public I_AD_OrgType getAD_OrgType() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_OrgType.Table_Name); - I_AD_OrgType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_OrgType)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_OrgType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_OrgType)MTable.get(getCtx(), I_AD_OrgType.Table_Name) + .getPO(getAD_OrgType_ID(), get_TrxName()); } /** Set Organization Type. @param AD_OrgType_ID @@ -113,21 +100,10 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return ii.intValue(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID @@ -152,6 +128,11 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -175,6 +156,11 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return ii.intValue(); } + public I_M_Warehouse getDropShip_Warehouse() throws RuntimeException + { + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getDropShip_Warehouse_ID(), get_TrxName()); } + /** Set Drop Ship Warehouse. @param DropShip_Warehouse_ID The (logical) warehouse to use for recording drop ship receipts and shipments. @@ -235,21 +221,10 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -314,6 +289,11 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return (String)get_Value(COLUMNNAME_ReceiptFooterMsg); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval @@ -354,6 +334,11 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return (String)get_Value(COLUMNNAME_TaxID); } + public I_C_Bank getTransferBank() throws RuntimeException + { + return (I_C_Bank)MTable.get(getCtx(), I_C_Bank.Table_Name) + .getPO(getTransferBank_ID(), get_TrxName()); } + /** Set Bank for transfers. @param TransferBank_ID Bank account depending on currency will be used from this bank for doing transfers @@ -377,6 +362,11 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent return ii.intValue(); } + public I_C_CashBook getTransferCashBook() throws RuntimeException + { + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getTransferCashBook_ID(), get_TrxName()); } + /** Set CashBook for transfers. @param TransferCashBook_ID CashBook for transfers */ public void setTransferCashBook_ID (int TransferCashBook_ID) diff --git a/base/src/org/compiere/model/X_AD_OrgType.java b/base/src/org/compiere/model/X_AD_OrgType.java index 4bd83aa8b1..ff6c768623 100644 --- a/base/src/org/compiere/model/X_AD_OrgType.java +++ b/base/src/org/compiere/model/X_AD_OrgType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_OrgType @@ -96,21 +94,10 @@ public class X_AD_OrgType extends PO implements I_AD_OrgType, I_Persistent return ii.intValue(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID diff --git a/base/src/org/compiere/model/X_AD_PInstance.java b/base/src/org/compiere/model/X_AD_PInstance.java index 6251bfc74a..ffcef228c2 100644 --- a/base/src/org/compiere/model/X_AD_PInstance.java +++ b/base/src/org/compiere/model/X_AD_PInstance.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PInstance @@ -106,21 +104,10 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getAD_PInstance_ID())); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -145,21 +132,10 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_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 6a895dcd7c..677a10ff5d 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Log.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Log.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for AD_PInstance_Log @@ -75,21 +73,10 @@ public class X_AD_PInstance_Log extends PO implements I_AD_PInstance_Log, I_Pers return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID 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 1611aaae8c..5a3e19a802 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Para.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Para.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,21 +74,10 @@ public class X_AD_PInstance_Para extends PO implements I_AD_PInstance_Para, I_Pe return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID 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 cfad9751b4..0bda2abde0 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Package_Exp_Common @@ -72,21 +70,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return sb.toString(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -111,21 +98,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException + public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ImpFormat.Table_Name); - I_AD_ImpFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ImpFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ImpFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ImpFormat)MTable.get(getCtx(), I_AD_ImpFormat.Table_Name) + .getPO(getAD_ImpFormat_ID(), get_TrxName()); } /** Set Import Format. @param AD_ImpFormat_ID Import Format */ @@ -147,21 +123,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Menu getAD_Menu() throws RuntimeException + public I_AD_Menu getAD_Menu() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Menu.Table_Name); - I_AD_Menu result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Menu)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Menu_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Menu)MTable.get(getCtx(), I_AD_Menu.Table_Name) + .getPO(getAD_Menu_ID(), get_TrxName()); } /** Set Menu. @param AD_Menu_ID @@ -214,21 +179,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_Common_ID())); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -253,21 +207,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_ReportView getAD_ReportView() throws RuntimeException + public I_AD_ReportView getAD_ReportView() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReportView.Table_Name); - I_AD_ReportView result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReportView)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReportView_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReportView)MTable.get(getCtx(), I_AD_ReportView.Table_Name) + .getPO(getAD_ReportView_ID(), get_TrxName()); } /** Set Report View. @param AD_ReportView_ID @@ -292,21 +235,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -331,21 +263,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -370,21 +291,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -409,21 +319,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Workbench getAD_Workbench() throws RuntimeException + public I_AD_Workbench getAD_Workbench() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workbench.Table_Name); - I_AD_Workbench result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workbench)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workbench_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workbench)MTable.get(getCtx(), I_AD_Workbench.Table_Name) + .getPO(getAD_Workbench_ID(), get_TrxName()); } /** Set Workbench. @param AD_Workbench_ID @@ -448,21 +347,10 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_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 7a175a3db3..c8d0bfe771 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Package_Exp_Detail @@ -76,21 +74,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return sb.toString(); } - public I_AD_EntityType getAD_EntityType() throws RuntimeException + public I_AD_EntityType getAD_EntityType() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_EntityType.Table_Name); - I_AD_EntityType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_EntityType)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_EntityType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_EntityType)MTable.get(getCtx(), I_AD_EntityType.Table_Name) + .getPO(getAD_EntityType_ID(), get_TrxName()); } /** Set Entity Type. @param AD_EntityType_ID @@ -115,21 +102,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -154,21 +130,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException + public I_AD_ImpFormat getAD_ImpFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ImpFormat.Table_Name); - I_AD_ImpFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ImpFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ImpFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ImpFormat)MTable.get(getCtx(), I_AD_ImpFormat.Table_Name) + .getPO(getAD_ImpFormat_ID(), get_TrxName()); } /** Set Import Format. @param AD_ImpFormat_ID Import Format */ @@ -190,21 +155,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Menu getAD_Menu() throws RuntimeException + public I_AD_Menu getAD_Menu() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Menu.Table_Name); - I_AD_Menu result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Menu)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Menu_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Menu)MTable.get(getCtx(), I_AD_Menu.Table_Name) + .getPO(getAD_Menu_ID(), get_TrxName()); } /** Set Menu. @param AD_Menu_ID @@ -229,21 +183,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Message getAD_Message() throws RuntimeException + public I_AD_Message getAD_Message() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Message.Table_Name); - I_AD_Message result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Message)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Message_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Message)MTable.get(getCtx(), I_AD_Message.Table_Name) + .getPO(getAD_Message_ID(), get_TrxName()); } /** Set Message. @param AD_Message_ID @@ -268,21 +211,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_ModelValidator getAD_ModelValidator() throws RuntimeException + public I_AD_ModelValidator getAD_ModelValidator() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ModelValidator.Table_Name); - I_AD_ModelValidator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ModelValidator)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ModelValidator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ModelValidator)MTable.get(getCtx(), I_AD_ModelValidator.Table_Name) + .getPO(getAD_ModelValidator_ID(), get_TrxName()); } /** Set Model Validator. @param AD_ModelValidator_ID Model Validator */ @@ -380,21 +312,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -419,21 +340,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -458,21 +368,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Reference getAD_Reference() throws RuntimeException + public I_AD_Reference getAD_Reference() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Reference.Table_Name); - I_AD_Reference result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Reference)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Reference_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } /** Set Reference. @param AD_Reference_ID @@ -497,21 +396,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_ReportView getAD_ReportView() throws RuntimeException + public I_AD_ReportView getAD_ReportView() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReportView.Table_Name); - I_AD_ReportView result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReportView)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReportView_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReportView)MTable.get(getCtx(), I_AD_ReportView.Table_Name) + .getPO(getAD_ReportView_ID(), get_TrxName()); } /** Set Report View. @param AD_ReportView_ID @@ -536,21 +424,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -575,21 +452,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -637,21 +503,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -676,21 +531,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Workbench getAD_Workbench() throws RuntimeException + public I_AD_Workbench getAD_Workbench() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workbench.Table_Name); - I_AD_Workbench result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workbench)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workbench_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workbench)MTable.get(getCtx(), I_AD_Workbench.Table_Name) + .getPO(getAD_Workbench_ID(), get_TrxName()); } /** Set Workbench. @param AD_Workbench_ID @@ -715,21 +559,10 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID 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 72f8f2076f..fadc627539 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 @@ -72,6 +72,11 @@ public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Back return sb.toString(); } + public I_AD_Column getAD_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } + /** Set Column. @param AD_Column_ID Column in the table @@ -191,6 +196,11 @@ public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Back return (String)get_Value(COLUMNNAME_AD_Package_Imp_Org_Dir); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation diff --git a/base/src/org/compiere/model/X_AD_Preference.java b/base/src/org/compiere/model/X_AD_Preference.java index 701c848210..24be916010 100644 --- a/base/src/org/compiere/model/X_AD_Preference.java +++ b/base/src/org/compiere/model/X_AD_Preference.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Preference @@ -97,21 +95,10 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID diff --git a/base/src/org/compiere/model/X_AD_PrintForm.java b/base/src/org/compiere/model/X_AD_PrintForm.java index aafc0333b3..a8e458060e 100644 --- a/base/src/org/compiere/model/X_AD_PrintForm.java +++ b/base/src/org/compiere/model/X_AD_PrintForm.java @@ -111,6 +111,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return (String)get_Value(COLUMNNAME_Description); } + public I_R_MailText getDistrib_Order_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getDistrib_Order_MailText_ID(), get_TrxName()); } + /** Set Distribution Order Mail Text. @param Distrib_Order_MailText_ID Email text used for sending Distribution Order @@ -134,6 +139,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getDistrib_Order_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getDistrib_Order_PrintFormat_ID(), get_TrxName()); } + /** Set Distribution Order Print Format. @param Distrib_Order_PrintFormat_ID Print Format for printing Distribution Order @@ -157,6 +167,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_R_MailText getInvoice_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getInvoice_MailText_ID(), get_TrxName()); } + /** Set Invoice Mail Text. @param Invoice_MailText_ID Email text used for sending invoices @@ -180,6 +195,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getInvoice_PrintFormat_ID(), get_TrxName()); } + /** Set Invoice Print Format. @param Invoice_PrintFormat_ID Print Format for printing Invoices @@ -203,6 +223,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_R_MailText getManuf_Order_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getManuf_Order_MailText_ID(), get_TrxName()); } + /** Set Manufacturing Order Mail Text. @param Manuf_Order_MailText_ID Email text used for sending Manufacturing Order @@ -226,6 +251,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getManuf_Order_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getManuf_Order_PrintFormat_ID(), get_TrxName()); } + /** Set Manufacturing Order Print Format. @param Manuf_Order_PrintFormat_ID Print Format for printing Manufacturing Order @@ -274,6 +304,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_R_MailText getOrder_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getOrder_MailText_ID(), get_TrxName()); } + /** Set Order Mail Text. @param Order_MailText_ID Email text used for sending order acknowledgements or quotations @@ -297,6 +332,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getOrder_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getOrder_PrintFormat_ID(), get_TrxName()); } + /** Set Order Print Format. @param Order_PrintFormat_ID Print Format for Orders, Quotes, Offers @@ -320,6 +360,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_R_MailText getProject_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getProject_MailText_ID(), get_TrxName()); } + /** Set Project Mail Text. @param Project_MailText_ID Standard text for Project EMails @@ -343,6 +388,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getProject_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getProject_PrintFormat_ID(), get_TrxName()); } + /** Set Project Print Format. @param Project_PrintFormat_ID Standard Project Print Format @@ -366,6 +416,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_R_MailText getRemittance_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getRemittance_MailText_ID(), get_TrxName()); } + /** Set Remittance Mail Text. @param Remittance_MailText_ID Email text used for sending payment remittances @@ -389,6 +444,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getRemittance_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getRemittance_PrintFormat_ID(), get_TrxName()); } + /** Set Remittance Print Format. @param Remittance_PrintFormat_ID Print Format for separate Remittances @@ -412,6 +472,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_R_MailText getShipment_MailText() throws RuntimeException + { + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getShipment_MailText_ID(), get_TrxName()); } + /** Set Shipment Mail Text. @param Shipment_MailText_ID Email text used for sending delivery notes @@ -435,6 +500,11 @@ public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent return ii.intValue(); } + public I_AD_PrintFormat getShipment_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getShipment_PrintFormat_ID(), get_TrxName()); } + /** Set Shipment Print Format. @param Shipment_PrintFormat_ID Print Format for Shipments, Receipts, Pick Lists diff --git a/base/src/org/compiere/model/X_AD_PrintFormat.java b/base/src/org/compiere/model/X_AD_PrintFormat.java index d62cca6e1e..f1d1458423 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintFormat.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PrintFormat @@ -86,21 +84,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return sb.toString(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID @@ -125,21 +112,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return ii.intValue(); } - public I_AD_PrintFont getAD_PrintFont() throws RuntimeException + public I_AD_PrintFont getAD_PrintFont() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFont.Table_Name); - I_AD_PrintFont result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFont)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFont_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name) + .getPO(getAD_PrintFont_ID(), get_TrxName()); } /** Set Print Font. @param AD_PrintFont_ID @@ -187,21 +163,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return ii.intValue(); } - public I_AD_PrintPaper getAD_PrintPaper() throws RuntimeException + public I_AD_PrintPaper getAD_PrintPaper() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintPaper.Table_Name); - I_AD_PrintPaper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintPaper)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintPaper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintPaper)MTable.get(getCtx(), I_AD_PrintPaper.Table_Name) + .getPO(getAD_PrintPaper_ID(), get_TrxName()); } /** Set Print Paper. @param AD_PrintPaper_ID @@ -226,21 +191,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return ii.intValue(); } - public I_AD_PrintTableFormat getAD_PrintTableFormat() throws RuntimeException + public I_AD_PrintTableFormat getAD_PrintTableFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintTableFormat.Table_Name); - I_AD_PrintTableFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintTableFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintTableFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintTableFormat)MTable.get(getCtx(), I_AD_PrintTableFormat.Table_Name) + .getPO(getAD_PrintTableFormat_ID(), get_TrxName()); } /** Set Print Table Format. @param AD_PrintTableFormat_ID @@ -265,21 +219,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return ii.intValue(); } - public I_AD_ReportView getAD_ReportView() throws RuntimeException + public I_AD_ReportView getAD_ReportView() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReportView.Table_Name); - I_AD_ReportView result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReportView)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReportView_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReportView)MTable.get(getCtx(), I_AD_ReportView.Table_Name) + .getPO(getAD_ReportView_ID(), get_TrxName()); } /** Set Report View. @param AD_ReportView_ID @@ -304,21 +247,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -541,6 +473,11 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste return false; } + public I_AD_Process getJasperProcess() throws RuntimeException + { + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getJasperProcess_ID(), get_TrxName()); } + /** Set Jasper Process. @param JasperProcess_ID The Jasper Process used by the printengine if any process defined diff --git a/base/src/org/compiere/model/X_AD_PrintFormatItem.java b/base/src/org/compiere/model/X_AD_PrintFormatItem.java index 0b53b9b523..3199064cfb 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormatItem.java +++ b/base/src/org/compiere/model/X_AD_PrintFormatItem.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PrintFormatItem @@ -123,21 +121,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -162,21 +149,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return ii.intValue(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID @@ -201,21 +177,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return ii.intValue(); } - public I_AD_PrintFont getAD_PrintFont() throws RuntimeException + public I_AD_PrintFont getAD_PrintFont() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFont.Table_Name); - I_AD_PrintFont result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFont)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFont_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name) + .getPO(getAD_PrintFont_ID(), get_TrxName()); } /** Set Print Font. @param AD_PrintFont_ID @@ -240,21 +205,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return ii.intValue(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -279,6 +233,11 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return ii.intValue(); } + public I_AD_PrintFormat getAD_PrintFormatChild() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormatChild_ID(), get_TrxName()); } + /** Set Included Print Format. @param AD_PrintFormatChild_ID Print format that is included here. @@ -325,21 +284,10 @@ public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_ return ii.intValue(); } - public I_AD_PrintGraph getAD_PrintGraph() throws RuntimeException + public I_AD_PrintGraph getAD_PrintGraph() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintGraph.Table_Name); - I_AD_PrintGraph result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintGraph)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintGraph_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintGraph)MTable.get(getCtx(), I_AD_PrintGraph.Table_Name) + .getPO(getAD_PrintGraph_ID(), get_TrxName()); } /** Set Graph. @param AD_PrintGraph_ID diff --git a/base/src/org/compiere/model/X_AD_PrintGraph.java b/base/src/org/compiere/model/X_AD_PrintGraph.java index 8cc39d3f27..5afb5874da 100644 --- a/base/src/org/compiere/model/X_AD_PrintGraph.java +++ b/base/src/org/compiere/model/X_AD_PrintGraph.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PrintGraph @@ -78,21 +76,10 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return sb.toString(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -140,6 +127,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return ii.intValue(); } + public I_AD_PrintFormatItem getData_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getData_PrintFormatItem_ID(), get_TrxName()); } + /** Set Data Column. @param Data_PrintFormatItem_ID Data Column for Pie and Line Charts @@ -163,6 +155,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return ii.intValue(); } + public I_AD_PrintFormatItem getData1_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getData1_PrintFormatItem_ID(), get_TrxName()); } + /** Set Data Column 2. @param Data1_PrintFormatItem_ID Data Column for Line Charts @@ -186,6 +183,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return ii.intValue(); } + public I_AD_PrintFormatItem getData2_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getData2_PrintFormatItem_ID(), get_TrxName()); } + /** Set Data Column 3. @param Data2_PrintFormatItem_ID Data Column for Line Charts @@ -209,6 +211,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return ii.intValue(); } + public I_AD_PrintFormatItem getData3_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getData3_PrintFormatItem_ID(), get_TrxName()); } + /** Set Data Column 4. @param Data3_PrintFormatItem_ID Data Column for Line Charts @@ -232,6 +239,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return ii.intValue(); } + public I_AD_PrintFormatItem getData4_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getData4_PrintFormatItem_ID(), get_TrxName()); } + /** Set Data Column 5. @param Data4_PrintFormatItem_ID Data Column for Line Charts @@ -272,6 +284,11 @@ public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent return (String)get_Value(COLUMNNAME_Description); } + public I_AD_PrintFormatItem getDescription_PrintFormatItem() throws RuntimeException + { + return (I_AD_PrintFormatItem)MTable.get(getCtx(), I_AD_PrintFormatItem.Table_Name) + .getPO(getDescription_PrintFormatItem_ID(), get_TrxName()); } + /** Set Description Column. @param Description_PrintFormatItem_ID Description Column for Pie/Line/Bar Charts diff --git a/base/src/org/compiere/model/X_AD_PrintLabel.java b/base/src/org/compiere/model/X_AD_PrintLabel.java index 8be7d01cab..0b10b62723 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabel.java +++ b/base/src/org/compiere/model/X_AD_PrintLabel.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PrintLabel @@ -124,21 +122,10 @@ public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_AD_PrintLabelLine.java b/base/src/org/compiere/model/X_AD_PrintLabelLine.java index 991fb57cc0..27f7ba6d5a 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabelLine.java +++ b/base/src/org/compiere/model/X_AD_PrintLabelLine.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_PrintLabelLine @@ -80,21 +78,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -119,21 +106,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe return ii.intValue(); } - public I_AD_LabelPrinterFunction getAD_LabelPrinterFunction() throws RuntimeException + public I_AD_LabelPrinterFunction getAD_LabelPrinterFunction() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_LabelPrinterFunction.Table_Name); - I_AD_LabelPrinterFunction result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_LabelPrinterFunction)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_LabelPrinterFunction_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_LabelPrinterFunction)MTable.get(getCtx(), I_AD_LabelPrinterFunction.Table_Name) + .getPO(getAD_LabelPrinterFunction_ID(), get_TrxName()); } /** Set Label printer Function. @param AD_LabelPrinterFunction_ID @@ -158,21 +134,10 @@ public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Pe return ii.intValue(); } - public I_AD_PrintLabel getAD_PrintLabel() throws RuntimeException + public I_AD_PrintLabel getAD_PrintLabel() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintLabel.Table_Name); - I_AD_PrintLabel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintLabel)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintLabel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintLabel)MTable.get(getCtx(), I_AD_PrintLabel.Table_Name) + .getPO(getAD_PrintLabel_ID(), get_TrxName()); } /** Set Print Label. @param AD_PrintLabel_ID diff --git a/base/src/org/compiere/model/X_AD_PrintTableFormat.java b/base/src/org/compiere/model/X_AD_PrintTableFormat.java index ab926b07ae..23b1e979f7 100644 --- a/base/src/org/compiere/model/X_AD_PrintTableFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintTableFormat.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -84,21 +82,10 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return sb.toString(); } - public I_AD_Image getAD_Image() throws RuntimeException + public I_AD_Image getAD_Image() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Image.Table_Name); - I_AD_Image result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name) + .getPO(getAD_Image_ID(), get_TrxName()); } /** Set Image. @param AD_Image_ID @@ -214,6 +201,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return (String)get_Value(COLUMNNAME_FooterRight); } + public I_AD_PrintFont getFunct_PrintFont() throws RuntimeException + { + return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name) + .getPO(getFunct_PrintFont_ID(), get_TrxName()); } + /** Set Function Font. @param Funct_PrintFont_ID Function row Font @@ -237,6 +229,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return ii.intValue(); } + public I_AD_PrintColor getFunctBG_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getFunctBG_PrintColor_ID(), get_TrxName()); } + /** Set Function BG Color. @param FunctBG_PrintColor_ID Function Background Color @@ -260,6 +257,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return ii.intValue(); } + public I_AD_PrintColor getFunctFG_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getFunctFG_PrintColor_ID(), get_TrxName()); } + /** Set Function Color. @param FunctFG_PrintColor_ID Function Foreground Color @@ -283,6 +285,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return ii.intValue(); } + public I_AD_PrintFont getHdr_PrintFont() throws RuntimeException + { + return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name) + .getPO(getHdr_PrintFont_ID(), get_TrxName()); } + /** Set Header Row Font. @param Hdr_PrintFont_ID Header row Font @@ -306,6 +313,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return ii.intValue(); } + public I_AD_PrintColor getHdrLine_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getHdrLine_PrintColor_ID(), get_TrxName()); } + /** Set Header Line Color. @param HdrLine_PrintColor_ID Table header row line color @@ -377,6 +389,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return (String)get_Value(COLUMNNAME_HdrStrokeType); } + public I_AD_PrintColor getHdrTextBG_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getHdrTextBG_PrintColor_ID(), get_TrxName()); } + /** Set Header Row BG Color. @param HdrTextBG_PrintColor_ID Background color of header row @@ -400,6 +417,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return ii.intValue(); } + public I_AD_PrintColor getHdrTextFG_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getHdrTextFG_PrintColor_ID(), get_TrxName()); } + /** Set Header Row Color. @param HdrTextFG_PrintColor_ID Foreground color if the table header row @@ -683,6 +705,11 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, return false; } + public I_AD_PrintColor getLine_PrintColor() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getLine_PrintColor_ID(), get_TrxName()); } + /** Set Line Color. @param Line_PrintColor_ID Table line color 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 a46c1b4c19..153a98988a 100644 --- a/base/src/org/compiere/model/X_AD_Private_Access.java +++ b/base/src/org/compiere/model/X_AD_Private_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Private_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -112,21 +99,10 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_AD_Process.java b/base/src/org/compiere/model/X_AD_Process.java index dfc4412ff6..39d18f2b66 100644 --- a/base/src/org/compiere/model/X_AD_Process.java +++ b/base/src/org/compiere/model/X_AD_Process.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Process @@ -112,21 +110,10 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent return (String)get_Value(COLUMNNAME_AccessLevel); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -151,21 +138,10 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent return ii.intValue(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -213,21 +189,10 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent return ii.intValue(); } - public I_AD_ReportView getAD_ReportView() throws RuntimeException + public I_AD_ReportView getAD_ReportView() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReportView.Table_Name); - I_AD_ReportView result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReportView)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReportView_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReportView)MTable.get(getCtx(), I_AD_ReportView.Table_Name) + .getPO(getAD_ReportView_ID(), get_TrxName()); } /** Set Report View. @param AD_ReportView_ID @@ -252,21 +217,10 @@ public class X_AD_Process extends PO implements I_AD_Process, I_Persistent return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID 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 6d6e2a41fb..0bf241a872 100644 --- a/base/src/org/compiere/model/X_AD_Process_Access.java +++ b/base/src/org/compiere/model/X_AD_Process_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Process_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Process_Access extends PO implements I_AD_Process_Access, I_Pe return sb.toString(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -112,21 +99,10 @@ public class X_AD_Process_Access extends PO implements I_AD_Process_Access, I_Pe return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID 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 a27117372b..21b5eb9c52 100644 --- a/base/src/org/compiere/model/X_AD_Process_Para.java +++ b/base/src/org/compiere/model/X_AD_Process_Para.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Process_Para @@ -85,21 +83,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis return sb.toString(); } - public I_AD_Element getAD_Element() throws RuntimeException + public I_AD_Element getAD_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Element.Table_Name); - I_AD_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Element)MTable.get(getCtx(), I_AD_Element.Table_Name) + .getPO(getAD_Element_ID(), get_TrxName()); } /** Set System Element. @param AD_Element_ID @@ -124,21 +111,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -183,6 +159,11 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -206,6 +187,11 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis return ii.intValue(); } + public I_AD_Reference getAD_Reference_Value() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_Value_ID(), get_TrxName()); } + /** Set Reference Key. @param AD_Reference_Value_ID Required to specify, if data type is Table or List @@ -229,21 +215,10 @@ public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persis return ii.intValue(); } - public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException + public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Val_Rule.Table_Name); - I_AD_Val_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Val_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Val_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Val_Rule)MTable.get(getCtx(), I_AD_Val_Rule.Table_Name) + .getPO(getAD_Val_Rule_ID(), get_TrxName()); } /** Set Dynamic Validation. @param AD_Val_Rule_ID 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 e471ec05c2..1e3bbb33b8 100644 --- a/base/src/org/compiere/model/X_AD_Record_Access.java +++ b/base/src/org/compiere/model/X_AD_Record_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Record_Access @@ -79,21 +77,10 @@ public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Pers return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -118,21 +105,10 @@ public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Pers return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_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 a1cda65d44..48bf8fa28e 100644 --- a/base/src/org/compiere/model/X_AD_Ref_List.java +++ b/base/src/org/compiere/model/X_AD_Ref_List.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Ref_List @@ -101,21 +99,10 @@ public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent return ii.intValue(); } - public I_AD_Reference getAD_Reference() throws RuntimeException + public I_AD_Reference getAD_Reference() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Reference.Table_Name); - I_AD_Reference result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Reference)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Reference_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } /** Set Reference. @param AD_Reference_ID 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 7b7c398640..2041153fa8 100644 --- a/base/src/org/compiere/model/X_AD_Ref_Table.java +++ b/base/src/org/compiere/model/X_AD_Ref_Table.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Ref_Table @@ -78,6 +76,11 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent return sb.toString(); } + public I_AD_Column getAD_Disp() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Display(), get_TrxName()); } + /** Set Display column. @param AD_Display Column that will display @@ -98,6 +101,11 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent return ii.intValue(); } + public I_AD_Column getAD_() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Key(), get_TrxName()); } + /** Set Key column. @param AD_Key Unique identifier of a record @@ -118,21 +126,10 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent return ii.intValue(); } - public I_AD_Reference getAD_Reference() throws RuntimeException + public I_AD_Reference getAD_Reference() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Reference.Table_Name); - I_AD_Reference result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Reference)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Reference_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } /** Set Reference. @param AD_Reference_ID @@ -165,21 +162,10 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getAD_Reference_ID())); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -204,21 +190,10 @@ public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID diff --git a/base/src/org/compiere/model/X_AD_Registration.java b/base/src/org/compiere/model/X_AD_Registration.java index 27138f0318..265d68f827 100644 --- a/base/src/org/compiere/model/X_AD_Registration.java +++ b/base/src/org/compiere/model/X_AD_Registration.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Registration * @author Adempiere (generated) @@ -105,21 +103,10 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis return ii.intValue(); } - public I_AD_System getAD_System() throws RuntimeException + public I_AD_System getAD_System() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_System.Table_Name); - I_AD_System result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_System)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_System_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_System)MTable.get(getCtx(), I_AD_System.Table_Name) + .getPO(getAD_System_ID(), get_TrxName()); } /** Set System. @param AD_System_ID @@ -144,21 +131,10 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -183,6 +159,11 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address diff --git a/base/src/org/compiere/model/X_AD_Replication.java b/base/src/org/compiere/model/X_AD_Replication.java index b060d8771a..bb7595e332 100644 --- a/base/src/org/compiere/model/X_AD_Replication.java +++ b/base/src/org/compiere/model/X_AD_Replication.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -107,21 +105,10 @@ public class X_AD_Replication extends PO implements I_AD_Replication, I_Persiste return ii.intValue(); } - public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException + public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReplicationStrategy.Table_Name); - I_AD_ReplicationStrategy result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReplicationStrategy)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReplicationStrategy_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReplicationStrategy)MTable.get(getCtx(), I_AD_ReplicationStrategy.Table_Name) + .getPO(getAD_ReplicationStrategy_ID(), get_TrxName()); } /** Set Replication Strategy. @param AD_ReplicationStrategy_ID diff --git a/base/src/org/compiere/model/X_AD_ReplicationDocument.java b/base/src/org/compiere/model/X_AD_ReplicationDocument.java index 10578e7712..0a5e8bb109 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationDocument.java +++ b/base/src/org/compiere/model/X_AD_ReplicationDocument.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_ReplicationDocument * @author Adempiere (generated) @@ -118,21 +116,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -157,21 +144,10 @@ public class X_AD_ReplicationDocument extends PO implements I_AD_ReplicationDocu return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID diff --git a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java index 5395da932a..f86c0cce70 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java +++ b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ReplicationStrategy @@ -135,21 +133,10 @@ public class X_AD_ReplicationStrategy extends PO implements I_AD_ReplicationStra return (String)get_Value(COLUMNNAME_EntityType); } - public org.compiere.model.I_EXP_Processor getEXP_Processor() throws RuntimeException + public org.compiere.model.I_EXP_Processor getEXP_Processor() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_EXP_Processor.Table_Name); - org.compiere.model.I_EXP_Processor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_EXP_Processor)constructor.newInstance(new Object[] {getCtx(), new Integer(getEXP_Processor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_EXP_Processor)MTable.get(getCtx(), org.compiere.model.I_EXP_Processor.Table_Name) + .getPO(getEXP_Processor_ID(), get_TrxName()); } /** Set Export Processor. @param EXP_Processor_ID Export Processor */ diff --git a/base/src/org/compiere/model/X_AD_ReplicationTable.java b/base/src/org/compiere/model/X_AD_ReplicationTable.java index 77d5ba7f82..dc654a58e5 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationTable.java +++ b/base/src/org/compiere/model/X_AD_ReplicationTable.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ReplicationTable @@ -77,21 +75,10 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, return sb.toString(); } - public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException + public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReplicationStrategy.Table_Name); - I_AD_ReplicationStrategy result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReplicationStrategy)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReplicationStrategy_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReplicationStrategy)MTable.get(getCtx(), I_AD_ReplicationStrategy.Table_Name) + .getPO(getAD_ReplicationStrategy_ID(), get_TrxName()); } /** Set Replication Strategy. @param AD_ReplicationStrategy_ID @@ -147,21 +134,10 @@ public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID 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 e293294884..511ab86f85 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Log.java +++ b/base/src/org/compiere/model/X_AD_Replication_Log.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Replication_Log @@ -98,21 +96,10 @@ public class X_AD_Replication_Log extends PO implements I_AD_Replication_Log, I_ return ii.intValue(); } - public I_AD_Replication_Run getAD_Replication_Run() throws RuntimeException + public I_AD_Replication_Run getAD_Replication_Run() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Replication_Run.Table_Name); - I_AD_Replication_Run result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Replication_Run)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Replication_Run_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Replication_Run)MTable.get(getCtx(), I_AD_Replication_Run.Table_Name) + .getPO(getAD_Replication_Run_ID(), get_TrxName()); } /** Set Replication Run. @param AD_Replication_Run_ID @@ -145,21 +132,10 @@ public class X_AD_Replication_Log extends PO implements I_AD_Replication_Log, I_ return new KeyNamePair(get_ID(), String.valueOf(getAD_Replication_Run_ID())); } - public I_AD_ReplicationTable getAD_ReplicationTable() throws RuntimeException + public I_AD_ReplicationTable getAD_ReplicationTable() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReplicationTable.Table_Name); - I_AD_ReplicationTable result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReplicationTable)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReplicationTable_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReplicationTable)MTable.get(getCtx(), I_AD_ReplicationTable.Table_Name) + .getPO(getAD_ReplicationTable_ID(), get_TrxName()); } /** Set Replication Table. @param AD_ReplicationTable_ID 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 50fce1de00..638f9b0723 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Run.java +++ b/base/src/org/compiere/model/X_AD_Replication_Run.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Replication_Run @@ -76,21 +74,10 @@ public class X_AD_Replication_Run extends PO implements I_AD_Replication_Run, I_ return sb.toString(); } - public I_AD_Replication getAD_Replication() throws RuntimeException + public I_AD_Replication getAD_Replication() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Replication.Table_Name); - I_AD_Replication result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Replication)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Replication_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Replication)MTable.get(getCtx(), I_AD_Replication.Table_Name) + .getPO(getAD_Replication_ID(), get_TrxName()); } /** Set Replication. @param AD_Replication_ID diff --git a/base/src/org/compiere/model/X_AD_ReportView.java b/base/src/org/compiere/model/X_AD_ReportView.java index 3f569453bc..ca47ec0665 100644 --- a/base/src/org/compiere/model/X_AD_ReportView.java +++ b/base/src/org/compiere/model/X_AD_ReportView.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ReportView @@ -99,21 +97,10 @@ public class X_AD_ReportView extends PO implements I_AD_ReportView, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID 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 a2b28895f1..e8ae0d37d7 100644 --- a/base/src/org/compiere/model/X_AD_ReportView_Col.java +++ b/base/src/org/compiere/model/X_AD_ReportView_Col.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_ReportView_Col @@ -75,21 +73,10 @@ public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Pe return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -134,21 +121,10 @@ public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Pe return ii.intValue(); } - public I_AD_ReportView getAD_ReportView() throws RuntimeException + public I_AD_ReportView getAD_ReportView() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_ReportView.Table_Name); - I_AD_ReportView result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_ReportView)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReportView_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_ReportView)MTable.get(getCtx(), I_AD_ReportView.Table_Name) + .getPO(getAD_ReportView_ID(), get_TrxName()); } /** Set Report View. @param AD_ReportView_ID diff --git a/base/src/org/compiere/model/X_AD_Role.java b/base/src/org/compiere/model/X_AD_Role.java index b2d96590d6..248eac57d6 100644 --- a/base/src/org/compiere/model/X_AD_Role.java +++ b/base/src/org/compiere/model/X_AD_Role.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -154,6 +152,11 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Menu() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Menu_ID(), get_TrxName()); } + /** Set Menu Tree. @param AD_Tree_Menu_ID Tree of the menu @@ -177,6 +180,11 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Org() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Org_ID(), get_TrxName()); } + /** Set Organization Tree. @param AD_Tree_Org_ID Tree to determine organizational hierarchy @@ -493,21 +501,10 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent return bd; } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -976,6 +973,11 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent return (String)get_Value(COLUMNNAME_PreferenceType); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval 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 c3e7e67261..c1713cdf75 100644 --- a/base/src/org/compiere/model/X_AD_Role_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_Role_OrgAccess.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Role_OrgAccess * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_Role_OrgAccess extends PO implements I_AD_Role_OrgAccess, I_Pe return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID diff --git a/base/src/org/compiere/model/X_AD_Scheduler.java b/base/src/org/compiere/model/X_AD_Scheduler.java index 79342ec2ba..ec562e3804 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler.java +++ b/base/src/org/compiere/model/X_AD_Scheduler.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Scheduler @@ -82,21 +80,10 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent return sb.toString(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -353,6 +340,11 @@ public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent return (String)get_Value(COLUMNNAME_ScheduleType); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_AD_SchedulerLog.java b/base/src/org/compiere/model/X_AD_SchedulerLog.java index 9d110db0f1..99856def2a 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerLog.java +++ b/base/src/org/compiere/model/X_AD_SchedulerLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_SchedulerLog * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_SchedulerLog extends PO implements I_AD_SchedulerLog, I_Persis return sb.toString(); } - public I_AD_Scheduler getAD_Scheduler() throws RuntimeException + public I_AD_Scheduler getAD_Scheduler() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Scheduler.Table_Name); - I_AD_Scheduler result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Scheduler)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Scheduler_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Scheduler)MTable.get(getCtx(), I_AD_Scheduler.Table_Name) + .getPO(getAD_Scheduler_ID(), get_TrxName()); } /** Set Scheduler. @param AD_Scheduler_ID diff --git a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java index fcbe8b9278..5bb2a216a0 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java +++ b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_SchedulerRecipient @@ -73,21 +71,10 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -112,21 +99,10 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie return ii.intValue(); } - public I_AD_Scheduler getAD_Scheduler() throws RuntimeException + public I_AD_Scheduler getAD_Scheduler() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Scheduler.Table_Name); - I_AD_Scheduler result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Scheduler)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Scheduler_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Scheduler)MTable.get(getCtx(), I_AD_Scheduler.Table_Name) + .getPO(getAD_Scheduler_ID(), get_TrxName()); } /** Set Scheduler. @param AD_Scheduler_ID @@ -174,21 +150,10 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID 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 131abee16e..027dbe8719 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler_Para.java +++ b/base/src/org/compiere/model/X_AD_Scheduler_Para.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Scheduler_Para * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_Scheduler_Para extends PO implements I_AD_Scheduler_Para, I_Pe return sb.toString(); } - public I_AD_Process_Para getAD_Process_Para() throws RuntimeException + public I_AD_Process_Para getAD_Process_Para() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process_Para.Table_Name); - I_AD_Process_Para result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process_Para)MTable.get(getCtx(), I_AD_Process_Para.Table_Name) + .getPO(getAD_Process_Para_ID(), get_TrxName()); } /** Set Process Parameter. @param AD_Process_Para_ID Process Parameter */ @@ -108,21 +95,10 @@ public class X_AD_Scheduler_Para extends PO implements I_AD_Scheduler_Para, I_Pe return ii.intValue(); } - public I_AD_Scheduler getAD_Scheduler() throws RuntimeException + public I_AD_Scheduler getAD_Scheduler() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Scheduler.Table_Name); - I_AD_Scheduler result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Scheduler)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Scheduler_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Scheduler)MTable.get(getCtx(), I_AD_Scheduler.Table_Name) + .getPO(getAD_Scheduler_ID(), get_TrxName()); } /** Set Scheduler. @param AD_Scheduler_ID diff --git a/base/src/org/compiere/model/X_AD_SearchDefinition.java b/base/src/org/compiere/model/X_AD_SearchDefinition.java index 43916fd8b6..a1d745dd29 100644 --- a/base/src/org/compiere/model/X_AD_SearchDefinition.java +++ b/base/src/org/compiere/model/X_AD_SearchDefinition.java @@ -75,6 +75,11 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, return sb.toString(); } + public I_AD_Column getAD_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } + /** Set Column. @param AD_Column_ID Column in the table @@ -118,6 +123,11 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, return ii.intValue(); } + public I_AD_Table getAD_Table() throws RuntimeException + { + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } + /** Set Table. @param AD_Table_ID Database Table information @@ -141,6 +151,11 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, return ii.intValue(); } + public I_AD_Window getAD_Window() throws RuntimeException + { + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } + /** Set Window. @param AD_Window_ID Data entry or display window @@ -239,6 +254,11 @@ public class X_AD_SearchDefinition extends PO implements I_AD_SearchDefinition, return (String)get_Value(COLUMNNAME_Name); } + public I_AD_Window getPO_Window() throws RuntimeException + { + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getPO_Window_ID(), get_TrxName()); } + /** Set PO Window. @param PO_Window_ID Purchase Order Window 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 1247b9f0bc..b733e6f143 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_Audit.java +++ b/base/src/org/compiere/model/X_AD_Sequence_Audit.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Sequence_Audit * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe return sb.toString(); } - public I_AD_Sequence getAD_Sequence() throws RuntimeException + public I_AD_Sequence getAD_Sequence() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Sequence.Table_Name); - I_AD_Sequence result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Sequence)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Sequence_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getAD_Sequence_ID(), get_TrxName()); } /** Set Sequence. @param AD_Sequence_ID @@ -113,21 +100,10 @@ public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Pe return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_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 f04658460b..e80806d9b3 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_No.java +++ b/base/src/org/compiere/model/X_AD_Sequence_No.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Sequence_No * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Sequence_No extends PO implements I_AD_Sequence_No, I_Persiste return sb.toString(); } - public I_AD_Sequence getAD_Sequence() throws RuntimeException + public I_AD_Sequence getAD_Sequence() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Sequence.Table_Name); - I_AD_Sequence result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Sequence)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Sequence_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getAD_Sequence_ID(), get_TrxName()); } /** Set Sequence. @param AD_Sequence_ID diff --git a/base/src/org/compiere/model/X_AD_Session.java b/base/src/org/compiere/model/X_AD_Session.java index e7d9da5862..50b3afbf0d 100644 --- a/base/src/org/compiere/model/X_AD_Session.java +++ b/base/src/org/compiere/model/X_AD_Session.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Session @@ -74,21 +72,10 @@ public class X_AD_Session extends PO implements I_AD_Session, I_Persistent return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID diff --git a/base/src/org/compiere/model/X_AD_Tab.java b/base/src/org/compiere/model/X_AD_Tab.java index e9fd4f07d4..47c5ac8732 100644 --- a/base/src/org/compiere/model/X_AD_Tab.java +++ b/base/src/org/compiere/model/X_AD_Tab.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Tab @@ -90,21 +88,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -129,6 +116,11 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } + public I_AD_Column getAD_ColumnSortOrder() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_ColumnSortOrder_ID(), get_TrxName()); } + /** Set Order Column. @param AD_ColumnSortOrder_ID Column determining the order @@ -152,6 +144,11 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } + public I_AD_Column getAD_ColumnSortYesNo() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_ColumnSortYesNo_ID(), get_TrxName()); } + /** Set Included Column. @param AD_ColumnSortYesNo_ID Column determining if a Table Column is included in Ordering @@ -175,21 +172,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } - public I_AD_Image getAD_Image() throws RuntimeException + public I_AD_Image getAD_Image() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Image.Table_Name); - I_AD_Image result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name) + .getPO(getAD_Image_ID(), get_TrxName()); } /** Set Image. @param AD_Image_ID @@ -214,21 +200,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -276,21 +251,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -315,21 +279,10 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -483,6 +436,11 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return (String)get_Value(COLUMNNAME_ImportFields); } + public I_AD_Tab getIncluded_Tab() throws RuntimeException + { + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getIncluded_Tab_ID(), get_TrxName()); } + /** Set Included Tab. @param Included_Tab_ID Included Tab in this Tab (Master Dateail) @@ -716,6 +674,11 @@ public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent return (String)get_Value(COLUMNNAME_OrderByClause); } + public I_AD_Column getParent_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getParent_Column_ID(), get_TrxName()); } + /** Set Parent Column. @param Parent_Column_ID The link column on the parent tab. diff --git a/base/src/org/compiere/model/X_AD_Table.java b/base/src/org/compiere/model/X_AD_Table.java index d9e8c54e34..b6c8b479f7 100644 --- a/base/src/org/compiere/model/X_AD_Table.java +++ b/base/src/org/compiere/model/X_AD_Table.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Table @@ -142,21 +140,10 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return ii.intValue(); } - public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException + public I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Val_Rule.Table_Name); - I_AD_Val_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Val_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Val_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Val_Rule)MTable.get(getCtx(), I_AD_Val_Rule.Table_Name) + .getPO(getAD_Val_Rule_ID(), get_TrxName()); } /** Set Dynamic Validation. @param AD_Val_Rule_ID @@ -181,21 +168,10 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -459,6 +435,11 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return (String)get_Value(COLUMNNAME_Name); } + public I_AD_Window getPO_Window() throws RuntimeException + { + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getPO_Window_ID(), get_TrxName()); } + /** Set PO Window. @param PO_Window_ID Purchase Order Window 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 d37b0121d8..2a0f986757 100644 --- a/base/src/org/compiere/model/X_AD_Table_Access.java +++ b/base/src/org/compiere/model/X_AD_Table_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Table_Access @@ -106,21 +104,10 @@ public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persis return (String)get_Value(COLUMNNAME_AccessTypeRule); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -145,21 +132,10 @@ public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persis return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID 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 34763d50f5..3e8c6bce89 100644 --- a/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java +++ b/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Table_ScriptValidator @@ -77,21 +75,10 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV return sb.toString(); } - public I_AD_Rule getAD_Rule() throws RuntimeException + public I_AD_Rule getAD_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Rule.Table_Name); - I_AD_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Rule)MTable.get(getCtx(), I_AD_Rule.Table_Name) + .getPO(getAD_Rule_ID(), get_TrxName()); } /** Set Rule. @param AD_Rule_ID Rule */ @@ -113,21 +100,10 @@ public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptV return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID 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 5b82de3cbd..6b60b6cb39 100644 --- a/base/src/org/compiere/model/X_AD_Task_Access.java +++ b/base/src/org/compiere/model/X_AD_Task_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Task_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Task_Access extends PO implements I_AD_Task_Access, I_Persiste return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -112,21 +99,10 @@ public class X_AD_Task_Access extends PO implements I_AD_Task_Access, I_Persiste return ii.intValue(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID diff --git a/base/src/org/compiere/model/X_AD_TreeBar.java b/base/src/org/compiere/model/X_AD_TreeBar.java index 6c33710f4a..fba72aa515 100644 --- a/base/src/org/compiere/model/X_AD_TreeBar.java +++ b/base/src/org/compiere/model/X_AD_TreeBar.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_TreeBar @@ -74,21 +72,10 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID @@ -113,21 +100,10 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNode.java b/base/src/org/compiere/model/X_AD_TreeNode.java index 5132f1615d..0e06133ee4 100644 --- a/base/src/org/compiere/model/X_AD_TreeNode.java +++ b/base/src/org/compiere/model/X_AD_TreeNode.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNode * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_TreeNode extends PO implements I_AD_TreeNode, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeBP.java b/base/src/org/compiere/model/X_AD_TreeNodeBP.java index 3f7d838af7..1d6518a03e 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeBP.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeBP.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeBP * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_TreeNodeBP extends PO implements I_AD_TreeNodeBP, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java index 726ae12ade..3b81500037 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeCMC * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeCMC extends PO implements I_AD_TreeNodeCMC, I_Persiste return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java index ce0e50d7e9..e0d8231ad9 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeCMM * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeCMM extends PO implements I_AD_TreeNodeCMM, I_Persiste return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java index d9be09a2a3..b528fafafe 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeCMS * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeCMS extends PO implements I_AD_TreeNodeCMS, I_Persiste return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java index 6585ce9604..202afec05e 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeCMT * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeCMT extends PO implements I_AD_TreeNodeCMT, I_Persiste return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeMM.java b/base/src/org/compiere/model/X_AD_TreeNodeMM.java index 7d769eb15c..05532694cc 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeMM.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeMM * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_TreeNodeMM extends PO implements I_AD_TreeNodeMM, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodePR.java b/base/src/org/compiere/model/X_AD_TreeNodePR.java index 21528c5433..dee75968fc 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodePR.java +++ b/base/src/org/compiere/model/X_AD_TreeNodePR.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodePR * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_TreeNodePR extends PO implements I_AD_TreeNodePR, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU1.java b/base/src/org/compiere/model/X_AD_TreeNodeU1.java index 467dbb6e66..1ec32b3bd2 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU1.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU1.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeU1 * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeU1 extends PO implements I_AD_TreeNodeU1, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU2.java b/base/src/org/compiere/model/X_AD_TreeNodeU2.java index bddc33eeed..cd91e8a828 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU2.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU2.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeU2 * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeU2 extends PO implements I_AD_TreeNodeU2, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU3.java b/base/src/org/compiere/model/X_AD_TreeNodeU3.java index 752d3a84d3..c88a1ff9ed 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU3.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU3.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeU3 * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeU3 extends PO implements I_AD_TreeNodeU3, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU4.java b/base/src/org/compiere/model/X_AD_TreeNodeU4.java index a026cda370..c07774c93e 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU4.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU4.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_TreeNodeU4 * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_AD_TreeNodeU4 extends PO implements I_AD_TreeNodeU4, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_AD_User.java b/base/src/org/compiere/model/X_AD_User.java index 48ff1b73d4..4d30e2675d 100644 --- a/base/src/org/compiere/model/X_AD_User.java +++ b/base/src/org/compiere/model/X_AD_User.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_User @@ -143,21 +141,10 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent return (Timestamp)get_Value(COLUMNNAME_Birthday); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -182,21 +169,10 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -221,21 +197,10 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent return ii.intValue(); } - public I_C_Greeting getC_Greeting() throws RuntimeException + public I_C_Greeting getC_Greeting() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Greeting.Table_Name); - I_C_Greeting result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Greeting)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Greeting_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Greeting)MTable.get(getCtx(), I_C_Greeting.Table_Name) + .getPO(getC_Greeting_ID(), get_TrxName()); } /** Set Greeting. @param C_Greeting_ID @@ -260,21 +225,10 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent return ii.intValue(); } - public I_C_Job getC_Job() throws RuntimeException + public I_C_Job getC_Job() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Job.Table_Name); - I_C_Job result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Job)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Job_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Job)MTable.get(getCtx(), I_C_Job.Table_Name) + .getPO(getC_Job_ID(), get_TrxName()); } /** Set Position. @param C_Job_ID @@ -687,6 +641,11 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent return false; } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_AD_UserBPAccess.java b/base/src/org/compiere/model/X_AD_UserBPAccess.java index 5e164368d5..3a7a62acb7 100644 --- a/base/src/org/compiere/model/X_AD_UserBPAccess.java +++ b/base/src/org/compiere/model/X_AD_UserBPAccess.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_UserBPAccess * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -239,21 +226,10 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis return (String)get_Value(COLUMNNAME_DocBaseType); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_AD_UserMail.java b/base/src/org/compiere/model/X_AD_UserMail.java index 6401225fd8..1ab34d1265 100644 --- a/base/src/org/compiere/model/X_AD_UserMail.java +++ b/base/src/org/compiere/model/X_AD_UserMail.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_UserMail @@ -73,21 +71,10 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -215,21 +202,10 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent return (String)get_Value(COLUMNNAME_MessageID); } - public I_R_MailText getR_MailText() throws RuntimeException + public I_R_MailText getR_MailText() throws RuntimeException { - Class clazz = MTable.getClass(I_R_MailText.Table_Name); - I_R_MailText result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getR_MailText_ID(), get_TrxName()); } /** Set Mail Template. @param R_MailText_ID @@ -271,21 +247,10 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent return (String)get_Value(COLUMNNAME_Subject); } - public I_W_MailMsg getW_MailMsg() throws RuntimeException + public I_W_MailMsg getW_MailMsg() throws RuntimeException { - Class clazz = MTable.getClass(I_W_MailMsg.Table_Name); - I_W_MailMsg result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_MailMsg)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_MailMsg_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_MailMsg)MTable.get(getCtx(), I_W_MailMsg.Table_Name) + .getPO(getW_MailMsg_ID(), get_TrxName()); } /** Set Mail Message. @param W_MailMsg_ID diff --git a/base/src/org/compiere/model/X_AD_UserQuery.java b/base/src/org/compiere/model/X_AD_UserQuery.java index ab83304b36..4d9d265b94 100644 --- a/base/src/org/compiere/model/X_AD_UserQuery.java +++ b/base/src/org/compiere/model/X_AD_UserQuery.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_UserQuery @@ -75,21 +73,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent return sb.toString(); } - public I_AD_Tab getAD_Tab() throws RuntimeException + public I_AD_Tab getAD_Tab() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tab.Table_Name); - I_AD_Tab result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getAD_Tab_ID(), get_TrxName()); } /** Set Tab. @param AD_Tab_ID @@ -114,21 +101,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -153,21 +129,10 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID 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 fce5e30a8b..aeb7962c39 100644 --- a/base/src/org/compiere/model/X_AD_User_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_User_OrgAccess.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_User_OrgAccess * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_User_OrgAccess extends PO implements I_AD_User_OrgAccess, I_Pe return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID 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 7eb626cfc6..ccee3470ee 100644 --- a/base/src/org/compiere/model/X_AD_User_Roles.java +++ b/base/src/org/compiere/model/X_AD_User_Roles.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_User_Roles * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -111,21 +98,10 @@ public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID 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 9bed0898d7..f181edf676 100644 --- a/base/src/org/compiere/model/X_AD_User_Substitute.java +++ b/base/src/org/compiere/model/X_AD_User_Substitute.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_User_Substitute @@ -76,21 +74,10 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -180,6 +167,11 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_ return new KeyNamePair(get_ID(), getName()); } + public I_AD_User getSubstitute() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSubstitute_ID(), get_TrxName()); } + /** Set Substitute. @param Substitute_ID Entity which can be used in place of this entity 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 275a67ce6b..8ad098bec8 100644 --- a/base/src/org/compiere/model/X_AD_WF_Activity.java +++ b/base/src/org/compiere/model/X_AD_WF_Activity.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_Activity @@ -80,21 +78,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return sb.toString(); } - public I_AD_Message getAD_Message() throws RuntimeException + public I_AD_Message getAD_Message() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Message.Table_Name); - I_AD_Message result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Message)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Message_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Message)MTable.get(getCtx(), I_AD_Message.Table_Name) + .getPO(getAD_Message_ID(), get_TrxName()); } /** Set Message. @param AD_Message_ID @@ -119,21 +106,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -158,6 +134,11 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return ii.intValue(); } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact @@ -204,21 +185,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return ii.intValue(); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID @@ -251,21 +221,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); } - public I_AD_WF_Process getAD_WF_Process() throws RuntimeException + public I_AD_WF_Process getAD_WF_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Process.Table_Name); - I_AD_WF_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Process)MTable.get(getCtx(), I_AD_WF_Process.Table_Name) + .getPO(getAD_WF_Process_ID(), get_TrxName()); } /** Set Workflow Process. @param AD_WF_Process_ID @@ -290,21 +249,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return ii.intValue(); } - public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException + public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); - I_AD_WF_Responsible result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name) + .getPO(getAD_WF_Responsible_ID(), get_TrxName()); } /** Set Workflow Responsible. @param AD_WF_Responsible_ID @@ -329,21 +277,10 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID 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 f83f7935d5..cdbc93715a 100644 --- a/base/src/org/compiere/model/X_AD_WF_ActivityResult.java +++ b/base/src/org/compiere/model/X_AD_WF_ActivityResult.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_ActivityResult @@ -74,21 +72,10 @@ public class X_AD_WF_ActivityResult extends PO implements I_AD_WF_ActivityResult return sb.toString(); } - public I_AD_WF_Activity getAD_WF_Activity() throws RuntimeException + public I_AD_WF_Activity getAD_WF_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Activity.Table_Name); - I_AD_WF_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Activity)MTable.get(getCtx(), I_AD_WF_Activity.Table_Name) + .getPO(getAD_WF_Activity_ID(), get_TrxName()); } /** Set Workflow Activity. @param AD_WF_Activity_ID 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 ecb6dd52bc..2f6a2fa21e 100644 --- a/base/src/org/compiere/model/X_AD_WF_Block.java +++ b/base/src/org/compiere/model/X_AD_WF_Block.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_Block @@ -97,21 +95,10 @@ public class X_AD_WF_Block extends PO implements I_AD_WF_Block, I_Persistent return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID 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 55197c796b..ef95451cea 100644 --- a/base/src/org/compiere/model/X_AD_WF_EventAudit.java +++ b/base/src/org/compiere/model/X_AD_WF_EventAudit.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -121,6 +108,11 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers return ii.intValue(); } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact @@ -175,21 +167,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_EventAudit_ID())); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID @@ -214,21 +195,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers return ii.intValue(); } - public I_AD_WF_Process getAD_WF_Process() throws RuntimeException + public I_AD_WF_Process getAD_WF_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Process.Table_Name); - I_AD_WF_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Process)MTable.get(getCtx(), I_AD_WF_Process.Table_Name) + .getPO(getAD_WF_Process_ID(), get_TrxName()); } /** Set Workflow Process. @param AD_WF_Process_ID @@ -253,21 +223,10 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers return ii.intValue(); } - public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException + public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); - I_AD_WF_Responsible result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name) + .getPO(getAD_WF_Responsible_ID(), get_TrxName()); } /** Set Workflow Responsible. @param AD_WF_Responsible_ID 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 c717bc418f..770cbba123 100644 --- a/base/src/org/compiere/model/X_AD_WF_NextCondition.java +++ b/base/src/org/compiere/model/X_AD_WF_NextCondition.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_NextCondition @@ -82,21 +80,10 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -144,21 +131,10 @@ public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, return ii.intValue(); } - public I_AD_WF_NodeNext getAD_WF_NodeNext() throws RuntimeException + public I_AD_WF_NodeNext getAD_WF_NodeNext() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_NodeNext.Table_Name); - I_AD_WF_NodeNext result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_NodeNext)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_NodeNext_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_NodeNext)MTable.get(getCtx(), I_AD_WF_NodeNext.Table_Name) + .getPO(getAD_WF_NodeNext_ID(), get_TrxName()); } /** Set Node Transition. @param AD_WF_NodeNext_ID 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 a0d45cc05c..d2f9208a3f 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node.java +++ b/base/src/org/compiere/model/X_AD_WF_Node.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -138,21 +136,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return (String)get_Value(COLUMNNAME_Action); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -177,21 +164,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -216,21 +192,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Image getAD_Image() throws RuntimeException + public I_AD_Image getAD_Image() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Image.Table_Name); - I_AD_Image result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name) + .getPO(getAD_Image_ID(), get_TrxName()); } /** Set Image. @param AD_Image_ID @@ -255,21 +220,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -294,21 +248,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID @@ -333,21 +276,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_WF_Block getAD_WF_Block() throws RuntimeException + public I_AD_WF_Block getAD_WF_Block() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Block.Table_Name); - I_AD_WF_Block result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Block)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Block_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Block)MTable.get(getCtx(), I_AD_WF_Block.Table_Name) + .getPO(getAD_WF_Block_ID(), get_TrxName()); } /** Set Workflow Block. @param AD_WF_Block_ID @@ -395,21 +327,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException + public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); - I_AD_WF_Responsible result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name) + .getPO(getAD_WF_Responsible_ID(), get_TrxName()); } /** Set Workflow Responsible. @param AD_WF_Responsible_ID @@ -434,21 +355,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -473,21 +383,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID @@ -546,21 +445,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return (String)get_Value(COLUMNNAME_AttributeValue); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -1049,21 +937,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_R_MailText getR_MailText() throws RuntimeException + public I_R_MailText getR_MailText() throws RuntimeException { - Class clazz = MTable.getClass(I_R_MailText.Table_Name); - I_R_MailText result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getR_MailText_ID(), get_TrxName()); } /** Set Mail Template. @param R_MailText_ID @@ -1088,21 +965,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } - public I_S_Resource getS_Resource() throws RuntimeException + public I_S_Resource getS_Resource() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Resource.Table_Name); - I_S_Resource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name) + .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID @@ -1330,6 +1196,11 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent return ii.intValue(); } + public I_AD_Workflow getWorkflow() throws RuntimeException + { + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getWorkflow_ID(), get_TrxName()); } + /** Set Workflow. @param Workflow_ID Workflow or tasks 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 d0e7560ea3..7dae5ca544 100644 --- a/base/src/org/compiere/model/X_AD_WF_NodeNext.java +++ b/base/src/org/compiere/model/X_AD_WF_NodeNext.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_NodeNext @@ -79,6 +77,11 @@ public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persiste return sb.toString(); } + public I_AD_WF_Node getAD_WF_Next() throws RuntimeException + { + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Next_ID(), get_TrxName()); } + /** Set Next Node. @param AD_WF_Next_ID Next Node in workflow @@ -102,21 +105,10 @@ public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persiste return ii.intValue(); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID 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 be41f5dbb8..fabc6d32a7 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_Node_Para @@ -75,21 +73,10 @@ public class X_AD_WF_Node_Para extends PO implements I_AD_WF_Node_Para, I_Persis return sb.toString(); } - public I_AD_Process_Para getAD_Process_Para() throws RuntimeException + public I_AD_Process_Para getAD_Process_Para() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process_Para.Table_Name); - I_AD_Process_Para result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process_Para)MTable.get(getCtx(), I_AD_Process_Para.Table_Name) + .getPO(getAD_Process_Para_ID(), get_TrxName()); } /** Set Process Parameter. @param AD_Process_Para_ID Process Parameter */ @@ -111,21 +98,10 @@ public class X_AD_WF_Node_Para extends PO implements I_AD_WF_Node_Para, I_Persis return ii.intValue(); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID 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 b21a4a240b..eab504774e 100644 --- a/base/src/org/compiere/model/X_AD_WF_Process.java +++ b/base/src/org/compiere/model/X_AD_WF_Process.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_Process @@ -78,21 +76,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent return sb.toString(); } - public I_AD_Message getAD_Message() throws RuntimeException + public I_AD_Message getAD_Message() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Message.Table_Name); - I_AD_Message result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Message)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Message_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Message)MTable.get(getCtx(), I_AD_Message.Table_Name) + .getPO(getAD_Message_ID(), get_TrxName()); } /** Set Message. @param AD_Message_ID @@ -117,21 +104,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -156,6 +132,11 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent return ii.intValue(); } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact @@ -202,21 +183,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent return ii.intValue(); } - public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException + public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); - I_AD_WF_Responsible result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name) + .getPO(getAD_WF_Responsible_ID(), get_TrxName()); } /** Set Workflow Responsible. @param AD_WF_Responsible_ID @@ -241,21 +211,10 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID 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 6d86d124e3..582111f95c 100644 --- a/base/src/org/compiere/model/X_AD_WF_ProcessData.java +++ b/base/src/org/compiere/model/X_AD_WF_ProcessData.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_ProcessData @@ -74,21 +72,10 @@ public class X_AD_WF_ProcessData extends PO implements I_AD_WF_ProcessData, I_Pe return sb.toString(); } - public I_AD_WF_Process getAD_WF_Process() throws RuntimeException + public I_AD_WF_Process getAD_WF_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Process.Table_Name); - I_AD_WF_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Process)MTable.get(getCtx(), I_AD_WF_Process.Table_Name) + .getPO(getAD_WF_Process_ID(), get_TrxName()); } /** Set Workflow Process. @param AD_WF_Process_ID 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 a052eadfef..5efbc538af 100644 --- a/base/src/org/compiere/model/X_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/X_AD_WF_Responsible.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WF_Responsible @@ -77,21 +75,10 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -116,6 +103,11 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe return ii.intValue(); } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact diff --git a/base/src/org/compiere/model/X_AD_Window.java b/base/src/org/compiere/model/X_AD_Window.java index c7a1797864..4abb32ddce 100644 --- a/base/src/org/compiere/model/X_AD_Window.java +++ b/base/src/org/compiere/model/X_AD_Window.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Window @@ -81,21 +79,10 @@ public class X_AD_Window extends PO implements I_AD_Window, I_Persistent return sb.toString(); } - public I_AD_Color getAD_Color() throws RuntimeException + public I_AD_Color getAD_Color() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Color.Table_Name); - I_AD_Color result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Color)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Color_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Color)MTable.get(getCtx(), I_AD_Color.Table_Name) + .getPO(getAD_Color_ID(), get_TrxName()); } /** Set System Color. @param AD_Color_ID @@ -120,21 +107,10 @@ public class X_AD_Window extends PO implements I_AD_Window, I_Persistent return ii.intValue(); } - public I_AD_Image getAD_Image() throws RuntimeException + public I_AD_Image getAD_Image() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Image.Table_Name); - I_AD_Image result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name) + .getPO(getAD_Image_ID(), get_TrxName()); } /** Set Image. @param AD_Image_ID 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 080e3d2f0d..62788c1fef 100644 --- a/base/src/org/compiere/model/X_AD_Window_Access.java +++ b/base/src/org/compiere/model/X_AD_Window_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Window_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Window_Access extends PO implements I_AD_Window_Access, I_Pers return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -112,21 +99,10 @@ public class X_AD_Window_Access extends PO implements I_AD_Window_Access, I_Pers return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID diff --git a/base/src/org/compiere/model/X_AD_Workbench.java b/base/src/org/compiere/model/X_AD_Workbench.java index 8677861d33..c026d95654 100644 --- a/base/src/org/compiere/model/X_AD_Workbench.java +++ b/base/src/org/compiere/model/X_AD_Workbench.java @@ -97,6 +97,11 @@ public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent return ii.intValue(); } + public I_AD_Column getAD_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } + /** Set Column. @param AD_Column_ID Column in the table diff --git a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java index 3bc734104f..936802fe15 100644 --- a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java +++ b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for AD_WorkbenchWindow @@ -77,21 +75,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ return sb.toString(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -116,21 +103,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -155,21 +131,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ return ii.intValue(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID @@ -194,21 +159,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -233,21 +187,10 @@ public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_ return ii.intValue(); } - public I_AD_Workbench getAD_Workbench() throws RuntimeException + public I_AD_Workbench getAD_Workbench() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workbench.Table_Name); - I_AD_Workbench result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workbench)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workbench_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workbench)MTable.get(getCtx(), I_AD_Workbench.Table_Name) + .getPO(getAD_Workbench_ID(), get_TrxName()); } /** Set Workbench. @param AD_Workbench_ID diff --git a/base/src/org/compiere/model/X_AD_Workflow.java b/base/src/org/compiere/model/X_AD_Workflow.java index 00333a5df3..f2043158bf 100644 --- a/base/src/org/compiere/model/X_AD_Workflow.java +++ b/base/src/org/compiere/model/X_AD_Workflow.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -126,21 +124,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent return (String)get_Value(COLUMNNAME_AccessLevel); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -165,21 +152,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent return ii.intValue(); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID @@ -204,21 +180,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent return ii.intValue(); } - public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException + public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); - I_AD_WF_Responsible result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name) + .getPO(getAD_WF_Responsible_ID(), get_TrxName()); } /** Set Workflow Responsible. @param AD_WF_Responsible_ID @@ -266,21 +231,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent return ii.intValue(); } - public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException + public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WorkflowProcessor.Table_Name); - I_AD_WorkflowProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WorkflowProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WorkflowProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WorkflowProcessor)MTable.get(getCtx(), I_AD_WorkflowProcessor.Table_Name) + .getPO(getAD_WorkflowProcessor_ID(), get_TrxName()); } /** Set Workflow Processor. @param AD_WorkflowProcessor_ID @@ -747,21 +701,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent return ii.intValue(); } - public I_S_Resource getS_Resource() throws RuntimeException + public I_S_Resource getS_Resource() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Resource.Table_Name); - I_S_Resource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name) + .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java index d81baf9b21..8ffe65e5d7 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java @@ -323,6 +323,11 @@ public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor return ii.intValue(); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java index b7422424ed..fcdc1a4c0f 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_WorkflowProcessorLog * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_WorkflowProcessorLog extends PO implements I_AD_WorkflowProces return sb.toString(); } - public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException + public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WorkflowProcessor.Table_Name); - I_AD_WorkflowProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WorkflowProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WorkflowProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WorkflowProcessor)MTable.get(getCtx(), I_AD_WorkflowProcessor.Table_Name) + .getPO(getAD_WorkflowProcessor_ID(), get_TrxName()); } /** Set Workflow Processor. @param AD_WorkflowProcessor_ID 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 60b3d1d6c4..1a09503c56 100644 --- a/base/src/org/compiere/model/X_AD_Workflow_Access.java +++ b/base/src/org/compiere/model/X_AD_Workflow_Access.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for AD_Workflow_Access * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_AD_Workflow_Access extends PO implements I_AD_Workflow_Access, I_ return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -112,21 +99,10 @@ public class X_AD_Workflow_Access extends PO implements I_AD_Workflow_Access, I_ return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID diff --git a/base/src/org/compiere/model/X_ASP_ClientException.java b/base/src/org/compiere/model/X_ASP_ClientException.java index 6572517b47..bcaa7aa2fb 100644 --- a/base/src/org/compiere/model/X_ASP_ClientException.java +++ b/base/src/org/compiere/model/X_ASP_ClientException.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_ClientException * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return sb.toString(); } - public I_AD_Field getAD_Field() throws RuntimeException + public I_AD_Field getAD_Field() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Field.Table_Name); - I_AD_Field result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Field)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Field_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Field)MTable.get(getCtx(), I_AD_Field.Table_Name) + .getPO(getAD_Field_ID(), get_TrxName()); } /** Set Field. @param AD_Field_ID @@ -112,21 +99,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -151,21 +127,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -190,21 +155,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Process_Para getAD_Process_Para() throws RuntimeException + public I_AD_Process_Para getAD_Process_Para() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process_Para.Table_Name); - I_AD_Process_Para result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process_Para)MTable.get(getCtx(), I_AD_Process_Para.Table_Name) + .getPO(getAD_Process_Para_ID(), get_TrxName()); } /** Set Process Parameter. @param AD_Process_Para_ID Process Parameter */ @@ -226,21 +180,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Tab getAD_Tab() throws RuntimeException + public I_AD_Tab getAD_Tab() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tab.Table_Name); - I_AD_Tab result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getAD_Tab_ID(), get_TrxName()); } /** Set Tab. @param AD_Tab_ID @@ -265,21 +208,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID @@ -304,21 +236,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_WF_Node getAD_WF_Node() throws RuntimeException + public I_AD_WF_Node getAD_WF_Node() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); - I_AD_WF_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name) + .getPO(getAD_WF_Node_ID(), get_TrxName()); } /** Set Node. @param AD_WF_Node_ID @@ -343,21 +264,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -382,21 +292,10 @@ public class X_ASP_ClientException extends PO implements I_ASP_ClientException, return ii.intValue(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID diff --git a/base/src/org/compiere/model/X_ASP_ClientLevel.java b/base/src/org/compiere/model/X_ASP_ClientLevel.java index a6a669922b..b1221753cb 100644 --- a/base/src/org/compiere/model/X_ASP_ClientLevel.java +++ b/base/src/org/compiere/model/X_ASP_ClientLevel.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_ClientLevel * @author Adempiere (generated) @@ -93,21 +91,10 @@ public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persis return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ @@ -129,21 +116,10 @@ public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persis return ii.intValue(); } - public I_ASP_Module getASP_Module() throws RuntimeException + public I_ASP_Module getASP_Module() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Module.Table_Name); - I_ASP_Module result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Module)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Module_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Module)MTable.get(getCtx(), I_ASP_Module.Table_Name) + .getPO(getASP_Module_ID(), get_TrxName()); } /** Set ASP Module. @param ASP_Module_ID 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 a01a13796b..d1565adf3c 100644 --- a/base/src/org/compiere/model/X_ASP_Field.java +++ b/base/src/org/compiere/model/X_ASP_Field.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_Field * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_ASP_Field extends PO implements I_ASP_Field, I_Persistent return sb.toString(); } - public I_AD_Field getAD_Field() throws RuntimeException + public I_AD_Field getAD_Field() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Field.Table_Name); - I_AD_Field result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Field)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Field_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Field)MTable.get(getCtx(), I_AD_Field.Table_Name) + .getPO(getAD_Field_ID(), get_TrxName()); } /** Set Field. @param AD_Field_ID @@ -154,21 +141,10 @@ public class X_ASP_Field extends PO implements I_ASP_Field, I_Persistent return (String)get_Value(COLUMNNAME_ASP_Status); } - public I_ASP_Tab getASP_Tab() throws RuntimeException + public I_ASP_Tab getASP_Tab() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Tab.Table_Name); - I_ASP_Tab result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Tab_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Tab)MTable.get(getCtx(), I_ASP_Tab.Table_Name) + .getPO(getASP_Tab_ID(), get_TrxName()); } /** Set ASP Tab. @param ASP_Tab_ID ASP Tab */ diff --git a/base/src/org/compiere/model/X_ASP_Form.java b/base/src/org/compiere/model/X_ASP_Form.java index f04318249a..ba74f73f73 100644 --- a/base/src/org/compiere/model/X_ASP_Form.java +++ b/base/src/org/compiere/model/X_ASP_Form.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_Form * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent return sb.toString(); } - public I_AD_Form getAD_Form() throws RuntimeException + public I_AD_Form getAD_Form() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Form.Table_Name); - I_AD_Form result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name) + .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID @@ -133,21 +120,10 @@ public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ diff --git a/base/src/org/compiere/model/X_ASP_Level.java b/base/src/org/compiere/model/X_ASP_Level.java index ccf3bc1b29..2f9a694a0a 100644 --- a/base/src/org/compiere/model/X_ASP_Level.java +++ b/base/src/org/compiere/model/X_ASP_Level.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for ASP_Level @@ -95,21 +93,10 @@ public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent return ii.intValue(); } - public I_ASP_Module getASP_Module() throws RuntimeException + public I_ASP_Module getASP_Module() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Module.Table_Name); - I_ASP_Module result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Module)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Module_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Module)MTable.get(getCtx(), I_ASP_Module.Table_Name) + .getPO(getASP_Module_ID(), get_TrxName()); } /** Set ASP Module. @param ASP_Module_ID ASP Module */ diff --git a/base/src/org/compiere/model/X_ASP_Process.java b/base/src/org/compiere/model/X_ASP_Process.java index 819fd9ae73..13e44f9184 100644 --- a/base/src/org/compiere/model/X_ASP_Process.java +++ b/base/src/org/compiere/model/X_ASP_Process.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for ASP_Process @@ -75,21 +73,10 @@ public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent return sb.toString(); } - public I_AD_Process getAD_Process() throws RuntimeException + public I_AD_Process getAD_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process.Table_Name); - I_AD_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID @@ -114,21 +101,10 @@ public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ 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 db86ca5dce..86fc7a7edf 100644 --- a/base/src/org/compiere/model/X_ASP_Process_Para.java +++ b/base/src/org/compiere/model/X_ASP_Process_Para.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_Process_Para * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_ASP_Process_Para extends PO implements I_ASP_Process_Para, I_Pers return sb.toString(); } - public I_AD_Process_Para getAD_Process_Para() throws RuntimeException + public I_AD_Process_Para getAD_Process_Para() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Process_Para.Table_Name); - I_AD_Process_Para result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Process_Para)MTable.get(getCtx(), I_AD_Process_Para.Table_Name) + .getPO(getAD_Process_Para_ID(), get_TrxName()); } /** Set Process Parameter. @param AD_Process_Para_ID Process Parameter */ @@ -108,21 +95,10 @@ public class X_ASP_Process_Para extends PO implements I_ASP_Process_Para, I_Pers return ii.intValue(); } - public I_ASP_Process getASP_Process() throws RuntimeException + public I_ASP_Process getASP_Process() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Process.Table_Name); - I_ASP_Process result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Process_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Process)MTable.get(getCtx(), I_ASP_Process.Table_Name) + .getPO(getASP_Process_ID(), get_TrxName()); } /** Set ASP Process. @param ASP_Process_ID ASP Process */ diff --git a/base/src/org/compiere/model/X_ASP_Tab.java b/base/src/org/compiere/model/X_ASP_Tab.java index 553572b746..32bd0c0b12 100644 --- a/base/src/org/compiere/model/X_ASP_Tab.java +++ b/base/src/org/compiere/model/X_ASP_Tab.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for ASP_Tab @@ -74,21 +72,10 @@ public class X_ASP_Tab extends PO implements I_ASP_Tab, I_Persistent return sb.toString(); } - public I_AD_Tab getAD_Tab() throws RuntimeException + public I_AD_Tab getAD_Tab() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tab.Table_Name); - I_AD_Tab result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + .getPO(getAD_Tab_ID(), get_TrxName()); } /** Set Tab. @param AD_Tab_ID @@ -177,21 +164,10 @@ public class X_ASP_Tab extends PO implements I_ASP_Tab, I_Persistent return ii.intValue(); } - public I_ASP_Window getASP_Window() throws RuntimeException + public I_ASP_Window getASP_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Window.Table_Name); - I_ASP_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Window)MTable.get(getCtx(), I_ASP_Window.Table_Name) + .getPO(getASP_Window_ID(), get_TrxName()); } /** Set ASP Window. @param ASP_Window_ID ASP Window */ diff --git a/base/src/org/compiere/model/X_ASP_Task.java b/base/src/org/compiere/model/X_ASP_Task.java index 7f491eebaa..5ede27a2ab 100644 --- a/base/src/org/compiere/model/X_ASP_Task.java +++ b/base/src/org/compiere/model/X_ASP_Task.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_Task * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent return sb.toString(); } - public I_AD_Task getAD_Task() throws RuntimeException + public I_AD_Task getAD_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Task.Table_Name); - I_AD_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name) + .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID @@ -113,21 +100,10 @@ public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ diff --git a/base/src/org/compiere/model/X_ASP_Window.java b/base/src/org/compiere/model/X_ASP_Window.java index 1ff4a07784..5494842f56 100644 --- a/base/src/org/compiere/model/X_ASP_Window.java +++ b/base/src/org/compiere/model/X_ASP_Window.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for ASP_Window @@ -75,21 +73,10 @@ public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent return sb.toString(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -114,21 +101,10 @@ public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ diff --git a/base/src/org/compiere/model/X_ASP_Workflow.java b/base/src/org/compiere/model/X_ASP_Workflow.java index 83096ee192..08d95b43e5 100644 --- a/base/src/org/compiere/model/X_ASP_Workflow.java +++ b/base/src/org/compiere/model/X_ASP_Workflow.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for ASP_Workflow * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent return sb.toString(); } - public I_AD_Workflow getAD_Workflow() throws RuntimeException + public I_AD_Workflow getAD_Workflow() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); - I_AD_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name) + .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID @@ -113,21 +100,10 @@ public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent return ii.intValue(); } - public I_ASP_Level getASP_Level() throws RuntimeException + public I_ASP_Level getASP_Level() throws RuntimeException { - Class clazz = MTable.getClass(I_ASP_Level.Table_Name); - I_ASP_Level result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_ASP_Level)MTable.get(getCtx(), I_ASP_Level.Table_Name) + .getPO(getASP_Level_ID(), get_TrxName()); } /** Set ASP Level. @param ASP_Level_ID ASP Level */ diff --git a/base/src/org/compiere/model/X_A_Asset.java b/base/src/org/compiere/model/X_A_Asset.java index 5f14d9e71e..dd493b9b7e 100644 --- a/base/src/org/compiere/model/X_A_Asset.java +++ b/base/src/org/compiere/model/X_A_Asset.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -99,21 +97,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return (Timestamp)get_Value(COLUMNNAME_A_Asset_CreateDate); } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -175,6 +162,11 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return (Timestamp)get_Value(COLUMNNAME_A_Asset_RevalDate); } + public I_A_Asset getA_Parent_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Parent_Asset_ID(), get_TrxName()); } + /** Set Asset ID. @param A_Parent_Asset_ID Asset ID */ public void setA_Parent_Asset_ID (int A_Parent_Asset_ID) @@ -229,21 +221,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return bd; } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -319,21 +300,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -358,21 +328,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -397,6 +356,11 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_BPartnerSR() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartnerSR_ID(), get_TrxName()); } + /** Set BPartner (Agent). @param C_BPartnerSR_ID Business Partner (Agent or Sales Rep) @@ -420,21 +384,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - public I_C_Location getC_Location() throws RuntimeException + public I_C_Location getC_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Location.Table_Name); - I_C_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } /** Set Address. @param C_Location_ID @@ -459,21 +412,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -723,6 +665,11 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } + public I_C_BPartner getLease_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getLease_BPartner_ID(), get_TrxName()); } + /** Set Lessor. @param Lease_BPartner_ID The Business Partner who rents or leases @@ -817,6 +764,11 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return (String)get_Value(COLUMNNAME_Lot); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -840,21 +792,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -879,21 +820,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - public I_M_Locator getM_Locator() throws RuntimeException + public I_M_Locator getM_Locator() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Locator.Table_Name); - I_M_Locator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Locator)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Locator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID @@ -918,21 +848,10 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 2aff3a327c..ed53bbc345 100644 --- a/base/src/org/compiere/model/X_A_Asset_Acct.java +++ b/base/src/org/compiere/model/X_A_Asset_Acct.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -83,6 +81,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return sb.toString(); } + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Accumdepreciation_Acct(), get_TrxName()); } + /** Set Accumulated Depreciation. @param A_Accumdepreciation_Acct Accumulated Depreciation */ public void setA_Accumdepreciation_Acct (int A_Accumdepreciation_Acct) @@ -100,6 +103,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Asset_Acct(), get_TrxName()); } + /** Set Asset Cost Account. @param A_Asset_Acct Asset Cost Account */ public void setA_Asset_Acct (int A_Asset_Acct) @@ -168,6 +176,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_A_Asset_Spread getA_Asset_Spread() throws RuntimeException + { + return (I_A_Asset_Spread)MTable.get(getCtx(), I_A_Asset_Spread.Table_Name) + .getPO(getA_Asset_Spread_ID(), get_TrxName()); } + /** Set A_Asset_Spread_ID. @param A_Asset_Spread_ID A_Asset_Spread_ID */ public void setA_Asset_Spread_ID (int A_Asset_Spread_ID) @@ -188,6 +201,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Depreciation_Acct(), get_TrxName()); } + /** Set Depreciation Expense Account. @param A_Depreciation_Acct Depreciation Expense Account */ public void setA_Depreciation_Acct (int A_Depreciation_Acct) @@ -205,6 +223,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_A_Depreciation_Convention getA_Depreciation_Conv() throws RuntimeException + { + return (I_A_Depreciation_Convention)MTable.get(getCtx(), I_A_Depreciation_Convention.Table_Name) + .getPO(getA_Depreciation_Conv_ID(), get_TrxName()); } + /** Set Convention Type. @param A_Depreciation_Conv_ID Convention Type */ public void setA_Depreciation_Conv_ID (int A_Depreciation_Conv_ID) @@ -225,6 +248,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_A_Depreciation getA_Depreciation() throws RuntimeException + { + return (I_A_Depreciation)MTable.get(getCtx(), I_A_Depreciation.Table_Name) + .getPO(getA_Depreciation_ID(), get_TrxName()); } + /** Set Depreciation Type. @param A_Depreciation_ID Depreciation Type */ public void setA_Depreciation_ID (int A_Depreciation_ID) @@ -283,6 +311,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return (String)get_Value(COLUMNNAME_A_Depreciation_Manual_Period); } + public I_A_Depreciation_Method getA_Depreciation_Method() throws RuntimeException + { + return (I_A_Depreciation_Method)MTable.get(getCtx(), I_A_Depreciation_Method.Table_Name) + .getPO(getA_Depreciation_Method_ID(), get_TrxName()); } + /** Set Depreciation Calculation Type. @param A_Depreciation_Method_ID Depreciation Calculation Type */ public void setA_Depreciation_Method_ID (int A_Depreciation_Method_ID) @@ -303,6 +336,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException + { + return (I_A_Depreciation_Table_Header)MTable.get(getCtx(), I_A_Depreciation_Table_Header.Table_Name) + .getPO(getA_Depreciation_Table_Header_ID(), get_TrxName()); } + /** Set A_Depreciation_Table_Header_ID. @param A_Depreciation_Table_Header_ID A_Depreciation_Table_Header_ID */ public void setA_Depreciation_Table_Header_ID (int A_Depreciation_Table_Header_ID) @@ -340,6 +378,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return bd; } + public I_C_ValidCombination getA_Disposal_G() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Gain(), get_TrxName()); } + /** Set A_Disposal_Gain. @param A_Disposal_Gain A_Disposal_Gain */ public void setA_Disposal_Gain (int A_Disposal_Gain) @@ -357,6 +400,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Loss(), get_TrxName()); } + /** Set Loss on Disposal. @param A_Disposal_Loss Loss on Disposal */ public void setA_Disposal_Loss (int A_Disposal_Loss) @@ -374,6 +422,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Revenue(), get_TrxName()); } + /** Set Disposal Revenue. @param A_Disposal_Revenue Disposal Revenue */ public void setA_Disposal_Revenue (int A_Disposal_Revenue) @@ -425,6 +478,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Cur(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Current Year. @param A_Reval_Accumdep_Offset_Cur Revaluation Accumulated Depreciation Offset for Current Year */ public void setA_Reval_Accumdep_Offset_Cur (int A_Reval_Accumdep_Offset_Cur) @@ -442,6 +500,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Prior Year. @param A_Reval_Accumdep_Offset_Prior Revaluation Accumulated Depreciation Offset for Prior Year */ public void setA_Reval_Accumdep_Offset_Prior (int A_Reval_Accumdep_Offset_Prior) @@ -482,6 +545,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return (String)get_Value(COLUMNNAME_A_Reval_Cal_Method); } + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset(), get_TrxName()); } + /** Set Revaluation Cost Offset for Current Year. @param A_Reval_Cost_Offset Revaluation Cost Offset for Current Year */ public void setA_Reval_Cost_Offset (int A_Reval_Cost_Offset) @@ -499,6 +567,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Cost Offset for Prior Year. @param A_Reval_Cost_Offset_Prior Revaluation Cost Offset for Prior Year */ public void setA_Reval_Cost_Offset_Prior (int A_Reval_Cost_Offset_Prior) @@ -516,6 +589,11 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Depexp_Offset(), get_TrxName()); } + /** Set Revaluation Expense Offs. @param A_Reval_Depexp_Offset Revaluation Expense Offs */ public void setA_Reval_Depexp_Offset (int A_Reval_Depexp_Offset) @@ -567,21 +645,10 @@ public class X_A_Asset_Acct extends PO implements I_A_Asset_Acct, I_Persistent return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID 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 d7500cdc88..d6c269eeeb 100644 --- a/base/src/org/compiere/model/X_A_Asset_Addition.java +++ b/base/src/org/compiere/model/X_A_Asset_Addition.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -210,21 +208,10 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers return bd; } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -286,21 +273,10 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers return (String)get_Value(COLUMNNAME_DocumentNo); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID 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 4e6c81b266..c7afb9db91 100644 --- a/base/src/org/compiere/model/X_A_Asset_Change.java +++ b/base/src/org/compiere/model/X_A_Asset_Change.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -78,6 +76,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return sb.toString(); } + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Accumdepreciation_Acct(), get_TrxName()); } + /** Set Accumulated Depreciation. @param A_Accumdepreciation_Acct Accumulated Depreciation */ public void setA_Accumdepreciation_Acct (int A_Accumdepreciation_Acct) @@ -95,6 +98,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getA_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Asset_Acct(), get_TrxName()); } + /** Set Asset Cost Account. @param A_Asset_Acct Asset Cost Account */ public void setA_Asset_Acct (int A_Asset_Acct) @@ -194,6 +202,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return (Timestamp)get_Value(COLUMNNAME_A_Asset_CreateDate); } + public I_A_Asset getA_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } + /** Set Asset. @param A_Asset_ID Asset used internally or by customers @@ -254,6 +267,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return (Timestamp)get_Value(COLUMNNAME_A_Asset_RevalDate); } + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException + { + return (I_A_Asset_Spread)MTable.get(getCtx(), I_A_Asset_Spread.Table_Name) + .getPO(getA_Asset_Spread_Type(), get_TrxName()); } + /** Set A_Asset_Spread_Type. @param A_Asset_Spread_Type A_Asset_Spread_Type */ public void setA_Asset_Spread_Type (int A_Asset_Spread_Type) @@ -271,6 +289,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Depreciation_Acct(), get_TrxName()); } + /** Set Depreciation Expense Account. @param A_Depreciation_Acct Depreciation Expense Account */ public void setA_Depreciation_Acct (int A_Depreciation_Acct) @@ -288,6 +311,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException + { + return (I_A_Depreciation_Method)MTable.get(getCtx(), I_A_Depreciation_Method.Table_Name) + .getPO(getA_Depreciation_Calc_Type(), get_TrxName()); } + /** Set Depreciation Calculation Type. @param A_Depreciation_Calc_Type Depreciation Calculation Type */ public void setA_Depreciation_Calc_Type (int A_Depreciation_Calc_Type) @@ -343,6 +371,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return (String)get_Value(COLUMNNAME_A_Depreciation_Manual_Period); } + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException + { + return (I_A_Depreciation_Table_Header)MTable.get(getCtx(), I_A_Depreciation_Table_Header.Table_Name) + .getPO(getA_Depreciation_Table_Header_ID(), get_TrxName()); } + /** Set A_Depreciation_Table_Header_ID. @param A_Depreciation_Table_Header_ID A_Depreciation_Table_Header_ID */ public void setA_Depreciation_Table_Header_ID (int A_Depreciation_Table_Header_ID) @@ -380,6 +413,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return bd; } + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Loss(), get_TrxName()); } + /** Set Loss on Disposal. @param A_Disposal_Loss Loss on Disposal */ public void setA_Disposal_Loss (int A_Disposal_Loss) @@ -397,6 +435,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Revenue(), get_TrxName()); } + /** Set Disposal Revenue. @param A_Disposal_Revenue Disposal Revenue */ public void setA_Disposal_Revenue (int A_Disposal_Revenue) @@ -414,6 +457,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_A_Asset getA_Parent_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Parent_Asset_ID(), get_TrxName()); } + /** Set Asset ID. @param A_Parent_Asset_ID Asset ID */ public void setA_Parent_Asset_ID (int A_Parent_Asset_ID) @@ -644,6 +692,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return bd; } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact @@ -792,21 +845,10 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -854,6 +896,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } + /** Set Partner Location. @param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner @@ -877,6 +924,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -900,6 +952,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_ValidCombination_ID(), get_TrxName()); } + /** Set Combination. @param C_ValidCombination_ID Valid Account Combination @@ -999,6 +1056,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return (String)get_Value(COLUMNNAME_ChangeType); } + public I_A_Depreciation_Convention getConventionT() throws RuntimeException + { + return (I_A_Depreciation_Convention)MTable.get(getCtx(), I_A_Depreciation_Convention.Table_Name) + .getPO(getConventionType(), get_TrxName()); } + /** Set ConventionType. @param ConventionType ConventionType */ public void setConventionType (int ConventionType) @@ -1033,6 +1095,11 @@ public class X_A_Asset_Change extends PO implements I_A_Asset_Change, I_Persiste return (Timestamp)get_Value(COLUMNNAME_DateAcct); } + public I_A_Depreciation getDepreciationT() throws RuntimeException + { + return (I_A_Depreciation)MTable.get(getCtx(), I_A_Depreciation.Table_Name) + .getPO(getDepreciationType(), get_TrxName()); } + /** Set DepreciationType. @param DepreciationType DepreciationType */ public void setDepreciationType (int DepreciationType) 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 366063c005..a44fc8053b 100644 --- a/base/src/org/compiere/model/X_A_Asset_Delivery.java +++ b/base/src/org/compiere/model/X_A_Asset_Delivery.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for A_Asset_Delivery @@ -98,21 +96,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers return ii.intValue(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -137,21 +124,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -244,21 +220,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers return (String)get_Value(COLUMNNAME_Lot); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -283,21 +248,10 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers return ii.intValue(); } - public I_M_ProductDownload getM_ProductDownload() throws RuntimeException + public I_M_ProductDownload getM_ProductDownload() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductDownload.Table_Name); - I_M_ProductDownload result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductDownload)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductDownload_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductDownload)MTable.get(getCtx(), I_M_ProductDownload.Table_Name) + .getPO(getM_ProductDownload_ID(), get_TrxName()); } /** Set Product Download. @param M_ProductDownload_ID 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 16fd302833..3815274854 100644 --- a/base/src/org/compiere/model/X_A_Asset_Disposed.java +++ b/base/src/org/compiere/model/X_A_Asset_Disposed.java @@ -135,6 +135,11 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers return ii.intValue(); } + public I_A_Asset getA_Asset_Trade() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_Trade_ID(), get_TrxName()); } + /** Set A_Asset_Trade_ID. @param A_Asset_Trade_ID A_Asset_Trade_ID */ public void setA_Asset_Trade_ID (int A_Asset_Trade_ID) @@ -240,6 +245,11 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers return bd; } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar 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 b7cbf29f8b..d20272a6f1 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 @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,6 +79,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return sb.toString(); } + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Accumdepreciation_Acct(), get_TrxName()); } + /** Set Accumulated Depreciation. @param A_Accumdepreciation_Acct Accumulated Depreciation */ public void setA_Accumdepreciation_Acct (int A_Accumdepreciation_Acct) @@ -98,6 +101,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Asset_Acct(), get_TrxName()); } + /** Set Asset Cost Account. @param A_Asset_Acct Asset Cost Account */ public void setA_Asset_Acct (int A_Asset_Acct) @@ -143,21 +151,10 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return new KeyNamePair(get_ID(), String.valueOf(getA_Asset_Group_Acct_ID())); } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -182,6 +179,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException + { + return (I_A_Asset_Spread)MTable.get(getCtx(), I_A_Asset_Spread.Table_Name) + .getPO(getA_Asset_Spread_Type(), get_TrxName()); } + /** Set A_Asset_Spread_Type. @param A_Asset_Spread_Type A_Asset_Spread_Type */ public void setA_Asset_Spread_Type (int A_Asset_Spread_Type) @@ -199,6 +201,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Depreciation_Acct(), get_TrxName()); } + /** Set Depreciation Expense Account. @param A_Depreciation_Acct Depreciation Expense Account */ public void setA_Depreciation_Acct (int A_Depreciation_Acct) @@ -216,6 +223,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException + { + return (I_A_Depreciation_Method)MTable.get(getCtx(), I_A_Depreciation_Method.Table_Name) + .getPO(getA_Depreciation_Calc_Type(), get_TrxName()); } + /** Set Depreciation Calculation Type. @param A_Depreciation_Calc_Type Depreciation Calculation Type */ public void setA_Depreciation_Calc_Type (int A_Depreciation_Calc_Type) @@ -291,6 +303,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return (String)get_Value(COLUMNNAME_A_Depreciation_Manual_Period); } + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException + { + return (I_A_Depreciation_Table_Header)MTable.get(getCtx(), I_A_Depreciation_Table_Header.Table_Name) + .getPO(getA_Depreciation_Table_Header_ID(), get_TrxName()); } + /** Set A_Depreciation_Table_Header_ID. @param A_Depreciation_Table_Header_ID A_Depreciation_Table_Header_ID */ public void setA_Depreciation_Table_Header_ID (int A_Depreciation_Table_Header_ID) @@ -328,6 +345,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return bd; } + public I_C_ValidCombination getA_Disposal_G() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Gain(), get_TrxName()); } + /** Set A_Disposal_Gain. @param A_Disposal_Gain A_Disposal_Gain */ public void setA_Disposal_Gain (int A_Disposal_Gain) @@ -345,6 +367,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Loss(), get_TrxName()); } + /** Set Loss on Disposal. @param A_Disposal_Loss Loss on Disposal */ public void setA_Disposal_Loss (int A_Disposal_Loss) @@ -362,6 +389,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Revenue(), get_TrxName()); } + /** Set Disposal Revenue. @param A_Disposal_Revenue Disposal Revenue */ public void setA_Disposal_Revenue (int A_Disposal_Revenue) @@ -379,6 +411,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Cur(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Current Year. @param A_Reval_Accumdep_Offset_Cur Revaluation Accumulated Depreciation Offset for Current Year */ public void setA_Reval_Accumdep_Offset_Cur (int A_Reval_Accumdep_Offset_Cur) @@ -396,6 +433,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Prior Year. @param A_Reval_Accumdep_Offset_Prior Revaluation Accumulated Depreciation Offset for Prior Year */ public void setA_Reval_Accumdep_Offset_Prior (int A_Reval_Accumdep_Offset_Prior) @@ -436,6 +478,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return (String)get_Value(COLUMNNAME_A_Reval_Cal_Method); } + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset(), get_TrxName()); } + /** Set Revaluation Cost Offset for Current Year. @param A_Reval_Cost_Offset Revaluation Cost Offset for Current Year */ public void setA_Reval_Cost_Offset (int A_Reval_Cost_Offset) @@ -453,6 +500,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Cost Offset for Prior Year. @param A_Reval_Cost_Offset_Prior Revaluation Cost Offset for Prior Year */ public void setA_Reval_Cost_Offset_Prior (int A_Reval_Cost_Offset_Prior) @@ -470,6 +522,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Depexp_Offset(), get_TrxName()); } + /** Set Revaluation Expense Offs. @param A_Reval_Depexp_Offset Revaluation Expense Offs */ public void setA_Reval_Depexp_Offset (int A_Reval_Depexp_Offset) @@ -504,21 +561,10 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -543,6 +589,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_A_Depreciation_Convention getConventionT() throws RuntimeException + { + return (I_A_Depreciation_Convention)MTable.get(getCtx(), I_A_Depreciation_Convention.Table_Name) + .getPO(getConventionType(), get_TrxName()); } + /** Set ConventionType. @param ConventionType ConventionType */ public void setConventionType (int ConventionType) @@ -560,6 +611,11 @@ public class X_A_Asset_Group_Acct extends PO implements I_A_Asset_Group_Acct, I_ return ii.intValue(); } + public I_A_Depreciation getDepreciationT() throws RuntimeException + { + return (I_A_Depreciation)MTable.get(getCtx(), I_A_Depreciation.Table_Name) + .getPO(getDepreciationType(), get_TrxName()); } + /** Set DepreciationType. @param DepreciationType DepreciationType */ public void setDepreciationType (int DepreciationType) 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 7e75e6099e..2e262bd98d 100644 --- a/base/src/org/compiere/model/X_A_Asset_Retirement.java +++ b/base/src/org/compiere/model/X_A_Asset_Retirement.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -187,21 +174,10 @@ public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_ return bd; } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID 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 2fdcf55f24..332f3944ce 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 @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for A_Asset_Reval_Entry @@ -216,21 +214,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, return (String)get_Value(COLUMNNAME_A_Reval_Multiplier); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -255,21 +242,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -294,21 +270,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -333,6 +298,11 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar @@ -424,21 +394,10 @@ public class X_A_Asset_Reval_Entry extends PO implements I_A_Asset_Reval_Entry, return (String)get_Value(COLUMNNAME_DocumentNo); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID 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 5d9c0a9a19..c078c8fe66 100644 --- a/base/src/org/compiere/model/X_A_Asset_Split.java +++ b/base/src/org/compiere/model/X_A_Asset_Split.java @@ -168,6 +168,11 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent return ii.intValue(); } + public I_A_Asset getA_Asset_To() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID_To(), get_TrxName()); } + /** Set To Asset ID. @param A_Asset_ID_To To Asset ID */ public void setA_Asset_ID_To (int A_Asset_ID_To) @@ -345,6 +350,11 @@ public class X_A_Asset_Split extends PO implements I_A_Asset_Split, I_Persistent return false; } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar 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 c38b866aff..bfc353b182 100644 --- a/base/src/org/compiere/model/X_A_Asset_Transfer.java +++ b/base/src/org/compiere/model/X_A_Asset_Transfer.java @@ -108,6 +108,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_ValidCombination getA_Accumdepreciation_Acct_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Accumdepreciation_Acct_New(), get_TrxName()); } + /** Set New Accum Depreciation Acct. @param A_Accumdepreciation_Acct_New New Accum Depreciation Acct */ public void setA_Accumdepreciation_Acct_New (int A_Accumdepreciation_Acct_New) @@ -176,6 +181,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_ValidCombination getA_Asset_Acct_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Asset_Acct_New(), get_TrxName()); } + /** Set New Asset Cost Acct. @param A_Asset_Acct_New New Asset Cost Acct */ public void setA_Asset_Acct_New (int A_Asset_Acct_New) @@ -275,6 +285,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_ValidCombination getA_Depreciation_Acct_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Depreciation_Acct_New(), get_TrxName()); } + /** Set New Depreciation Exp Acct. @param A_Depreciation_Acct_New New Depreciation Exp Acct */ public void setA_Depreciation_Acct_New (int A_Depreciation_Acct_New) @@ -323,6 +338,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Loss_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Loss_New(), get_TrxName()); } + /** Set New Disposal Loss. @param A_Disposal_Loss_New New Disposal Loss */ public void setA_Disposal_Loss_New (int A_Disposal_Loss_New) @@ -371,6 +391,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Revenue_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Revenue_New(), get_TrxName()); } + /** Set New Disposal Revenue. @param A_Disposal_Revenue_New New Disposal Revenue */ public void setA_Disposal_Revenue_New (int A_Disposal_Revenue_New) @@ -495,6 +520,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return false; } + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + { + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } + /** Set Accounting Schema. @param C_AcctSchema_ID Rules for accounting @@ -518,6 +548,11 @@ public class X_A_Asset_Transfer extends PO implements I_A_Asset_Transfer, I_Pers return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar 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 7c1013a60d..3874436915 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Build.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Build.java @@ -99,6 +99,11 @@ public class X_A_Depreciation_Build extends PO implements I_A_Depreciation_Build return new KeyNamePair(get_ID(), String.valueOf(getA_Depreciation_Build_ID())); } + public I_A_Asset getA_End_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_End_Asset_ID(), get_TrxName()); } + /** Set End Aset ID. @param A_End_Asset_ID End Aset ID */ public void setA_End_Asset_ID (int A_End_Asset_ID) @@ -119,6 +124,11 @@ public class X_A_Depreciation_Build extends PO implements I_A_Depreciation_Build return ii.intValue(); } + public I_A_Asset getA_Start_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Start_Asset_ID(), get_TrxName()); } + /** Set A_Start_Asset_ID. @param A_Start_Asset_ID A_Start_Asset_ID */ public void setA_Start_Asset_ID (int A_Start_Asset_ID) @@ -139,6 +149,11 @@ public class X_A_Depreciation_Build extends PO implements I_A_Depreciation_Build return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar 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 f1036814b4..11e718b8d3 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Entry.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Entry.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for A_Depreciation_Entry @@ -147,21 +145,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry return (String)get_Value(COLUMNNAME_A_Entry_Type); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -186,21 +173,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -225,21 +201,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -264,6 +229,11 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar @@ -355,21 +325,10 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry return (String)get_Value(COLUMNNAME_DocumentNo); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID 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 c55fe495a6..d8a37ecd49 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Exp.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Exp.java @@ -81,6 +81,11 @@ public class X_A_Depreciation_Exp extends PO implements I_A_Depreciation_Exp, I_ return sb.toString(); } + public I_C_ValidCombination getA_Account_Num() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Account_Number(), get_TrxName()); } + /** Set A_Account_Number. @param A_Account_Number A_Account_Number */ public void setA_Account_Number (int A_Account_Number) 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 82481cf528..2bcbd1924e 100644 --- a/base/src/org/compiere/model/X_A_Depreciation_Forecast.java +++ b/base/src/org/compiere/model/X_A_Depreciation_Forecast.java @@ -103,6 +103,11 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo return new KeyNamePair(get_ID(), String.valueOf(getA_Depreciation_Forecast_ID())); } + public I_A_Asset getA_End_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_End_Asset_ID(), get_TrxName()); } + /** Set End Aset ID. @param A_End_Asset_ID End Aset ID */ public void setA_End_Asset_ID (int A_End_Asset_ID) @@ -123,6 +128,11 @@ public class X_A_Depreciation_Forecast extends PO implements I_A_Depreciation_Fo return ii.intValue(); } + public I_A_Asset getA_Start_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Start_Asset_ID(), get_TrxName()); } + /** Set A_Start_Asset_ID. @param A_Start_Asset_ID A_Start_Asset_ID */ public void setA_Start_Asset_ID (int A_Start_Asset_ID) diff --git a/base/src/org/compiere/model/X_A_Registration.java b/base/src/org/compiere/model/X_A_Registration.java index 577e27fbc8..4337e0ac63 100644 --- a/base/src/org/compiere/model/X_A_Registration.java +++ b/base/src/org/compiere/model/X_A_Registration.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for A_Registration @@ -78,21 +76,10 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -140,21 +127,10 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -196,21 +172,10 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -341,21 +306,10 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_A_RegistrationAttribute.java b/base/src/org/compiere/model/X_A_RegistrationAttribute.java index bc4c151f8a..66b875ab6e 100644 --- a/base/src/org/compiere/model/X_A_RegistrationAttribute.java +++ b/base/src/org/compiere/model/X_A_RegistrationAttribute.java @@ -98,6 +98,11 @@ public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAtt return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -121,6 +126,11 @@ public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAtt return ii.intValue(); } + public I_AD_Reference getAD_Reference_Value() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_Value_ID(), get_TrxName()); } + /** Set Reference Key. @param AD_Reference_Value_ID Required to specify, if data type is Table or List diff --git a/base/src/org/compiere/model/X_A_RegistrationProduct.java b/base/src/org/compiere/model/X_A_RegistrationProduct.java index 142deaba10..f60ab64b86 100644 --- a/base/src/org/compiere/model/X_A_RegistrationProduct.java +++ b/base/src/org/compiere/model/X_A_RegistrationProduct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for A_RegistrationProduct * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_A_RegistrationProduct extends PO implements I_A_RegistrationProdu return sb.toString(); } - public I_A_RegistrationAttribute getA_RegistrationAttribute() throws RuntimeException + public I_A_RegistrationAttribute getA_RegistrationAttribute() throws RuntimeException { - Class clazz = MTable.getClass(I_A_RegistrationAttribute.Table_Name); - I_A_RegistrationAttribute result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_RegistrationAttribute)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_RegistrationAttribute_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_RegistrationAttribute)MTable.get(getCtx(), I_A_RegistrationAttribute.Table_Name) + .getPO(getA_RegistrationAttribute_ID(), get_TrxName()); } /** Set Registration Attribute. @param A_RegistrationAttribute_ID @@ -128,21 +115,10 @@ public class X_A_RegistrationProduct extends PO implements I_A_RegistrationProdu return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_A_RegistrationValue.java b/base/src/org/compiere/model/X_A_RegistrationValue.java index 0f1ceaf273..3eb4fc5beb 100644 --- a/base/src/org/compiere/model/X_A_RegistrationValue.java +++ b/base/src/org/compiere/model/X_A_RegistrationValue.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for A_RegistrationValue @@ -74,21 +72,10 @@ public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, return sb.toString(); } - public I_A_Registration getA_Registration() throws RuntimeException + public I_A_Registration getA_Registration() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Registration.Table_Name); - I_A_Registration result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Registration)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Registration_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Registration)MTable.get(getCtx(), I_A_Registration.Table_Name) + .getPO(getA_Registration_ID(), get_TrxName()); } /** Set Registration. @param A_Registration_ID @@ -113,21 +100,10 @@ public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, return ii.intValue(); } - public I_A_RegistrationAttribute getA_RegistrationAttribute() throws RuntimeException + public I_A_RegistrationAttribute getA_RegistrationAttribute() throws RuntimeException { - Class clazz = MTable.getClass(I_A_RegistrationAttribute.Table_Name); - I_A_RegistrationAttribute result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_RegistrationAttribute)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_RegistrationAttribute_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_RegistrationAttribute)MTable.get(getCtx(), I_A_RegistrationAttribute.Table_Name) + .getPO(getA_RegistrationAttribute_ID(), get_TrxName()); } /** Set Registration Attribute. @param A_RegistrationAttribute_ID diff --git a/base/src/org/compiere/model/X_B_Bid.java b/base/src/org/compiere/model/X_B_Bid.java index 86a27cdef9..888276f5d9 100644 --- a/base/src/org/compiere/model/X_B_Bid.java +++ b/base/src/org/compiere/model/X_B_Bid.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_Bid @@ -77,21 +75,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -139,21 +126,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent return ii.intValue(); } - public I_B_BuyerFunds getB_BuyerFunds() throws RuntimeException + public I_B_BuyerFunds getB_BuyerFunds() throws RuntimeException { - Class clazz = MTable.getClass(I_B_BuyerFunds.Table_Name); - I_B_BuyerFunds result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_BuyerFunds)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_BuyerFunds_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_BuyerFunds)MTable.get(getCtx(), I_B_BuyerFunds.Table_Name) + .getPO(getB_BuyerFunds_ID(), get_TrxName()); } /** Set Buyer Funds. @param B_BuyerFunds_ID @@ -178,21 +154,10 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent return ii.intValue(); } - public I_B_Topic getB_Topic() throws RuntimeException + public I_B_Topic getB_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_B_Topic.Table_Name); - I_B_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_Topic)MTable.get(getCtx(), I_B_Topic.Table_Name) + .getPO(getB_Topic_ID(), get_TrxName()); } /** Set Topic. @param B_Topic_ID diff --git a/base/src/org/compiere/model/X_B_BidComment.java b/base/src/org/compiere/model/X_B_BidComment.java index f354c4c11e..f20a458fe5 100644 --- a/base/src/org/compiere/model/X_B_BidComment.java +++ b/base/src/org/compiere/model/X_B_BidComment.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for B_BidComment * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent return ii.intValue(); } - public I_B_Topic getB_Topic() throws RuntimeException + public I_B_Topic getB_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_B_Topic.Table_Name); - I_B_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_Topic)MTable.get(getCtx(), I_B_Topic.Table_Name) + .getPO(getB_Topic_ID(), get_TrxName()); } /** Set Topic. @param B_Topic_ID diff --git a/base/src/org/compiere/model/X_B_Buyer.java b/base/src/org/compiere/model/X_B_Buyer.java index 6f3bf86dbe..c24c818611 100644 --- a/base/src/org/compiere/model/X_B_Buyer.java +++ b/base/src/org/compiere/model/X_B_Buyer.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_Buyer @@ -75,21 +73,10 @@ public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_B_BuyerFunds.java b/base/src/org/compiere/model/X_B_BuyerFunds.java index aef2d44986..0a23b0a494 100644 --- a/base/src/org/compiere/model/X_B_BuyerFunds.java +++ b/base/src/org/compiere/model/X_B_BuyerFunds.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -147,21 +134,10 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -186,21 +162,10 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_B_Offer.java b/base/src/org/compiere/model/X_B_Offer.java index 7441548e94..91d68bc087 100644 --- a/base/src/org/compiere/model/X_B_Offer.java +++ b/base/src/org/compiere/model/X_B_Offer.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_Offer @@ -77,21 +75,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -139,21 +126,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent return ii.intValue(); } - public I_B_SellerFunds getB_SellerFunds() throws RuntimeException + public I_B_SellerFunds getB_SellerFunds() throws RuntimeException { - Class clazz = MTable.getClass(I_B_SellerFunds.Table_Name); - I_B_SellerFunds result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_SellerFunds)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_SellerFunds_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_SellerFunds)MTable.get(getCtx(), I_B_SellerFunds.Table_Name) + .getPO(getB_SellerFunds_ID(), get_TrxName()); } /** Set Seller Funds. @param B_SellerFunds_ID @@ -178,21 +154,10 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent return ii.intValue(); } - public I_B_Topic getB_Topic() throws RuntimeException + public I_B_Topic getB_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_B_Topic.Table_Name); - I_B_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_Topic)MTable.get(getCtx(), I_B_Topic.Table_Name) + .getPO(getB_Topic_ID(), get_TrxName()); } /** Set Topic. @param B_Topic_ID diff --git a/base/src/org/compiere/model/X_B_Seller.java b/base/src/org/compiere/model/X_B_Seller.java index ce3fcdbffc..07bb37d072 100644 --- a/base/src/org/compiere/model/X_B_Seller.java +++ b/base/src/org/compiere/model/X_B_Seller.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_Seller @@ -76,21 +74,10 @@ public class X_B_Seller extends PO implements I_B_Seller, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_B_SellerFunds.java b/base/src/org/compiere/model/X_B_SellerFunds.java index f792e40855..2725819541 100644 --- a/base/src/org/compiere/model/X_B_SellerFunds.java +++ b/base/src/org/compiere/model/X_B_SellerFunds.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -147,21 +134,10 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -186,21 +162,10 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_B_Topic.java b/base/src/org/compiere/model/X_B_Topic.java index 29916359f8..f02184e8ff 100644 --- a/base/src/org/compiere/model/X_B_Topic.java +++ b/base/src/org/compiere/model/X_B_Topic.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_Topic @@ -105,21 +103,10 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent return ii.intValue(); } - public I_B_TopicCategory getB_TopicCategory() throws RuntimeException + public I_B_TopicCategory getB_TopicCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_B_TopicCategory.Table_Name); - I_B_TopicCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_TopicCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_TopicCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_TopicCategory)MTable.get(getCtx(), I_B_TopicCategory.Table_Name) + .getPO(getB_TopicCategory_ID(), get_TrxName()); } /** Set Topic Category. @param B_TopicCategory_ID @@ -144,21 +131,10 @@ public class X_B_Topic extends PO implements I_B_Topic, I_Persistent return ii.intValue(); } - public I_B_TopicType getB_TopicType() throws RuntimeException + public I_B_TopicType getB_TopicType() throws RuntimeException { - Class clazz = MTable.getClass(I_B_TopicType.Table_Name); - I_B_TopicType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_TopicType)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_TopicType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_TopicType)MTable.get(getCtx(), I_B_TopicType.Table_Name) + .getPO(getB_TopicType_ID(), get_TrxName()); } /** Set Topic Type. @param B_TopicType_ID diff --git a/base/src/org/compiere/model/X_B_TopicCategory.java b/base/src/org/compiere/model/X_B_TopicCategory.java index 760ed9bba2..61b9043708 100644 --- a/base/src/org/compiere/model/X_B_TopicCategory.java +++ b/base/src/org/compiere/model/X_B_TopicCategory.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_TopicCategory @@ -97,21 +95,10 @@ public class X_B_TopicCategory extends PO implements I_B_TopicCategory, I_Persis return ii.intValue(); } - public I_B_TopicType getB_TopicType() throws RuntimeException + public I_B_TopicType getB_TopicType() throws RuntimeException { - Class clazz = MTable.getClass(I_B_TopicType.Table_Name); - I_B_TopicType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_B_TopicType)constructor.newInstance(new Object[] {getCtx(), new Integer(getB_TopicType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_B_TopicType)MTable.get(getCtx(), I_B_TopicType.Table_Name) + .getPO(getB_TopicType_ID(), get_TrxName()); } /** Set Topic Type. @param B_TopicType_ID diff --git a/base/src/org/compiere/model/X_B_TopicType.java b/base/src/org/compiere/model/X_B_TopicType.java index 976d6d0d66..01ff49f8d9 100644 --- a/base/src/org/compiere/model/X_B_TopicType.java +++ b/base/src/org/compiere/model/X_B_TopicType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for B_TopicType @@ -148,21 +146,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -187,21 +174,10 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -226,6 +202,11 @@ public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent return ii.intValue(); } + public I_M_Product getM_ProductMember() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductMember_ID(), get_TrxName()); } + /** Set Membership. @param M_ProductMember_ID Product used to deternine the price of the membership for the topic type diff --git a/base/src/org/compiere/model/X_CM_AccessContainer.java b/base/src/org/compiere/model/X_CM_AccessContainer.java index c303a7c5c3..c782268813 100644 --- a/base/src/org/compiere/model/X_CM_AccessContainer.java +++ b/base/src/org/compiere/model/X_CM_AccessContainer.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessContainer * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessContainer extends PO implements I_CM_AccessContainer, I_ return sb.toString(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID @@ -111,21 +98,10 @@ public class X_CM_AccessContainer extends PO implements I_CM_AccessContainer, I_ return ii.intValue(); } - public I_CM_Container getCM_Container() throws RuntimeException + public I_CM_Container getCM_Container() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Container.Table_Name); - I_CM_Container result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Container)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Container_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_Container_ID(), get_TrxName()); } /** Set Web Container. @param CM_Container_ID diff --git a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java index 413fb9e3b3..e95f8f961a 100644 --- a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java +++ b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessListBPGroup * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessListBPGroup extends PO implements I_CM_AccessListBPGroup return sb.toString(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -111,21 +98,10 @@ public class X_CM_AccessListBPGroup extends PO implements I_CM_AccessListBPGroup return ii.intValue(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID diff --git a/base/src/org/compiere/model/X_CM_AccessListRole.java b/base/src/org/compiere/model/X_CM_AccessListRole.java index ff060755cb..660e85cb34 100644 --- a/base/src/org/compiere/model/X_CM_AccessListRole.java +++ b/base/src/org/compiere/model/X_CM_AccessListRole.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessListRole * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessListRole extends PO implements I_CM_AccessListRole, I_Pe return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -111,21 +98,10 @@ public class X_CM_AccessListRole extends PO implements I_CM_AccessListRole, I_Pe return ii.intValue(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID diff --git a/base/src/org/compiere/model/X_CM_AccessMedia.java b/base/src/org/compiere/model/X_CM_AccessMedia.java index 804174fb05..9e5a3b71ad 100644 --- a/base/src/org/compiere/model/X_CM_AccessMedia.java +++ b/base/src/org/compiere/model/X_CM_AccessMedia.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessMedia * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessMedia extends PO implements I_CM_AccessMedia, I_Persiste return sb.toString(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID @@ -111,21 +98,10 @@ public class X_CM_AccessMedia extends PO implements I_CM_AccessMedia, I_Persiste return ii.intValue(); } - public I_CM_Media getCM_Media() throws RuntimeException + public I_CM_Media getCM_Media() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Media.Table_Name); - I_CM_Media result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Media)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Media_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Media)MTable.get(getCtx(), I_CM_Media.Table_Name) + .getPO(getCM_Media_ID(), get_TrxName()); } /** Set Media Item. @param CM_Media_ID diff --git a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java index 092d52ed37..13654d3b7d 100644 --- a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java +++ b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessNewsChannel * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel return sb.toString(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID @@ -111,21 +98,10 @@ public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel return ii.intValue(); } - public I_CM_NewsChannel getCM_NewsChannel() throws RuntimeException + public I_CM_NewsChannel getCM_NewsChannel() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_NewsChannel.Table_Name); - I_CM_NewsChannel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_NewsChannel)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_NewsChannel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_NewsChannel)MTable.get(getCtx(), I_CM_NewsChannel.Table_Name) + .getPO(getCM_NewsChannel_ID(), get_TrxName()); } /** Set News Channel. @param CM_NewsChannel_ID diff --git a/base/src/org/compiere/model/X_CM_AccessStage.java b/base/src/org/compiere/model/X_CM_AccessStage.java index 80d6a44fe6..a627952c75 100644 --- a/base/src/org/compiere/model/X_CM_AccessStage.java +++ b/base/src/org/compiere/model/X_CM_AccessStage.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_AccessStage * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_CM_AccessStage extends PO implements I_CM_AccessStage, I_Persiste return sb.toString(); } - public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException + public I_CM_AccessProfile getCM_AccessProfile() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_AccessProfile.Table_Name); - I_CM_AccessProfile result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_AccessProfile)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_AccessProfile_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_AccessProfile)MTable.get(getCtx(), I_CM_AccessProfile.Table_Name) + .getPO(getCM_AccessProfile_ID(), get_TrxName()); } /** Set Web Access Profile. @param CM_AccessProfile_ID @@ -111,21 +98,10 @@ public class X_CM_AccessStage extends PO implements I_CM_AccessStage, I_Persiste return ii.intValue(); } - public I_CM_CStage getCM_CStage() throws RuntimeException + public I_CM_CStage getCM_CStage() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_CStage.Table_Name); - I_CM_CStage result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_CStage)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_CStage_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_CStage)MTable.get(getCtx(), I_CM_CStage.Table_Name) + .getPO(getCM_CStage_ID(), get_TrxName()); } /** Set Web Container Stage. @param CM_CStage_ID diff --git a/base/src/org/compiere/model/X_CM_Ad.java b/base/src/org/compiere/model/X_CM_Ad.java index 576391f82f..2654d1a416 100644 --- a/base/src/org/compiere/model/X_CM_Ad.java +++ b/base/src/org/compiere/model/X_CM_Ad.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Ad @@ -125,21 +123,10 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent return ii.intValue(); } - public I_CM_Ad_Cat getCM_Ad_Cat() throws RuntimeException + public I_CM_Ad_Cat getCM_Ad_Cat() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Ad_Cat.Table_Name); - I_CM_Ad_Cat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Ad_Cat)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Ad_Cat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Ad_Cat)MTable.get(getCtx(), I_CM_Ad_Cat.Table_Name) + .getPO(getCM_Ad_Cat_ID(), get_TrxName()); } /** Set Advertisement Category. @param CM_Ad_Cat_ID @@ -187,21 +174,10 @@ public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent return ii.intValue(); } - public I_CM_Media getCM_Media() throws RuntimeException + public I_CM_Media getCM_Media() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Media.Table_Name); - I_CM_Media result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Media)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Media_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Media)MTable.get(getCtx(), I_CM_Media.Table_Name) + .getPO(getCM_Media_ID(), get_TrxName()); } /** Set Media Item. @param CM_Media_ID 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 963490ea5a..87f05663d6 100644 --- a/base/src/org/compiere/model/X_CM_Ad_Cat.java +++ b/base/src/org/compiere/model/X_CM_Ad_Cat.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Ad_Cat @@ -97,21 +95,10 @@ public class X_CM_Ad_Cat extends PO implements I_CM_Ad_Cat, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_BroadcastServer.java b/base/src/org/compiere/model/X_CM_BroadcastServer.java index 22e26b7d7a..cc22ac000e 100644 --- a/base/src/org/compiere/model/X_CM_BroadcastServer.java +++ b/base/src/org/compiere/model/X_CM_BroadcastServer.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_BroadcastServer @@ -98,21 +96,10 @@ public class X_CM_BroadcastServer extends PO implements I_CM_BroadcastServer, I_ return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_CStage.java b/base/src/org/compiere/model/X_CM_CStage.java index e12d5f2130..ef139017b9 100644 --- a/base/src/org/compiere/model/X_CM_CStage.java +++ b/base/src/org/compiere/model/X_CM_CStage.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_CStage @@ -109,6 +107,11 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent return ii.intValue(); } + public I_CM_CStage getCM_CStageLink() throws RuntimeException + { + return (I_CM_CStage)MTable.get(getCtx(), I_CM_CStage.Table_Name) + .getPO(getCM_CStageLink_ID(), get_TrxName()); } + /** Set Container Link. @param CM_CStageLink_ID Stage Link to another Container in the Web Project @@ -132,21 +135,10 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent return ii.intValue(); } - public I_CM_Template getCM_Template() throws RuntimeException + public I_CM_Template getCM_Template() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Template.Table_Name); - I_CM_Template result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Template)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Template_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Template)MTable.get(getCtx(), I_CM_Template.Table_Name) + .getPO(getCM_Template_ID(), get_TrxName()); } /** Set Template. @param CM_Template_ID @@ -171,21 +163,10 @@ public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_CStageTTable.java b/base/src/org/compiere/model/X_CM_CStageTTable.java index 31e7f56159..6ceb7003db 100644 --- a/base/src/org/compiere/model/X_CM_CStageTTable.java +++ b/base/src/org/compiere/model/X_CM_CStageTTable.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_CStageTTable @@ -75,21 +73,10 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis return sb.toString(); } - public I_CM_CStage getCM_CStage() throws RuntimeException + public I_CM_CStage getCM_CStage() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_CStage.Table_Name); - I_CM_CStage result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_CStage)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_CStage_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_CStage)MTable.get(getCtx(), I_CM_CStage.Table_Name) + .getPO(getCM_CStage_ID(), get_TrxName()); } /** Set Web Container Stage. @param CM_CStage_ID @@ -137,21 +124,10 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis return ii.intValue(); } - public I_CM_TemplateTable getCM_TemplateTable() throws RuntimeException + public I_CM_TemplateTable getCM_TemplateTable() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_TemplateTable.Table_Name); - I_CM_TemplateTable result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_TemplateTable)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_TemplateTable_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_TemplateTable)MTable.get(getCtx(), I_CM_TemplateTable.Table_Name) + .getPO(getCM_TemplateTable_ID(), get_TrxName()); } /** Set Template Table. @param CM_TemplateTable_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 215fe5ef5c..ae6b500e6a 100644 --- a/base/src/org/compiere/model/X_CM_CStage_Element.java +++ b/base/src/org/compiere/model/X_CM_CStage_Element.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_CStage_Element @@ -97,21 +95,10 @@ public class X_CM_CStage_Element extends PO implements I_CM_CStage_Element, I_Pe return ii.intValue(); } - public I_CM_CStage getCM_CStage() throws RuntimeException + public I_CM_CStage getCM_CStage() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_CStage.Table_Name); - I_CM_CStage result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_CStage)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_CStage_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_CStage)MTable.get(getCtx(), I_CM_CStage.Table_Name) + .getPO(getCM_CStage_ID(), get_TrxName()); } /** Set Web Container Stage. @param CM_CStage_ID diff --git a/base/src/org/compiere/model/X_CM_Chat.java b/base/src/org/compiere/model/X_CM_Chat.java index 6e48f8f517..91bd3a96b4 100644 --- a/base/src/org/compiere/model/X_CM_Chat.java +++ b/base/src/org/compiere/model/X_CM_Chat.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Chat @@ -76,21 +74,10 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -138,21 +125,10 @@ public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent return ii.intValue(); } - public I_CM_ChatType getCM_ChatType() throws RuntimeException + public I_CM_ChatType getCM_ChatType() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_ChatType.Table_Name); - I_CM_ChatType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_ChatType)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_ChatType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_ChatType)MTable.get(getCtx(), I_CM_ChatType.Table_Name) + .getPO(getCM_ChatType_ID(), get_TrxName()); } /** Set Chat Type. @param CM_ChatType_ID diff --git a/base/src/org/compiere/model/X_CM_ChatEntry.java b/base/src/org/compiere/model/X_CM_ChatEntry.java index 2a892ee838..ae081672ee 100644 --- a/base/src/org/compiere/model/X_CM_ChatEntry.java +++ b/base/src/org/compiere/model/X_CM_ChatEntry.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_ChatEntry @@ -77,21 +75,10 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -159,21 +146,10 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent return (String)get_Value(COLUMNNAME_ChatEntryType); } - public I_CM_Chat getCM_Chat() throws RuntimeException + public I_CM_Chat getCM_Chat() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Chat.Table_Name); - I_CM_Chat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Chat)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Chat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Chat)MTable.get(getCtx(), I_CM_Chat.Table_Name) + .getPO(getCM_Chat_ID(), get_TrxName()); } /** Set Chat. @param CM_Chat_ID @@ -229,6 +205,11 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getCM_ChatEntry_ID())); } + public I_CM_ChatEntry getCM_ChatEntryGrandParent() throws RuntimeException + { + return (I_CM_ChatEntry)MTable.get(getCtx(), I_CM_ChatEntry.Table_Name) + .getPO(getCM_ChatEntryGrandParent_ID(), get_TrxName()); } + /** Set Chat Entry Grandparent. @param CM_ChatEntryGrandParent_ID Link to Grand Parent (root level) @@ -252,6 +233,11 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent return ii.intValue(); } + public I_CM_ChatEntry getCM_ChatEntryParent() throws RuntimeException + { + return (I_CM_ChatEntry)MTable.get(getCtx(), I_CM_ChatEntry.Table_Name) + .getPO(getCM_ChatEntryParent_ID(), get_TrxName()); } + /** Set Chat Entry Parent. @param CM_ChatEntryParent_ID Link to direct Parent diff --git a/base/src/org/compiere/model/X_CM_ChatType.java b/base/src/org/compiere/model/X_CM_ChatType.java index 571735202a..d32f380fdf 100644 --- a/base/src/org/compiere/model/X_CM_ChatType.java +++ b/base/src/org/compiere/model/X_CM_ChatType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_ChatType @@ -74,21 +72,10 @@ public class X_CM_ChatType extends PO implements I_CM_ChatType, I_Persistent return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java index 5284c6a5d6..d20a5870a8 100644 --- a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_ChatTypeUpdate * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Pe return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -112,21 +99,10 @@ public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Pe return ii.intValue(); } - public I_CM_ChatType getCM_ChatType() throws RuntimeException + public I_CM_ChatType getCM_ChatType() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_ChatType.Table_Name); - I_CM_ChatType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_ChatType)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_ChatType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_ChatType)MTable.get(getCtx(), I_CM_ChatType.Table_Name) + .getPO(getCM_ChatType_ID(), get_TrxName()); } /** Set Chat Type. @param CM_ChatType_ID diff --git a/base/src/org/compiere/model/X_CM_ChatUpdate.java b/base/src/org/compiere/model/X_CM_ChatUpdate.java index 2a89cc9076..6391fe3f87 100644 --- a/base/src/org/compiere/model/X_CM_ChatUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatUpdate.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_ChatUpdate * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -112,21 +99,10 @@ public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent return ii.intValue(); } - public I_CM_Chat getCM_Chat() throws RuntimeException + public I_CM_Chat getCM_Chat() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Chat.Table_Name); - I_CM_Chat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Chat)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Chat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Chat)MTable.get(getCtx(), I_CM_Chat.Table_Name) + .getPO(getCM_Chat_ID(), get_TrxName()); } /** Set Chat. @param CM_Chat_ID diff --git a/base/src/org/compiere/model/X_CM_Container.java b/base/src/org/compiere/model/X_CM_Container.java index 05356aca1d..448325baaa 100644 --- a/base/src/org/compiere/model/X_CM_Container.java +++ b/base/src/org/compiere/model/X_CM_Container.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Container @@ -107,6 +105,11 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent return ii.intValue(); } + public I_CM_Container getCM_ContainerLink() throws RuntimeException + { + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_ContainerLink_ID(), get_TrxName()); } + /** Set Container Link. @param CM_ContainerLink_ID Link to another Container in the Web Project @@ -130,21 +133,10 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent return ii.intValue(); } - public I_CM_Template getCM_Template() throws RuntimeException + public I_CM_Template getCM_Template() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Template.Table_Name); - I_CM_Template result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Template)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Template_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Template)MTable.get(getCtx(), I_CM_Template.Table_Name) + .getPO(getCM_Template_ID(), get_TrxName()); } /** Set Template. @param CM_Template_ID @@ -169,21 +161,10 @@ public class X_CM_Container extends PO implements I_CM_Container, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_ContainerTTable.java b/base/src/org/compiere/model/X_CM_ContainerTTable.java index b88315f8fa..0ddd95da85 100644 --- a/base/src/org/compiere/model/X_CM_ContainerTTable.java +++ b/base/src/org/compiere/model/X_CM_ContainerTTable.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_ContainerTTable @@ -75,21 +73,10 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ return sb.toString(); } - public I_CM_Container getCM_Container() throws RuntimeException + public I_CM_Container getCM_Container() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Container.Table_Name); - I_CM_Container result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Container)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Container_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_Container_ID(), get_TrxName()); } /** Set Web Container. @param CM_Container_ID @@ -137,21 +124,10 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_ return ii.intValue(); } - public I_CM_TemplateTable getCM_TemplateTable() throws RuntimeException + public I_CM_TemplateTable getCM_TemplateTable() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_TemplateTable.Table_Name); - I_CM_TemplateTable result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_TemplateTable)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_TemplateTable_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_TemplateTable)MTable.get(getCtx(), I_CM_TemplateTable.Table_Name) + .getPO(getCM_TemplateTable_ID(), get_TrxName()); } /** Set Template Table. @param CM_TemplateTable_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 b2e94e940e..8714539353 100644 --- a/base/src/org/compiere/model/X_CM_Container_Element.java +++ b/base/src/org/compiere/model/X_CM_Container_Element.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Container_Element @@ -97,21 +95,10 @@ public class X_CM_Container_Element extends PO implements I_CM_Container_Element return ii.intValue(); } - public I_CM_Container getCM_Container() throws RuntimeException + public I_CM_Container getCM_Container() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Container.Table_Name); - I_CM_Container result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Container)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Container_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_Container_ID(), get_TrxName()); } /** Set Web Container. @param CM_Container_ID 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 da827a9445..251bc9bee6 100644 --- a/base/src/org/compiere/model/X_CM_Container_URL.java +++ b/base/src/org/compiere/model/X_CM_Container_URL.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_Container_URL * @author Adempiere (generated) @@ -93,21 +91,10 @@ public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Pers return (Timestamp)get_Value(COLUMNNAME_Checked); } - public I_CM_Container getCM_Container() throws RuntimeException + public I_CM_Container getCM_Container() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Container.Table_Name); - I_CM_Container result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Container)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Container_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_Container_ID(), get_TrxName()); } /** Set Web Container. @param CM_Container_ID diff --git a/base/src/org/compiere/model/X_CM_Media.java b/base/src/org/compiere/model/X_CM_Media.java index e9d8c65bdf..e36e527a55 100644 --- a/base/src/org/compiere/model/X_CM_Media.java +++ b/base/src/org/compiere/model/X_CM_Media.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Media @@ -121,21 +119,10 @@ public class X_CM_Media extends PO implements I_CM_Media, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_MediaDeploy.java b/base/src/org/compiere/model/X_CM_MediaDeploy.java index 8f6935e15b..dc6e47f5ac 100644 --- a/base/src/org/compiere/model/X_CM_MediaDeploy.java +++ b/base/src/org/compiere/model/X_CM_MediaDeploy.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_MediaDeploy * @author Adempiere (generated) @@ -75,21 +73,10 @@ public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persiste return sb.toString(); } - public I_CM_Media getCM_Media() throws RuntimeException + public I_CM_Media getCM_Media() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Media.Table_Name); - I_CM_Media result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Media)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Media_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Media)MTable.get(getCtx(), I_CM_Media.Table_Name) + .getPO(getCM_Media_ID(), get_TrxName()); } /** Set Media Item. @param CM_Media_ID @@ -114,21 +101,10 @@ public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persiste return ii.intValue(); } - public I_CM_Media_Server getCM_Media_Server() throws RuntimeException + public I_CM_Media_Server getCM_Media_Server() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Media_Server.Table_Name); - I_CM_Media_Server result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Media_Server)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Media_Server_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Media_Server)MTable.get(getCtx(), I_CM_Media_Server.Table_Name) + .getPO(getCM_Media_Server_ID(), get_TrxName()); } /** Set Media Server. @param CM_Media_Server_ID 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 39a7789e32..5bc780b024 100644 --- a/base/src/org/compiere/model/X_CM_Media_Server.java +++ b/base/src/org/compiere/model/X_CM_Media_Server.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Media_Server @@ -98,21 +96,10 @@ public class X_CM_Media_Server extends PO implements I_CM_Media_Server, I_Persis return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_NewsChannel.java b/base/src/org/compiere/model/X_CM_NewsChannel.java index ab43218088..d7457378a6 100644 --- a/base/src/org/compiere/model/X_CM_NewsChannel.java +++ b/base/src/org/compiere/model/X_CM_NewsChannel.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_NewsChannel @@ -118,21 +116,10 @@ public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persiste return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_NewsItem.java b/base/src/org/compiere/model/X_CM_NewsItem.java index 0a49f23e1d..b072a9bc4a 100644 --- a/base/src/org/compiere/model/X_CM_NewsItem.java +++ b/base/src/org/compiere/model/X_CM_NewsItem.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for CM_NewsItem * @author Adempiere (generated) @@ -90,21 +88,10 @@ public class X_CM_NewsItem extends PO implements I_CM_NewsItem, I_Persistent return (String)get_Value(COLUMNNAME_Author); } - public I_CM_NewsChannel getCM_NewsChannel() throws RuntimeException + public I_CM_NewsChannel getCM_NewsChannel() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_NewsChannel.Table_Name); - I_CM_NewsChannel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_NewsChannel)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_NewsChannel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_NewsChannel)MTable.get(getCtx(), I_CM_NewsChannel.Table_Name) + .getPO(getCM_NewsChannel_ID(), get_TrxName()); } /** Set News Channel. @param CM_NewsChannel_ID diff --git a/base/src/org/compiere/model/X_CM_Template.java b/base/src/org/compiere/model/X_CM_Template.java index e3ade72630..1c50339361 100644 --- a/base/src/org/compiere/model/X_CM_Template.java +++ b/base/src/org/compiere/model/X_CM_Template.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Template @@ -102,21 +100,10 @@ public class X_CM_Template extends PO implements I_CM_Template, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_TemplateTable.java b/base/src/org/compiere/model/X_CM_TemplateTable.java index cba65a0c29..192487292d 100644 --- a/base/src/org/compiere/model/X_CM_TemplateTable.java +++ b/base/src/org/compiere/model/X_CM_TemplateTable.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_TemplateTable @@ -75,21 +73,10 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -114,21 +101,10 @@ public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Pers return ii.intValue(); } - public I_CM_Template getCM_Template() throws RuntimeException + public I_CM_Template getCM_Template() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Template.Table_Name); - I_CM_Template result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Template)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Template_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Template)MTable.get(getCtx(), I_CM_Template.Table_Name) + .getPO(getCM_Template_ID(), get_TrxName()); } /** Set Template. @param CM_Template_ID 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 5e399821b5..3322c9257f 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_Template_Ad_Cat @@ -74,21 +72,10 @@ public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_ return sb.toString(); } - public I_CM_Ad_Cat getCM_Ad_Cat() throws RuntimeException + public I_CM_Ad_Cat getCM_Ad_Cat() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Ad_Cat.Table_Name); - I_CM_Ad_Cat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Ad_Cat)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Ad_Cat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Ad_Cat)MTable.get(getCtx(), I_CM_Ad_Cat.Table_Name) + .getPO(getCM_Ad_Cat_ID(), get_TrxName()); } /** Set Advertisement Category. @param CM_Ad_Cat_ID @@ -113,21 +100,10 @@ public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_ return ii.intValue(); } - public I_CM_Template getCM_Template() throws RuntimeException + public I_CM_Template getCM_Template() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Template.Table_Name); - I_CM_Template result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Template)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Template_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Template)MTable.get(getCtx(), I_CM_Template.Table_Name) + .getPO(getCM_Template_ID(), get_TrxName()); } /** Set Template. @param CM_Template_ID diff --git a/base/src/org/compiere/model/X_CM_WebAccessLog.java b/base/src/org/compiere/model/X_CM_WebAccessLog.java index 27a1a02e32..81e55efeaf 100644 --- a/base/src/org/compiere/model/X_CM_WebAccessLog.java +++ b/base/src/org/compiere/model/X_CM_WebAccessLog.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for CM_WebAccessLog @@ -94,21 +92,10 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis return (String)get_Value(COLUMNNAME_AcceptLanguage); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -133,21 +120,10 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis return ii.intValue(); } - public I_CM_BroadcastServer getCM_BroadcastServer() throws RuntimeException + public I_CM_BroadcastServer getCM_BroadcastServer() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_BroadcastServer.Table_Name); - I_CM_BroadcastServer result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_BroadcastServer)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_BroadcastServer_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_BroadcastServer)MTable.get(getCtx(), I_CM_BroadcastServer.Table_Name) + .getPO(getCM_BroadcastServer_ID(), get_TrxName()); } /** Set Broadcast Server. @param CM_BroadcastServer_ID @@ -172,21 +148,10 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis return ii.intValue(); } - public I_CM_Media getCM_Media() throws RuntimeException + public I_CM_Media getCM_Media() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Media.Table_Name); - I_CM_Media result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Media)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Media_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Media)MTable.get(getCtx(), I_CM_Media.Table_Name) + .getPO(getCM_Media_ID(), get_TrxName()); } /** Set Media Item. @param CM_Media_ID @@ -234,21 +199,10 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_WebProject.java b/base/src/org/compiere/model/X_CM_WebProject.java index 9f8508226a..04f1b2f57b 100644 --- a/base/src/org/compiere/model/X_CM_WebProject.java +++ b/base/src/org/compiere/model/X_CM_WebProject.java @@ -81,6 +81,11 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent return sb.toString(); } + public I_AD_Tree getAD_TreeCMC() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_TreeCMC_ID(), get_TrxName()); } + /** Set Container Tree. @param AD_TreeCMC_ID Container Tree @@ -104,6 +109,11 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_TreeCMM() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_TreeCMM_ID(), get_TrxName()); } + /** Set Media Tree. @param AD_TreeCMM_ID Media Tree @@ -127,6 +137,11 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_TreeCMS() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_TreeCMS_ID(), get_TrxName()); } + /** Set Stage Tree. @param AD_TreeCMS_ID Stage Tree @@ -150,6 +165,11 @@ public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_TreeCMT() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_TreeCMT_ID(), get_TrxName()); } + /** Set Template Tree. @param AD_TreeCMT_ID Template Tree 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 29e1b96e09..d911e1cfa4 100644 --- a/base/src/org/compiere/model/X_CM_WebProject_Domain.java +++ b/base/src/org/compiere/model/X_CM_WebProject_Domain.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_WebProject_Domain @@ -75,21 +73,10 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain return sb.toString(); } - public I_CM_Container getCM_Container() throws RuntimeException + public I_CM_Container getCM_Container() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_Container.Table_Name); - I_CM_Container result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_Container)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_Container_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_Container)MTable.get(getCtx(), I_CM_Container.Table_Name) + .getPO(getCM_Container_ID(), get_TrxName()); } /** Set Web Container. @param CM_Container_ID @@ -137,21 +124,10 @@ public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID diff --git a/base/src/org/compiere/model/X_CM_WikiToken.java b/base/src/org/compiere/model/X_CM_WikiToken.java index fd58c4e228..76e4555603 100755 --- a/base/src/org/compiere/model/X_CM_WikiToken.java +++ b/base/src/org/compiere/model/X_CM_WikiToken.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for CM_WikiToken @@ -75,21 +73,10 @@ public class X_CM_WikiToken extends PO implements I_CM_WikiToken, I_Persistent return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_C_AcctProcessor.java b/base/src/org/compiere/model/X_C_AcctProcessor.java index 42eb5bc19a..c1166d6199 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessor.java +++ b/base/src/org/compiere/model/X_C_AcctProcessor.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_AcctProcessor @@ -79,21 +77,10 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -141,21 +128,10 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -343,6 +319,11 @@ public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persis return false; } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_C_AcctProcessorLog.java b/base/src/org/compiere/model/X_C_AcctProcessorLog.java index d98c10511c..e1e6bd9067 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessorLog.java +++ b/base/src/org/compiere/model/X_C_AcctProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_AcctProcessorLog * @author Adempiere (generated) @@ -90,21 +88,10 @@ public class X_C_AcctProcessorLog extends PO implements I_C_AcctProcessorLog, I_ return (byte[])get_Value(COLUMNNAME_BinaryData); } - public I_C_AcctProcessor getC_AcctProcessor() throws RuntimeException + public I_C_AcctProcessor getC_AcctProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctProcessor.Table_Name); - I_C_AcctProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctProcessor)MTable.get(getCtx(), I_C_AcctProcessor.Table_Name) + .getPO(getC_AcctProcessor_ID(), get_TrxName()); } /** Set Accounting Processor. @param C_AcctProcessor_ID diff --git a/base/src/org/compiere/model/X_C_AcctSchema.java b/base/src/org/compiere/model/X_C_AcctSchema.java index 4c51070491..bbe7ba2d84 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema.java +++ b/base/src/org/compiere/model/X_C_AcctSchema.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_AcctSchema @@ -167,21 +165,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -206,21 +193,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent return ii.intValue(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -628,21 +604,10 @@ public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent return false; } - public I_M_CostType getM_CostType() throws RuntimeException + public I_M_CostType getM_CostType() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostType.Table_Name); - I_M_CostType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostType)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostType)MTable.get(getCtx(), I_M_CostType.Table_Name) + .getPO(getM_CostType_ID(), get_TrxName()); } /** Set Cost Type. @param M_CostType_ID 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 78aa4d3a79..5c076a1f7d 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Default.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Default.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_AcctSchema_Default @@ -144,6 +142,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return sb.toString(); } + public I_C_ValidCombination getB_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Asset_Acct(), get_TrxName()); } + /** Set Bank Asset. @param B_Asset_Acct Bank Asset Account @@ -164,6 +167,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Expense_Acct(), get_TrxName()); } + /** Set Bank Expense. @param B_Expense_Acct Bank Expense Account @@ -184,6 +192,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_InterestExp_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InterestExp_Acct(), get_TrxName()); } + /** Set Bank Interest Expense. @param B_InterestExp_Acct Bank Interest Expense Account @@ -204,6 +217,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_InterestRev_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InterestRev_Acct(), get_TrxName()); } + /** Set Bank Interest Revenue. @param B_InterestRev_Acct Bank Interest Revenue Account @@ -224,6 +242,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_InTransit_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InTransit_Acct(), get_TrxName()); } + /** Set Bank In Transit. @param B_InTransit_Acct Bank In Transit Account @@ -244,6 +267,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_PaymentSelect_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_PaymentSelect_Acct(), get_TrxName()); } + /** Set Payment Selection. @param B_PaymentSelect_Acct AP Payment Selection Clearing Account @@ -264,6 +292,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_RevaluationGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_RevaluationGain_Acct(), get_TrxName()); } + /** Set Bank Revaluation Gain. @param B_RevaluationGain_Acct Bank Revaluation Gain Account @@ -284,6 +317,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_RevaluationLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_RevaluationLoss_Acct(), get_TrxName()); } + /** Set Bank Revaluation Loss. @param B_RevaluationLoss_Acct Bank Revaluation Loss Account @@ -304,6 +342,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_SettlementGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_SettlementGain_Acct(), get_TrxName()); } + /** Set Bank Settlement Gain. @param B_SettlementGain_Acct Bank Settlement Gain Account @@ -324,6 +367,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_SettlementLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_SettlementLoss_Acct(), get_TrxName()); } + /** Set Bank Settlement Loss. @param B_SettlementLoss_Acct Bank Settlement Loss Account @@ -344,6 +392,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_UnallocatedCash_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_UnallocatedCash_Acct(), get_TrxName()); } + /** Set Unallocated Cash. @param B_UnallocatedCash_Acct Unallocated Cash Clearing Account @@ -364,6 +417,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getB_Unidentified_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Unidentified_Acct(), get_TrxName()); } + /** Set Bank Unidentified Receipts. @param B_Unidentified_Acct Bank Unidentified Receipts Account @@ -384,21 +442,10 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -431,6 +478,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); } + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Prepayment_Acct(), get_TrxName()); } + /** Set Customer Prepayment. @param C_Prepayment_Acct Account for customer prepayments @@ -451,6 +503,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Acct(), get_TrxName()); } + /** Set Customer Receivables. @param C_Receivable_Acct Account for Customer Receivables @@ -471,6 +528,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Services_Acct(), get_TrxName()); } + /** Set Receivable Services. @param C_Receivable_Services_Acct Customer Accounts Receivables Services Account @@ -491,6 +553,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCB_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Asset_Acct(), get_TrxName()); } + /** Set Cash Book Asset. @param CB_Asset_Acct Cash Book Asset Account @@ -511,6 +578,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCB_CashTransfer_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_CashTransfer_Acct(), get_TrxName()); } + /** Set Cash Transfer. @param CB_CashTransfer_Acct Cash Transfer Clearing Account @@ -531,6 +603,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCB_Differences_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Differences_Acct(), get_TrxName()); } + /** Set Cash Book Differences. @param CB_Differences_Acct Cash Book Differences Account @@ -551,6 +628,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCB_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Expense_Acct(), get_TrxName()); } + /** Set Cash Book Expense. @param CB_Expense_Acct Cash Book Expense Account @@ -571,6 +653,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCB_Receipt_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Receipt_Acct(), get_TrxName()); } + /** Set Cash Book Receipt. @param CB_Receipt_Acct Cash Book Receipts Account @@ -591,6 +678,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCh_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCh_Expense_Acct(), get_TrxName()); } + /** Set Charge Expense. @param Ch_Expense_Acct Charge Expense Account @@ -611,6 +703,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getCh_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCh_Revenue_Acct(), get_TrxName()); } + /** Set Charge Revenue. @param Ch_Revenue_Acct Charge Revenue Account @@ -631,6 +728,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getE_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getE_Expense_Acct(), get_TrxName()); } + /** Set Employee Expense. @param E_Expense_Acct Account for Employee Expenses @@ -651,6 +753,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getE_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getE_Prepayment_Acct(), get_TrxName()); } + /** Set Employee Prepayment. @param E_Prepayment_Acct Account for Employee Expense Prepayments @@ -671,6 +778,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedReceipts_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedReceipts_Acct(), get_TrxName()); } + /** Set Not-invoiced Receipts. @param NotInvoicedReceipts_Acct Account for not-invoiced Material Receipts @@ -691,6 +803,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedReceivables_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedReceivables_Acct(), get_TrxName()); } + /** Set Not-invoiced Receivables. @param NotInvoicedReceivables_Acct Account for not invoiced Receivables @@ -711,6 +828,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedRevenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedRevenue_Acct(), get_TrxName()); } + /** Set Not-invoiced Revenue. @param NotInvoicedRevenue_Acct Account for not invoiced Revenue @@ -731,6 +853,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Asset_Acct(), get_TrxName()); } + /** Set Product Asset. @param P_Asset_Acct Account for Product Asset (Inventory) @@ -751,6 +878,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Burden_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Burden_Acct(), get_TrxName()); } + /** Set Burden. @param P_Burden_Acct The Burden account is the account used Manufacturing Order @@ -771,6 +903,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_COGS_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_COGS_Acct(), get_TrxName()); } + /** Set Product COGS. @param P_COGS_Acct Account for Cost of Goods Sold @@ -791,6 +928,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostAdjustment_Acct(), get_TrxName()); } + /** Set Cost Adjustment. @param P_CostAdjustment_Acct Product Cost Adjustment Account @@ -811,6 +953,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostOfProduction_Acct(), get_TrxName()); } + /** Set Cost Of Production. @param P_CostOfProduction_Acct The Cost Of Production account is the account used Manufacturing Order @@ -831,6 +978,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Expense_Acct(), get_TrxName()); } + /** Set Product Expense. @param P_Expense_Acct Account for Product Expense @@ -851,6 +1003,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_FloorStock_Acct(), get_TrxName()); } + /** Set Floor Stock. @param P_FloorStock_Acct The Floor Stock account is the account used Manufacturing Order @@ -871,6 +1028,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InventoryClearing_Acct(), get_TrxName()); } + /** Set Inventory Clearing. @param P_InventoryClearing_Acct Product Inventory Clearing Account @@ -891,6 +1053,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InvoicePriceVariance_Acct(), get_TrxName()); } + /** Set Invoice Price Variance. @param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) @@ -911,6 +1078,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Labor_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Labor_Acct(), get_TrxName()); } + /** Set Labor. @param P_Labor_Acct The Labor account is the account used Manufacturing Order @@ -931,6 +1103,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MethodChangeVariance_Acct(), get_TrxName()); } + /** Set Method Change Variance. @param P_MethodChangeVariance_Acct The Method Change Variance account is the account used Manufacturing Order @@ -951,6 +1128,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MixVariance_Acct(), get_TrxName()); } + /** Set Mix Variance. @param P_MixVariance_Acct The Mix Variance account is the account used Manufacturing Order @@ -971,6 +1153,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_OutsideProcessing_Acct(), get_TrxName()); } + /** Set Outside Processing. @param P_OutsideProcessing_Acct The Outside Processing Account is the account used in Manufacturing Order @@ -991,6 +1178,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Overhead_Acct(), get_TrxName()); } + /** Set Overhead. @param P_Overhead_Acct The Overhead account is the account used in Manufacturing Order @@ -1011,6 +1203,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_PurchasePriceVariance_Acct(), get_TrxName()); } + /** Set Purchase Price Variance. @param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) @@ -1031,6 +1228,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_RateVariance_Acct(), get_TrxName()); } + /** Set Rate Variance. @param P_RateVariance_Acct The Rate Variance account is the account used Manufacturing Order @@ -1051,6 +1253,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Revenue_Acct(), get_TrxName()); } + /** Set Product Revenue. @param P_Revenue_Acct Account for Product Revenue (Sales Account) @@ -1071,6 +1278,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Scrap_Acct(), get_TrxName()); } + /** Set Scrap. @param P_Scrap_Acct The Scrap account is the account used in Manufacturing Order @@ -1091,6 +1303,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountGrant_Acct(), get_TrxName()); } + /** Set Trade Discount Granted. @param P_TradeDiscountGrant_Acct Trade Discount Granted Account @@ -1111,6 +1328,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountRec_Acct(), get_TrxName()); } + /** Set Trade Discount Received. @param P_TradeDiscountRec_Acct Trade Discount Receivable Account @@ -1131,6 +1353,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_UsageVariance_Acct(), get_TrxName()); } + /** Set Usage Variance. @param P_UsageVariance_Acct The Usage Variance account is the account used Manufacturing Order @@ -1151,6 +1378,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getP_WIP_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_WIP_Acct(), get_TrxName()); } + /** Set Work In Process. @param P_WIP_Acct The Work in Process account is the account used Manufacturing Order @@ -1171,6 +1403,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getPayDiscount_Exp_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPayDiscount_Exp_Acct(), get_TrxName()); } + /** Set Payment Discount Expense. @param PayDiscount_Exp_Acct Payment Discount Expense Account @@ -1191,6 +1428,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getPayDiscount_Rev_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPayDiscount_Rev_Acct(), get_TrxName()); } + /** Set Payment Discount Revenue. @param PayDiscount_Rev_Acct Payment Discount Revenue Account @@ -1211,6 +1453,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getPJ_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPJ_Asset_Acct(), get_TrxName()); } + /** Set Project Asset. @param PJ_Asset_Acct Project Asset Account @@ -1231,6 +1478,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getPJ_WIP_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPJ_WIP_Acct(), get_TrxName()); } + /** Set Work In Progress. @param PJ_WIP_Acct Account for Work in Progress @@ -1272,6 +1524,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return false; } + public I_C_ValidCombination getRealizedGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getRealizedGain_Acct(), get_TrxName()); } + /** Set Realized Gain Acct. @param RealizedGain_Acct Realized Gain Account @@ -1292,6 +1549,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getRealizedLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getRealizedLoss_Acct(), get_TrxName()); } + /** Set Realized Loss Acct. @param RealizedLoss_Acct Realized Loss Account @@ -1312,6 +1574,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getT_Credit_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Credit_Acct(), get_TrxName()); } + /** Set Tax Credit. @param T_Credit_Acct Account for Tax you can reclaim @@ -1332,6 +1599,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getT_Due_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Due_Acct(), get_TrxName()); } + /** Set Tax Due. @param T_Due_Acct Account for Tax you have to pay @@ -1352,6 +1624,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getT_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Expense_Acct(), get_TrxName()); } + /** Set Tax Expense. @param T_Expense_Acct Account for paid tax you cannot reclaim @@ -1372,6 +1649,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getT_Liability_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Liability_Acct(), get_TrxName()); } + /** Set Tax Liability. @param T_Liability_Acct Account for Tax declaration liability @@ -1392,6 +1674,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getT_Receivables_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Receivables_Acct(), get_TrxName()); } + /** Set Tax Receivables. @param T_Receivables_Acct Account for Tax credit after tax declaration @@ -1412,6 +1699,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnEarnedRevenue_Acct(), get_TrxName()); } + /** Set Unearned Revenue. @param UnEarnedRevenue_Acct Account for unearned revenue @@ -1432,6 +1724,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getUnrealizedGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnrealizedGain_Acct(), get_TrxName()); } + /** Set Unrealized Gain Acct. @param UnrealizedGain_Acct Unrealized Gain Account for currency revaluation @@ -1452,6 +1749,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getUnrealizedLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnrealizedLoss_Acct(), get_TrxName()); } + /** Set Unrealized Loss Acct. @param UnrealizedLoss_Acct Unrealized Loss Account for currency revaluation @@ -1472,6 +1774,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getV_Liability_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Acct(), get_TrxName()); } + /** Set Vendor Liability. @param V_Liability_Acct Account for Vendor Liability @@ -1492,6 +1799,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Services_Acct(), get_TrxName()); } + /** Set Vendor Service Liability. @param V_Liability_Services_Acct Account for Vender Service Liability @@ -1512,6 +1824,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Prepayment_Acct(), get_TrxName()); } + /** Set Vendor Prepayment. @param V_Prepayment_Acct Account for Vendor Prepayments @@ -1532,6 +1849,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getW_Differences_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Differences_Acct(), get_TrxName()); } + /** Set Warehouse Differences. @param W_Differences_Acct Warehouse Differences Account @@ -1552,6 +1874,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getW_InvActualAdjust_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_InvActualAdjust_Acct(), get_TrxName()); } + /** Set Inventory Adjustment. @param W_InvActualAdjust_Acct Account for Inventory value adjustments for Actual Costing @@ -1572,6 +1899,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getW_Inventory_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Inventory_Acct(), get_TrxName()); } + /** Set (Not Used). @param W_Inventory_Acct Warehouse Inventory Asset Account - Currently not used @@ -1592,6 +1924,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getW_Revaluation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Revaluation_Acct(), get_TrxName()); } + /** Set Inventory Revaluation. @param W_Revaluation_Acct Account for Inventory Revaluation @@ -1612,6 +1949,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getWithholding_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getWithholding_Acct(), get_TrxName()); } + /** Set Withholding. @param Withholding_Acct Account for Withholdings @@ -1632,6 +1974,11 @@ public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default return ii.intValue(); } + public I_C_ValidCombination getWriteOff_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getWriteOff_Acct(), get_TrxName()); } + /** Set Write-off. @param WriteOff_Acct Account for Receivables write-off 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 f52dfe9304..c39d1dbb8d 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Element.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Element.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_AcctSchema_Element @@ -81,21 +79,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -140,21 +127,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -179,21 +155,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -218,21 +183,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -257,21 +211,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -296,21 +239,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_Element getC_Element() throws RuntimeException + public I_C_Element getC_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Element.Table_Name); - I_C_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Element)MTable.get(getCtx(), I_C_Element.Table_Name) + .getPO(getC_Element_ID(), get_TrxName()); } /** Set Element. @param C_Element_ID @@ -335,21 +267,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID @@ -374,6 +295,11 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -397,21 +323,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -436,21 +351,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -572,21 +476,10 @@ public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 0ff3b81256..65ddcd16b0 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_GL.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_GL.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_AcctSchema_GL @@ -82,21 +80,10 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -129,6 +116,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); } + public I_C_ValidCombination getCommitmentOffset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCommitmentOffset_Acct(), get_TrxName()); } + /** Set Commitment Offset. @param CommitmentOffset_Acct Budgetary Commitment Offset Account @@ -149,6 +141,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCommitmentOffsetSales_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCommitmentOffsetSales_Acct(), get_TrxName()); } + /** Set Commitment Offset Sales. @param CommitmentOffsetSales_Acct Budgetary Commitment Offset Account for Sales @@ -169,6 +166,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCurrencyBalancing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCurrencyBalancing_Acct(), get_TrxName()); } + /** Set Currency Balancing Acct. @param CurrencyBalancing_Acct Account used when a currency is out of balance @@ -189,6 +191,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getIncomeSummary_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getIncomeSummary_Acct(), get_TrxName()); } + /** Set Income Summary Acct. @param IncomeSummary_Acct Income Summary Account @@ -209,6 +216,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getIntercompanyDueFrom_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getIntercompanyDueFrom_Acct(), get_TrxName()); } + /** Set Intercompany Due From Acct. @param IntercompanyDueFrom_Acct Intercompany Due From / Receivables Account @@ -229,6 +241,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getIntercompanyDueTo_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getIntercompanyDueTo_Acct(), get_TrxName()); } + /** Set Intercompany Due To Acct. @param IntercompanyDueTo_Acct Intercompany Due To / Payable Account @@ -249,6 +266,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getPPVOffset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPPVOffset_Acct(), get_TrxName()); } + /** Set PPV Offset. @param PPVOffset_Acct Purchase Price Variance Offset Account @@ -269,6 +291,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getRetainedEarning_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getRetainedEarning_Acct(), get_TrxName()); } + /** Set Retained Earning Acct. @param RetainedEarning_Acct Retained Earning Acct */ public void setRetainedEarning_Acct (int RetainedEarning_Acct) @@ -286,6 +313,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getSuspenseBalancing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getSuspenseBalancing_Acct(), get_TrxName()); } + /** Set Suspense Balancing Acct. @param SuspenseBalancing_Acct Suspense Balancing Acct */ public void setSuspenseBalancing_Acct (int SuspenseBalancing_Acct) @@ -303,6 +335,11 @@ public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persis return ii.intValue(); } + public I_C_ValidCombination getSuspenseError_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getSuspenseError_Acct(), get_TrxName()); } + /** Set Suspense Error Acct. @param SuspenseError_Acct Suspense Error Acct */ public void setSuspenseError_Acct (int SuspenseError_Acct) diff --git a/base/src/org/compiere/model/X_C_AllocationHdr.java b/base/src/org/compiere/model/X_C_AllocationHdr.java index 40b338bddc..16b2ba1b4c 100644 --- a/base/src/org/compiere/model/X_C_AllocationHdr.java +++ b/base/src/org/compiere/model/X_C_AllocationHdr.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -131,21 +129,10 @@ public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID diff --git a/base/src/org/compiere/model/X_C_AllocationLine.java b/base/src/org/compiere/model/X_C_AllocationLine.java index d4c4c7a58b..65cf9bc030 100644 --- a/base/src/org/compiere/model/X_C_AllocationLine.java +++ b/base/src/org/compiere/model/X_C_AllocationLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -99,21 +97,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return bd; } - public I_C_AllocationHdr getC_AllocationHdr() throws RuntimeException + public I_C_AllocationHdr getC_AllocationHdr() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AllocationHdr.Table_Name); - I_C_AllocationHdr result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AllocationHdr)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AllocationHdr_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AllocationHdr)MTable.get(getCtx(), I_C_AllocationHdr.Table_Name) + .getPO(getC_AllocationHdr_ID(), get_TrxName()); } /** Set Allocation. @param C_AllocationHdr_ID @@ -161,21 +148,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -200,21 +176,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return ii.intValue(); } - public I_C_CashLine getC_CashLine() throws RuntimeException + public I_C_CashLine getC_CashLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashLine.Table_Name); - I_C_CashLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashLine)MTable.get(getCtx(), I_C_CashLine.Table_Name) + .getPO(getC_CashLine_ID(), get_TrxName()); } /** Set Cash Journal Line. @param C_CashLine_ID @@ -239,21 +204,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -286,21 +240,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -325,21 +268,10 @@ public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Pers return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID 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 16b2b01e9f..2ef7b56cbf 100644 --- a/base/src/org/compiere/model/X_C_BP_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BP_BankAccount.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BP_BankAccount @@ -253,21 +251,10 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers return (String)get_Value(COLUMNNAME_AccountNo); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -344,21 +331,10 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers return (String)get_Value(COLUMNNAME_BPBankAcctUse); } - public I_C_Bank getC_Bank() throws RuntimeException + public I_C_Bank getC_Bank() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Bank.Table_Name); - I_C_Bank result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Bank)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Bank_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Bank)MTable.get(getCtx(), I_C_Bank.Table_Name) + .getPO(getC_Bank_ID(), get_TrxName()); } /** Set Bank. @param C_Bank_ID @@ -406,21 +382,10 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID 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 0eb405c2f0..71a749aabb 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_BP_Customer_Acct * @author Adempiere (generated) @@ -75,21 +73,10 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -114,21 +101,10 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -153,6 +129,11 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Prepayment_Acct(), get_TrxName()); } + /** Set Customer Prepayment. @param C_Prepayment_Acct Account for customer prepayments @@ -173,6 +154,11 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Acct(), get_TrxName()); } + /** Set Customer Receivables. @param C_Receivable_Acct Account for Customer Receivables @@ -193,6 +179,11 @@ public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Services_Acct(), get_TrxName()); } + /** Set Receivable Services. @param C_Receivable_Services_Acct Customer Accounts Receivables Services Account 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 11a60ffedb..763bc01157 100644 --- a/base/src/org/compiere/model/X_C_BP_EDI.java +++ b/base/src/org/compiere/model/X_C_BP_EDI.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BP_EDI @@ -86,6 +84,11 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent return sb.toString(); } + public I_AD_Sequence getAD_Sequence() throws RuntimeException + { + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getAD_Sequence_ID(), get_TrxName()); } + /** Set Sequence. @param AD_Sequence_ID Document Sequence @@ -132,21 +135,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -378,21 +370,10 @@ public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent return false; } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID 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 fd2b4606a9..25d076b6ef 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_BP_Employee_Acct * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -113,21 +100,10 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -152,6 +128,11 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getE_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getE_Expense_Acct(), get_TrxName()); } + /** Set Employee Expense. @param E_Expense_Acct Account for Employee Expenses @@ -172,6 +153,11 @@ public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getE_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getE_Prepayment_Acct(), get_TrxName()); } + /** Set Employee Prepayment. @param E_Prepayment_Acct Account for Employee Expense Prepayments 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 e9c334e4b8..38c7d72c48 100644 --- a/base/src/org/compiere/model/X_C_BP_Group.java +++ b/base/src/org/compiere/model/X_C_BP_Group.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return sb.toString(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID @@ -141,21 +128,10 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return ii.intValue(); } - public I_C_Dunning getC_Dunning() throws RuntimeException + public I_C_Dunning getC_Dunning() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Dunning.Table_Name); - I_C_Dunning result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Dunning)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Dunning_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Dunning)MTable.get(getCtx(), I_C_Dunning.Table_Name) + .getPO(getC_Dunning_ID(), get_TrxName()); } /** Set Dunning. @param C_Dunning_ID @@ -265,6 +241,11 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return false; } + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + { + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } + /** Set Discount Schema. @param M_DiscountSchema_ID Schema to calculate the trade discount percentage @@ -288,21 +269,10 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -352,6 +322,11 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException + { + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getPO_DiscountSchema_ID(), get_TrxName()); } + /** Set PO Discount Schema. @param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage @@ -375,6 +350,11 @@ public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent return ii.intValue(); } + public I_M_PriceList getPO_PriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getPO_PriceList_ID(), get_TrxName()); } + /** Set Purchase Pricelist. @param PO_PriceList_ID Price List used by this Business Partner 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 cc99e294ea..930ec10fea 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BP_Group_Acct @@ -86,21 +84,10 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -125,21 +112,10 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -172,6 +148,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return new KeyNamePair(get_ID(), String.valueOf(getC_BP_Group_ID())); } + public I_C_ValidCombination getC_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Prepayment_Acct(), get_TrxName()); } + /** Set Customer Prepayment. @param C_Prepayment_Acct Account for customer prepayments @@ -192,6 +173,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Acct(), get_TrxName()); } + /** Set Customer Receivables. @param C_Receivable_Acct Account for Customer Receivables @@ -212,6 +198,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_Receivable_Services_Acct(), get_TrxName()); } + /** Set Receivable Services. @param C_Receivable_Services_Acct Customer Accounts Receivables Services Account @@ -232,6 +223,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedReceipts_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedReceipts_Acct(), get_TrxName()); } + /** Set Not-invoiced Receipts. @param NotInvoicedReceipts_Acct Account for not-invoiced Material Receipts @@ -252,6 +248,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedReceivables_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedReceivables_Acct(), get_TrxName()); } + /** Set Not-invoiced Receivables. @param NotInvoicedReceivables_Acct Account for not invoiced Receivables @@ -272,6 +273,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getNotInvoicedRevenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getNotInvoicedRevenue_Acct(), get_TrxName()); } + /** Set Not-invoiced Revenue. @param NotInvoicedRevenue_Acct Account for not invoiced Revenue @@ -292,6 +298,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getPayDiscount_Exp_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPayDiscount_Exp_Acct(), get_TrxName()); } + /** Set Payment Discount Expense. @param PayDiscount_Exp_Acct Payment Discount Expense Account @@ -312,6 +323,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getPayDiscount_Rev_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPayDiscount_Rev_Acct(), get_TrxName()); } + /** Set Payment Discount Revenue. @param PayDiscount_Rev_Acct Payment Discount Revenue Account @@ -353,6 +369,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return false; } + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnEarnedRevenue_Acct(), get_TrxName()); } + /** Set Unearned Revenue. @param UnEarnedRevenue_Acct Account for unearned revenue @@ -373,6 +394,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getV_Liability_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Acct(), get_TrxName()); } + /** Set Vendor Liability. @param V_Liability_Acct Account for Vendor Liability @@ -393,6 +419,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Services_Acct(), get_TrxName()); } + /** Set Vendor Service Liability. @param V_Liability_Services_Acct Account for Vender Service Liability @@ -413,6 +444,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Prepayment_Acct(), get_TrxName()); } + /** Set Vendor Prepayment. @param V_Prepayment_Acct Account for Vendor Prepayments @@ -433,6 +469,11 @@ public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getWriteOff_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getWriteOff_Acct(), get_TrxName()); } + /** Set Write-off. @param WriteOff_Acct Account for Receivables write-off 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 517ab89f9e..6a23bceedc 100644 --- a/base/src/org/compiere/model/X_C_BP_Relation.java +++ b/base/src/org/compiere/model/X_C_BP_Relation.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BP_Relation @@ -104,21 +102,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -143,21 +130,10 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -182,6 +158,11 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_BPartnerRelation() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartnerRelation_ID(), get_TrxName()); } + /** Set Related Partner. @param C_BPartnerRelation_ID Related Business Partner @@ -205,6 +186,11 @@ public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent return ii.intValue(); } + public I_C_BPartner_Location getC_BPartnerRelation_Location() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartnerRelation_Location_ID(), get_TrxName()); } + /** Set Related Partner Location. @param C_BPartnerRelation_Location_ID Location of the related Business Partner 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 ab7d3505ca..b6e88aab34 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_BP_Vendor_Acct * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -113,21 +100,10 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -152,6 +128,11 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getV_Liability_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Acct(), get_TrxName()); } + /** Set Vendor Liability. @param V_Liability_Acct Account for Vendor Liability @@ -172,6 +153,11 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getV_Liability_Services_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Liability_Services_Acct(), get_TrxName()); } + /** Set Vendor Service Liability. @param V_Liability_Services_Acct Account for Vender Service Liability @@ -192,6 +178,11 @@ public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getV_Prepayment_Acct(), get_TrxName()); } + /** Set Vendor Prepayment. @param V_Prepayment_Acct Account for Vendor Prepayments 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 53d276977c..d903a529ab 100644 --- a/base/src/org/compiere/model/X_C_BP_Withholding.java +++ b/base/src/org/compiere/model/X_C_BP_Withholding.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_BP_Withholding * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_BP_Withholding extends PO implements I_C_BP_Withholding, I_Pers return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -113,21 +100,10 @@ public class X_C_BP_Withholding extends PO implements I_C_BP_Withholding, I_Pers return ii.intValue(); } - public I_C_Withholding getC_Withholding() throws RuntimeException + public I_C_Withholding getC_Withholding() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Withholding.Table_Name); - I_C_Withholding result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Withholding)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Withholding_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Withholding)MTable.get(getCtx(), I_C_Withholding.Table_Name) + .getPO(getC_Withholding_ID(), get_TrxName()); } /** Set Withholding. @param C_Withholding_ID diff --git a/base/src/org/compiere/model/X_C_BPartner.java b/base/src/org/compiere/model/X_C_BPartner.java index 134d00a32f..5baa9f57e6 100644 --- a/base/src/org/compiere/model/X_C_BPartner.java +++ b/base/src/org/compiere/model/X_C_BPartner.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -188,21 +186,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -250,21 +237,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_C_Dunning getC_Dunning() throws RuntimeException + public I_C_Dunning getC_Dunning() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Dunning.Table_Name); - I_C_Dunning result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Dunning)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Dunning_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Dunning)MTable.get(getCtx(), I_C_Dunning.Table_Name) + .getPO(getC_Dunning_ID(), get_TrxName()); } /** Set Dunning. @param C_Dunning_ID @@ -289,21 +265,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_C_Greeting getC_Greeting() throws RuntimeException + public I_C_Greeting getC_Greeting() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Greeting.Table_Name); - I_C_Greeting result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Greeting)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Greeting_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Greeting)MTable.get(getCtx(), I_C_Greeting.Table_Name) + .getPO(getC_Greeting_ID(), get_TrxName()); } /** Set Greeting. @param C_Greeting_ID @@ -328,21 +293,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_C_InvoiceSchedule getC_InvoiceSchedule() throws RuntimeException + public I_C_InvoiceSchedule getC_InvoiceSchedule() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceSchedule.Table_Name); - I_C_InvoiceSchedule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceSchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceSchedule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceSchedule)MTable.get(getCtx(), I_C_InvoiceSchedule.Table_Name) + .getPO(getC_InvoiceSchedule_ID(), get_TrxName()); } /** Set Invoice Schedule. @param C_InvoiceSchedule_ID @@ -367,21 +321,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -406,21 +349,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws RuntimeException + public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_C_TaxGroup.Table_Name); - org.eevolution.model.I_C_TaxGroup result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_C_TaxGroup)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxGroup_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_C_TaxGroup)MTable.get(getCtx(), org.eevolution.model.I_C_TaxGroup.Table_Name) + .getPO(getC_TaxGroup_ID(), get_TrxName()); } /** Set Tax Group. @param C_TaxGroup_ID Tax Group */ @@ -633,6 +565,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_FreightCostRule); } + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getInvoice_PrintFormat_ID(), get_TrxName()); } + /** Set Invoice Print Format. @param Invoice_PrintFormat_ID Print Format for printing Invoices @@ -917,6 +854,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + { + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } + /** Set Discount Schema. @param M_DiscountSchema_ID Schema to calculate the trade discount percentage @@ -940,21 +882,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1126,6 +1057,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_PaymentRulePO); } + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException + { + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getPO_DiscountSchema_ID(), get_TrxName()); } + /** Set PO Discount Schema. @param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage @@ -1149,6 +1085,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } + public I_C_PaymentTerm getPO_PaymentTerm() throws RuntimeException + { + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getPO_PaymentTerm_ID(), get_TrxName()); } + /** Set PO Payment Term. @param PO_PaymentTerm_ID Payment rules for a purchase order @@ -1172,6 +1113,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } + public I_M_PriceList getPO_PriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getPO_PriceList_ID(), get_TrxName()); } + /** Set Purchase Pricelist. @param PO_PriceList_ID Price List used by this Business Partner @@ -1266,6 +1212,11 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_ReferenceNo); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent 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 0e65470690..4da08eee61 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Location.java +++ b/base/src/org/compiere/model/X_C_BPartner_Location.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BPartner_Location @@ -84,21 +82,10 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -146,6 +133,11 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -169,21 +161,10 @@ public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID 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 7920988dc6..bad42c398a 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Product.java +++ b/base/src/org/compiere/model/X_C_BPartner_Product.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_BPartner_Product @@ -76,21 +74,10 @@ public class X_C_BPartner_Product extends PO implements I_C_BPartner_Product, I_ return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -132,21 +119,10 @@ public class X_C_BPartner_Product extends PO implements I_C_BPartner_Product, I_ return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_Bank.java b/base/src/org/compiere/model/X_C_Bank.java index 5af46f1776..fa80a894f9 100644 --- a/base/src/org/compiere/model/X_C_Bank.java +++ b/base/src/org/compiere/model/X_C_Bank.java @@ -97,6 +97,11 @@ public class X_C_Bank extends PO implements I_C_Bank, I_Persistent return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address diff --git a/base/src/org/compiere/model/X_C_BankAccount.java b/base/src/org/compiere/model/X_C_BankAccount.java index 85e882bc6a..0db5b9f8ec 100644 --- a/base/src/org/compiere/model/X_C_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BankAccount.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -139,21 +137,10 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent return (String)get_Value(COLUMNNAME_BBAN); } - public I_C_Bank getC_Bank() throws RuntimeException + public I_C_Bank getC_Bank() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Bank.Table_Name); - I_C_Bank result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Bank)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Bank_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Bank)MTable.get(getCtx(), I_C_Bank.Table_Name) + .getPO(getC_Bank_ID(), get_TrxName()); } /** Set Bank. @param C_Bank_ID @@ -209,21 +196,10 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID diff --git a/base/src/org/compiere/model/X_C_BankAccountDoc.java b/base/src/org/compiere/model/X_C_BankAccountDoc.java index 74025708f2..6636126917 100644 --- a/base/src/org/compiere/model/X_C_BankAccountDoc.java +++ b/base/src/org/compiere/model/X_C_BankAccountDoc.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BankAccountDoc @@ -76,21 +74,10 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers return sb.toString(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -138,6 +125,11 @@ public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Pers return ii.intValue(); } + public I_AD_PrintFormat getCheck_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getCheck_PrintFormat_ID(), get_TrxName()); } + /** Set Check Print Format. @param Check_PrintFormat_ID Print Format for printing Checks 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 05239dc5fb..15fb735322 100644 --- a/base/src/org/compiere/model/X_C_BankAccount_Acct.java +++ b/base/src/org/compiere/model/X_C_BankAccount_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_BankAccount_Acct * @author Adempiere (generated) @@ -84,6 +82,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return sb.toString(); } + public I_C_ValidCombination getB_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Asset_Acct(), get_TrxName()); } + /** Set Bank Asset. @param B_Asset_Acct Bank Asset Account @@ -104,6 +107,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Expense_Acct(), get_TrxName()); } + /** Set Bank Expense. @param B_Expense_Acct Bank Expense Account @@ -124,6 +132,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_InterestExp_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InterestExp_Acct(), get_TrxName()); } + /** Set Bank Interest Expense. @param B_InterestExp_Acct Bank Interest Expense Account @@ -144,6 +157,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_InterestRev_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InterestRev_Acct(), get_TrxName()); } + /** Set Bank Interest Revenue. @param B_InterestRev_Acct Bank Interest Revenue Account @@ -164,6 +182,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_InTransit_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_InTransit_Acct(), get_TrxName()); } + /** Set Bank In Transit. @param B_InTransit_Acct Bank In Transit Account @@ -184,6 +207,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_PaymentSelect_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_PaymentSelect_Acct(), get_TrxName()); } + /** Set Payment Selection. @param B_PaymentSelect_Acct AP Payment Selection Clearing Account @@ -204,6 +232,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_RevaluationGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_RevaluationGain_Acct(), get_TrxName()); } + /** Set Bank Revaluation Gain. @param B_RevaluationGain_Acct Bank Revaluation Gain Account @@ -224,6 +257,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_RevaluationLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_RevaluationLoss_Acct(), get_TrxName()); } + /** Set Bank Revaluation Loss. @param B_RevaluationLoss_Acct Bank Revaluation Loss Account @@ -244,6 +282,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_SettlementGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_SettlementGain_Acct(), get_TrxName()); } + /** Set Bank Settlement Gain. @param B_SettlementGain_Acct Bank Settlement Gain Account @@ -264,6 +307,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_SettlementLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_SettlementLoss_Acct(), get_TrxName()); } + /** Set Bank Settlement Loss. @param B_SettlementLoss_Acct Bank Settlement Loss Account @@ -284,6 +332,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_UnallocatedCash_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_UnallocatedCash_Acct(), get_TrxName()); } + /** Set Unallocated Cash. @param B_UnallocatedCash_Acct Unallocated Cash Clearing Account @@ -304,6 +357,11 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getB_Unidentified_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getB_Unidentified_Acct(), get_TrxName()); } + /** Set Bank Unidentified Receipts. @param B_Unidentified_Acct Bank Unidentified Receipts Account @@ -324,21 +382,10 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -363,21 +410,10 @@ public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_ return ii.intValue(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID diff --git a/base/src/org/compiere/model/X_C_BankStatement.java b/base/src/org/compiere/model/X_C_BankStatement.java index 776872df88..8c16bb6083 100644 --- a/base/src/org/compiere/model/X_C_BankStatement.java +++ b/base/src/org/compiere/model/X_C_BankStatement.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -112,21 +110,10 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis return bd; } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID diff --git a/base/src/org/compiere/model/X_C_BankStatementLine.java b/base/src/org/compiere/model/X_C_BankStatementLine.java index da2d5cde7c..829b0ac56e 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLine.java +++ b/base/src/org/compiere/model/X_C_BankStatementLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -95,21 +93,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, return sb.toString(); } - public I_C_BankStatement getC_BankStatement() throws RuntimeException + public I_C_BankStatement getC_BankStatement() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankStatement.Table_Name); - I_C_BankStatement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankStatement)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankStatement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankStatement)MTable.get(getCtx(), I_C_BankStatement.Table_Name) + .getPO(getC_BankStatement_ID(), get_TrxName()); } /** Set Bank Statement. @param C_BankStatement_ID @@ -157,21 +144,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -196,21 +172,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -235,21 +200,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -274,21 +228,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -313,21 +256,10 @@ public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_C_BankStatementLoader.java b/base/src/org/compiere/model/X_C_BankStatementLoader.java index 658f2bb2ba..44d908f6e9 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLoader.java +++ b/base/src/org/compiere/model/X_C_BankStatementLoader.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_BankStatementLoader @@ -109,21 +107,10 @@ public class X_C_BankStatementLoader extends PO implements I_C_BankStatementLoad return (String)get_Value(COLUMNNAME_BranchID); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID diff --git a/base/src/org/compiere/model/X_C_Campaign.java b/base/src/org/compiere/model/X_C_Campaign.java index 5167b42086..ffd19db981 100644 --- a/base/src/org/compiere/model/X_C_Campaign.java +++ b/base/src/org/compiere/model/X_C_Campaign.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -102,21 +100,10 @@ public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent return ii.intValue(); } - public I_C_Channel getC_Channel() throws RuntimeException + public I_C_Channel getC_Channel() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Channel.Table_Name); - I_C_Channel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Channel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Channel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Channel)MTable.get(getCtx(), I_C_Channel.Table_Name) + .getPO(getC_Channel_ID(), get_TrxName()); } /** Set Channel. @param C_Channel_ID diff --git a/base/src/org/compiere/model/X_C_Cash.java b/base/src/org/compiere/model/X_C_Cash.java index 9c57f1c4dd..786ab57975 100644 --- a/base/src/org/compiere/model/X_C_Cash.java +++ b/base/src/org/compiere/model/X_C_Cash.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -135,21 +133,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return bd; } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -174,21 +161,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -236,21 +212,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return ii.intValue(); } - public I_C_CashBook getC_CashBook() throws RuntimeException + public I_C_CashBook getC_CashBook() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashBook.Table_Name); - I_C_CashBook result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getC_CashBook_ID(), get_TrxName()); } /** Set Cash Book. @param C_CashBook_ID @@ -275,21 +240,10 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -615,6 +569,11 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -638,6 +597,11 @@ public class X_C_Cash extends PO implements I_C_Cash, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_CashBook.java b/base/src/org/compiere/model/X_C_CashBook.java index fea111b179..e35b33b72c 100644 --- a/base/src/org/compiere/model/X_C_CashBook.java +++ b/base/src/org/compiere/model/X_C_CashBook.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_CashBook @@ -98,21 +96,10 @@ public class X_C_CashBook extends PO implements I_C_CashBook, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID 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 4c29d78f2e..425ece38b0 100644 --- a/base/src/org/compiere/model/X_C_CashBook_Acct.java +++ b/base/src/org/compiere/model/X_C_CashBook_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_CashBook_Acct * @author Adempiere (generated) @@ -77,21 +75,10 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -116,21 +103,10 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } - public I_C_CashBook getC_CashBook() throws RuntimeException + public I_C_CashBook getC_CashBook() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashBook.Table_Name); - I_C_CashBook result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getC_CashBook_ID(), get_TrxName()); } /** Set Cash Book. @param C_CashBook_ID @@ -155,6 +131,11 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCB_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Asset_Acct(), get_TrxName()); } + /** Set Cash Book Asset. @param CB_Asset_Acct Cash Book Asset Account @@ -175,6 +156,11 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCB_CashTransfer_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_CashTransfer_Acct(), get_TrxName()); } + /** Set Cash Transfer. @param CB_CashTransfer_Acct Cash Transfer Clearing Account @@ -195,6 +181,11 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCB_Differences_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Differences_Acct(), get_TrxName()); } + /** Set Cash Book Differences. @param CB_Differences_Acct Cash Book Differences Account @@ -215,6 +206,11 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCB_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Expense_Acct(), get_TrxName()); } + /** Set Cash Book Expense. @param CB_Expense_Acct Cash Book Expense Account @@ -235,6 +231,11 @@ public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getCB_Receipt_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCB_Receipt_Acct(), get_TrxName()); } + /** Set Cash Book Receipt. @param CB_Receipt_Acct Cash Book Receipts Account diff --git a/base/src/org/compiere/model/X_C_CashLine.java b/base/src/org/compiere/model/X_C_CashLine.java index ea26b4f50b..ae12997ac1 100644 --- a/base/src/org/compiere/model/X_C_CashLine.java +++ b/base/src/org/compiere/model/X_C_CashLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -101,21 +99,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent return bd; } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -140,21 +127,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent return ii.intValue(); } - public I_C_Cash getC_Cash() throws RuntimeException + public I_C_Cash getC_Cash() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Cash.Table_Name); - I_C_Cash result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Cash)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Cash_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Cash)MTable.get(getCtx(), I_C_Cash.Table_Name) + .getPO(getC_Cash_ID(), get_TrxName()); } /** Set Cash Journal. @param C_Cash_ID @@ -210,21 +186,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -249,21 +214,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -288,21 +242,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -327,21 +270,10 @@ public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_C_Channel.java b/base/src/org/compiere/model/X_C_Channel.java index f19946ab79..6b8b88411c 100644 --- a/base/src/org/compiere/model/X_C_Channel.java +++ b/base/src/org/compiere/model/X_C_Channel.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Channel @@ -73,21 +71,10 @@ public class X_C_Channel extends PO implements I_C_Channel, I_Persistent return sb.toString(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID diff --git a/base/src/org/compiere/model/X_C_Charge.java b/base/src/org/compiere/model/X_C_Charge.java index d34456de49..6b6cd6b780 100644 --- a/base/src/org/compiere/model/X_C_Charge.java +++ b/base/src/org/compiere/model/X_C_Charge.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,21 +79,10 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -143,21 +130,10 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent return ii.intValue(); } - public I_C_ChargeType getC_ChargeType() throws RuntimeException + public I_C_ChargeType getC_ChargeType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ChargeType.Table_Name); - I_C_ChargeType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ChargeType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ChargeType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ChargeType)MTable.get(getCtx(), I_C_ChargeType.Table_Name) + .getPO(getC_ChargeType_ID(), get_TrxName()); } /** Set Charge Type. @param C_ChargeType_ID Charge Type */ @@ -179,21 +155,10 @@ public class X_C_Charge extends PO implements I_C_Charge, I_Persistent return ii.intValue(); } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID 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 6c8d721001..530196aef1 100644 --- a/base/src/org/compiere/model/X_C_ChargeType_DocType.java +++ b/base/src/org/compiere/model/X_C_ChargeType_DocType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_ChargeType_DocType * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_C_ChargeType_DocType extends PO implements I_C_ChargeType_DocType return sb.toString(); } - public I_C_ChargeType getC_ChargeType() throws RuntimeException + public I_C_ChargeType getC_ChargeType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ChargeType.Table_Name); - I_C_ChargeType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ChargeType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ChargeType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ChargeType)MTable.get(getCtx(), I_C_ChargeType.Table_Name) + .getPO(getC_ChargeType_ID(), get_TrxName()); } /** Set Charge Type. @param C_ChargeType_ID Charge Type */ @@ -112,21 +99,10 @@ public class X_C_ChargeType_DocType extends PO implements I_C_ChargeType_DocType return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID 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 9d1a4a4486..d01161c2a5 100644 --- a/base/src/org/compiere/model/X_C_Charge_Acct.java +++ b/base/src/org/compiere/model/X_C_Charge_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Charge_Acct * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -113,21 +100,10 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -152,6 +128,11 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getCh_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCh_Expense_Acct(), get_TrxName()); } + /** Set Charge Expense. @param Ch_Expense_Acct Charge Expense Account @@ -172,6 +153,11 @@ public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getCh_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getCh_Revenue_Acct(), get_TrxName()); } + /** Set Charge Revenue. @param Ch_Revenue_Acct Charge Revenue Account diff --git a/base/src/org/compiere/model/X_C_City.java b/base/src/org/compiere/model/X_C_City.java index 95ad9be5bf..0c0c191676 100644 --- a/base/src/org/compiere/model/X_C_City.java +++ b/base/src/org/compiere/model/X_C_City.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_City @@ -113,21 +111,10 @@ public class X_C_City extends PO implements I_C_City, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -152,6 +139,11 @@ public class X_C_City extends PO implements I_C_City, I_Persistent return ii.intValue(); } + public I_C_Region getC_Region() throws RuntimeException + { + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } + /** Set Region. @param C_Region_ID Identifies a geographical Region diff --git a/base/src/org/compiere/model/X_C_Commission.java b/base/src/org/compiere/model/X_C_Commission.java index 2bb21097ca..ad88c31b5e 100644 --- a/base/src/org/compiere/model/X_C_Commission.java +++ b/base/src/org/compiere/model/X_C_Commission.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Commission @@ -82,6 +80,11 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent return sb.toString(); } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -105,21 +108,10 @@ public class X_C_Commission extends PO implements I_C_Commission, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -167,21 +159,10 @@ public class X_C_Commission extends PO implements I_C_Commission, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID diff --git a/base/src/org/compiere/model/X_C_CommissionAmt.java b/base/src/org/compiere/model/X_C_CommissionAmt.java index cf1f55a55e..831c779147 100644 --- a/base/src/org/compiere/model/X_C_CommissionAmt.java +++ b/base/src/org/compiere/model/X_C_CommissionAmt.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -122,21 +120,10 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis return ii.intValue(); } - public I_C_CommissionLine getC_CommissionLine() throws RuntimeException + public I_C_CommissionLine getC_CommissionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CommissionLine.Table_Name); - I_C_CommissionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CommissionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CommissionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CommissionLine)MTable.get(getCtx(), I_C_CommissionLine.Table_Name) + .getPO(getC_CommissionLine_ID(), get_TrxName()); } /** Set Commission Line. @param C_CommissionLine_ID @@ -161,21 +148,10 @@ public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persis return ii.intValue(); } - public I_C_CommissionRun getC_CommissionRun() throws RuntimeException + public I_C_CommissionRun getC_CommissionRun() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CommissionRun.Table_Name); - I_C_CommissionRun result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CommissionRun)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CommissionRun_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CommissionRun)MTable.get(getCtx(), I_C_CommissionRun.Table_Name) + .getPO(getC_CommissionRun_ID(), get_TrxName()); } /** Set Commission Run. @param C_CommissionRun_ID diff --git a/base/src/org/compiere/model/X_C_CommissionDetail.java b/base/src/org/compiere/model/X_C_CommissionDetail.java index 0149c626b0..b58eb66f45 100644 --- a/base/src/org/compiere/model/X_C_CommissionDetail.java +++ b/base/src/org/compiere/model/X_C_CommissionDetail.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -119,21 +117,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ return bd; } - public I_C_CommissionAmt getC_CommissionAmt() throws RuntimeException + public I_C_CommissionAmt getC_CommissionAmt() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CommissionAmt.Table_Name); - I_C_CommissionAmt result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CommissionAmt)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CommissionAmt_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CommissionAmt)MTable.get(getCtx(), I_C_CommissionAmt.Table_Name) + .getPO(getC_CommissionAmt_ID(), get_TrxName()); } /** Set Commission Amount. @param C_CommissionAmt_ID @@ -181,21 +168,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -220,21 +196,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -259,21 +224,10 @@ public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_ return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID diff --git a/base/src/org/compiere/model/X_C_CommissionLine.java b/base/src/org/compiere/model/X_C_CommissionLine.java index 076ba40f04..0f4f7eddab 100644 --- a/base/src/org/compiere/model/X_C_CommissionLine.java +++ b/base/src/org/compiere/model/X_C_CommissionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -123,21 +121,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return bd; } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -162,21 +149,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -201,21 +177,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return ii.intValue(); } - public I_C_Commission getC_Commission() throws RuntimeException + public I_C_Commission getC_Commission() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Commission.Table_Name); - I_C_Commission result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Commission)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Commission_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Commission)MTable.get(getCtx(), I_C_Commission.Table_Name) + .getPO(getC_Commission_ID(), get_TrxName()); } /** Set Commission. @param C_Commission_ID @@ -271,21 +236,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -395,21 +349,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return ii.intValue(); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -434,21 +377,10 @@ public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Pers return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_CommissionRun.java b/base/src/org/compiere/model/X_C_CommissionRun.java index 0fe6642bba..890e0908e8 100644 --- a/base/src/org/compiere/model/X_C_CommissionRun.java +++ b/base/src/org/compiere/model/X_C_CommissionRun.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -80,21 +78,10 @@ public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persis return sb.toString(); } - public I_C_Commission getC_Commission() throws RuntimeException + public I_C_Commission getC_Commission() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Commission.Table_Name); - I_C_Commission result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Commission)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Commission_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Commission)MTable.get(getCtx(), I_C_Commission.Table_Name) + .getPO(getC_Commission_ID(), get_TrxName()); } /** Set Commission. @param C_Commission_ID 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 619d7cbc57..d888085a13 100644 --- a/base/src/org/compiere/model/X_C_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_C_Conversion_Rate.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -112,21 +110,10 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe return new KeyNamePair(get_ID(), String.valueOf(getC_Conversion_Rate_ID())); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -151,6 +138,11 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe return ii.intValue(); } + public I_C_Currency getC_Currency() throws RuntimeException + { + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } + /** Set Currency. @param C_Currency_ID The Currency for this record @@ -174,6 +166,11 @@ public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Pe return ii.intValue(); } + public I_C_Currency getC_Currency_To() throws RuntimeException + { + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID_To(), get_TrxName()); } + /** Set Currency To. @param C_Currency_ID_To Target currency diff --git a/base/src/org/compiere/model/X_C_Country.java b/base/src/org/compiere/model/X_C_Country.java index 0d128aa3a2..9fe382a958 100644 --- a/base/src/org/compiere/model/X_C_Country.java +++ b/base/src/org/compiere/model/X_C_Country.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Country @@ -123,21 +121,10 @@ public class X_C_Country extends PO implements I_C_Country, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID 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 af34dac5ad..e080914c88 100644 --- a/base/src/org/compiere/model/X_C_Currency_Acct.java +++ b/base/src/org/compiere/model/X_C_Currency_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Currency_Acct * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -115,21 +102,10 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -154,6 +130,11 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getRealizedGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getRealizedGain_Acct(), get_TrxName()); } + /** Set Realized Gain Acct. @param RealizedGain_Acct Realized Gain Account @@ -174,6 +155,11 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getRealizedLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getRealizedLoss_Acct(), get_TrxName()); } + /** Set Realized Loss Acct. @param RealizedLoss_Acct Realized Loss Account @@ -194,6 +180,11 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getUnrealizedGain_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnrealizedGain_Acct(), get_TrxName()); } + /** Set Unrealized Gain Acct. @param UnrealizedGain_Acct Unrealized Gain Account for currency revaluation @@ -214,6 +205,11 @@ public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getUnrealizedLoss_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnrealizedLoss_Acct(), get_TrxName()); } + /** Set Unrealized Loss Acct. @param UnrealizedLoss_Acct Unrealized Loss Account for currency revaluation diff --git a/base/src/org/compiere/model/X_C_Cycle.java b/base/src/org/compiere/model/X_C_Cycle.java index 7d1dd7028a..0181528bc9 100644 --- a/base/src/org/compiere/model/X_C_Cycle.java +++ b/base/src/org/compiere/model/X_C_Cycle.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Cycle @@ -74,21 +72,10 @@ public class X_C_Cycle extends PO implements I_C_Cycle, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID diff --git a/base/src/org/compiere/model/X_C_CyclePhase.java b/base/src/org/compiere/model/X_C_CyclePhase.java index d07d0ae069..c220497a4b 100644 --- a/base/src/org/compiere/model/X_C_CyclePhase.java +++ b/base/src/org/compiere/model/X_C_CyclePhase.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_CyclePhase * @author Adempiere (generated) @@ -72,21 +70,10 @@ public class X_C_CyclePhase extends PO implements I_C_CyclePhase, I_Persistent return sb.toString(); } - public I_C_CycleStep getC_CycleStep() throws RuntimeException + public I_C_CycleStep getC_CycleStep() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CycleStep.Table_Name); - I_C_CycleStep result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CycleStep)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CycleStep_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CycleStep)MTable.get(getCtx(), I_C_CycleStep.Table_Name) + .getPO(getC_CycleStep_ID(), get_TrxName()); } /** Set Cycle Step. @param C_CycleStep_ID @@ -111,21 +98,10 @@ public class X_C_CyclePhase extends PO implements I_C_CyclePhase, I_Persistent return ii.intValue(); } - public I_C_Phase getC_Phase() throws RuntimeException + public I_C_Phase getC_Phase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Phase.Table_Name); - I_C_Phase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Phase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Phase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Phase)MTable.get(getCtx(), I_C_Phase.Table_Name) + .getPO(getC_Phase_ID(), get_TrxName()); } /** Set Standard Phase. @param C_Phase_ID diff --git a/base/src/org/compiere/model/X_C_CycleStep.java b/base/src/org/compiere/model/X_C_CycleStep.java index f77677c385..f61c677ec5 100644 --- a/base/src/org/compiere/model/X_C_CycleStep.java +++ b/base/src/org/compiere/model/X_C_CycleStep.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -80,21 +78,10 @@ public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent return sb.toString(); } - public I_C_Cycle getC_Cycle() throws RuntimeException + public I_C_Cycle getC_Cycle() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Cycle.Table_Name); - I_C_Cycle result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Cycle)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Cycle_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Cycle)MTable.get(getCtx(), I_C_Cycle.Table_Name) + .getPO(getC_Cycle_ID(), get_TrxName()); } /** Set Project Cycle. @param C_Cycle_ID diff --git a/base/src/org/compiere/model/X_C_DocType.java b/base/src/org/compiere/model/X_C_DocType.java index f963c41731..4fbccae2e3 100644 --- a/base/src/org/compiere/model/X_C_DocType.java +++ b/base/src/org/compiere/model/X_C_DocType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_DocType @@ -92,21 +90,10 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return sb.toString(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -154,6 +141,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeDifference() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeDifference_ID(), get_TrxName()); } + /** Set Difference Document. @param C_DocTypeDifference_ID Document type for generating in dispute Shipments @@ -177,6 +169,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeInvoice() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeInvoice_ID(), get_TrxName()); } + /** Set Document Type for Invoice. @param C_DocTypeInvoice_ID Document type used for invoices generated from this sales document @@ -200,6 +197,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeProforma() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeProforma_ID(), get_TrxName()); } + /** Set Document Type for ProForma. @param C_DocTypeProforma_ID Document type used for pro forma invoices generated from this sales document @@ -223,6 +225,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeShipment() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeShipment_ID(), get_TrxName()); } + /** Set Document Type for Shipment. @param C_DocTypeShipment_ID Document type used for shipments generated from this sales document @@ -246,6 +253,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public I_AD_Sequence getDefiniteSequence() throws RuntimeException + { + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getDefiniteSequence_ID(), get_TrxName()); } + /** Set Definite Sequence. @param DefiniteSequence_ID Definite Sequence */ public void setDefiniteSequence_ID (int DefiniteSequence_ID) @@ -361,6 +373,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_DocBaseType); } + public I_AD_Sequence getDocNoSequence() throws RuntimeException + { + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getDocNoSequence_ID(), get_TrxName()); } + /** Set Document Sequence. @param DocNoSequence_ID Document sequence determines the numbering of documents @@ -457,21 +474,10 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_DocumentNote); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID diff --git a/base/src/org/compiere/model/X_C_DocTypeCounter.java b/base/src/org/compiere/model/X_C_DocTypeCounter.java index 3ff1f994ed..4a0dbaa009 100644 --- a/base/src/org/compiere/model/X_C_DocTypeCounter.java +++ b/base/src/org/compiere/model/X_C_DocTypeCounter.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_DocTypeCounter @@ -78,21 +76,10 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers return sb.toString(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -140,6 +127,11 @@ public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Pers return ii.intValue(); } + public I_C_DocType getCounter_C_DocType() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getCounter_C_DocType_ID(), get_TrxName()); } + /** Set Counter Document Type. @param Counter_C_DocType_ID Generated Counter Document Type (To) diff --git a/base/src/org/compiere/model/X_C_DunningLevel.java b/base/src/org/compiere/model/X_C_DunningLevel.java index 7c0d20e86b..5b775b7ea8 100644 --- a/base/src/org/compiere/model/X_C_DunningLevel.java +++ b/base/src/org/compiere/model/X_C_DunningLevel.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -85,21 +83,10 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste return sb.toString(); } - public I_C_Dunning getC_Dunning() throws RuntimeException + public I_C_Dunning getC_Dunning() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Dunning.Table_Name); - I_C_Dunning result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Dunning)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Dunning_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Dunning)MTable.get(getCtx(), I_C_Dunning.Table_Name) + .getPO(getC_Dunning_ID(), get_TrxName()); } /** Set Dunning. @param C_Dunning_ID @@ -144,21 +131,10 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -288,6 +264,11 @@ public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persiste return (String)get_Value(COLUMNNAME_Description); } + public I_AD_PrintFormat getDunning_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getDunning_PrintFormat_ID(), get_TrxName()); } + /** Set Dunning Print Format. @param Dunning_PrintFormat_ID Print Format for printing Dunning Letters diff --git a/base/src/org/compiere/model/X_C_DunningRun.java b/base/src/org/compiere/model/X_C_DunningRun.java index af335a5803..aa3814bb44 100644 --- a/base/src/org/compiere/model/X_C_DunningRun.java +++ b/base/src/org/compiere/model/X_C_DunningRun.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_DunningRun @@ -77,21 +75,10 @@ public class X_C_DunningRun extends PO implements I_C_DunningRun, I_Persistent return sb.toString(); } - public I_C_DunningLevel getC_DunningLevel() throws RuntimeException + public I_C_DunningLevel getC_DunningLevel() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DunningLevel.Table_Name); - I_C_DunningLevel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DunningLevel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningLevel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DunningLevel)MTable.get(getCtx(), I_C_DunningLevel.Table_Name) + .getPO(getC_DunningLevel_ID(), get_TrxName()); } /** Set Dunning Level. @param C_DunningLevel_ID Dunning Level */ diff --git a/base/src/org/compiere/model/X_C_DunningRunEntry.java b/base/src/org/compiere/model/X_C_DunningRunEntry.java index c170d2160a..32bbfa00b0 100644 --- a/base/src/org/compiere/model/X_C_DunningRunEntry.java +++ b/base/src/org/compiere/model/X_C_DunningRunEntry.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -141,21 +128,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -180,21 +156,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -219,21 +184,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -258,21 +212,10 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe return ii.intValue(); } - public I_C_DunningRun getC_DunningRun() throws RuntimeException + public I_C_DunningRun getC_DunningRun() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DunningRun.Table_Name); - I_C_DunningRun result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DunningRun)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningRun_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DunningRun)MTable.get(getCtx(), I_C_DunningRun.Table_Name) + .getPO(getC_DunningRun_ID(), get_TrxName()); } /** Set Dunning Run. @param C_DunningRun_ID @@ -389,6 +332,11 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe return bd; } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_DunningRunLine.java b/base/src/org/compiere/model/X_C_DunningRunLine.java index 75a0578d3e..aba26f9ef4 100644 --- a/base/src/org/compiere/model/X_C_DunningRunLine.java +++ b/base/src/org/compiere/model/X_C_DunningRunLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -105,21 +103,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers return bd; } - public I_C_DunningRunEntry getC_DunningRunEntry() throws RuntimeException + public I_C_DunningRunEntry getC_DunningRunEntry() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DunningRunEntry.Table_Name); - I_C_DunningRunEntry result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DunningRunEntry)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningRunEntry_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DunningRunEntry)MTable.get(getCtx(), I_C_DunningRunEntry.Table_Name) + .getPO(getC_DunningRunEntry_ID(), get_TrxName()); } /** Set Dunning Run Entry. @param C_DunningRunEntry_ID @@ -167,21 +154,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -214,21 +190,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); } - public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws RuntimeException + public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoicePaySchedule.Table_Name); - I_C_InvoicePaySchedule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoicePaySchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoicePaySchedule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoicePaySchedule)MTable.get(getCtx(), I_C_InvoicePaySchedule.Table_Name) + .getPO(getC_InvoicePaySchedule_ID(), get_TrxName()); } /** Set Invoice Payment Schedule. @param C_InvoicePaySchedule_ID @@ -253,21 +218,10 @@ public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Pers return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_C_Element.java b/base/src/org/compiere/model/X_C_Element.java index 9d76cc9a4f..02b4d5561b 100644 --- a/base/src/org/compiere/model/X_C_Element.java +++ b/base/src/org/compiere/model/X_C_Element.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Element @@ -78,21 +76,10 @@ public class X_C_Element extends PO implements I_C_Element, I_Persistent return sb.toString(); } - public I_AD_Tree getAD_Tree() throws RuntimeException + public I_AD_Tree getAD_Tree() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Tree.Table_Name); - I_AD_Tree result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Tree)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tree_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_ID(), get_TrxName()); } /** Set Tree. @param AD_Tree_ID diff --git a/base/src/org/compiere/model/X_C_ElementValue.java b/base/src/org/compiere/model/X_C_ElementValue.java index 72b9e7f2e5..a70cbf59b2 100644 --- a/base/src/org/compiere/model/X_C_ElementValue.java +++ b/base/src/org/compiere/model/X_C_ElementValue.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_ElementValue @@ -147,21 +145,10 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste return (String)get_Value(COLUMNNAME_AccountType); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -186,21 +173,10 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -225,21 +201,10 @@ public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persiste return ii.intValue(); } - public I_C_Element getC_Element() throws RuntimeException + public I_C_Element getC_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Element.Table_Name); - I_C_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Element)MTable.get(getCtx(), I_C_Element.Table_Name) + .getPO(getC_Element_ID(), get_TrxName()); } /** Set Element. @param C_Element_ID 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 7038c7c21a..b1b3dc7dec 100644 --- a/base/src/org/compiere/model/X_C_InterOrg_Acct.java +++ b/base/src/org/compiere/model/X_C_InterOrg_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_InterOrg_Acct * @author Adempiere (generated) @@ -97,21 +95,10 @@ public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persis return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -136,6 +123,11 @@ public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getIntercompanyDueFrom_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getIntercompanyDueFrom_Acct(), get_TrxName()); } + /** Set Intercompany Due From Acct. @param IntercompanyDueFrom_Acct Intercompany Due From / Receivables Account @@ -156,6 +148,11 @@ public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persis return ii.intValue(); } + public I_C_ValidCombination getIntercompanyDueTo_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getIntercompanyDueTo_Acct(), get_TrxName()); } + /** Set Intercompany Due To Acct. @param IntercompanyDueTo_Acct Intercompany Due To / Payable Account diff --git a/base/src/org/compiere/model/X_C_Invoice.java b/base/src/org/compiere/model/X_C_Invoice.java index 0439a6f78e..801f57c5cc 100644 --- a/base/src/org/compiere/model/X_C_Invoice.java +++ b/base/src/org/compiere/model/X_C_Invoice.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -137,21 +135,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -176,21 +163,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -215,21 +191,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -254,21 +219,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -293,21 +247,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -332,21 +275,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_CashLine getC_CashLine() throws RuntimeException + public I_C_CashLine getC_CashLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashLine.Table_Name); - I_C_CashLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashLine)MTable.get(getCtx(), I_C_CashLine.Table_Name) + .getPO(getC_CashLine_ID(), get_TrxName()); } /** Set Cash Journal Line. @param C_CashLine_ID @@ -371,6 +303,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } + public I_C_Charge getC_Charge() throws RuntimeException + { + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } + /** Set Charge. @param C_Charge_ID Additional document charges @@ -394,21 +331,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -433,21 +359,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -472,21 +387,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -511,6 +415,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeTarget() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeTarget_ID(), get_TrxName()); } + /** Set Target Document Type. @param C_DocTypeTarget_ID Target document type for conversing documents @@ -534,21 +443,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_DunningLevel getC_DunningLevel() throws RuntimeException + public I_C_DunningLevel getC_DunningLevel() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DunningLevel.Table_Name); - I_C_DunningLevel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DunningLevel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningLevel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DunningLevel)MTable.get(getCtx(), I_C_DunningLevel.Table_Name) + .getPO(getC_DunningLevel_ID(), get_TrxName()); } /** Set Dunning Level. @param C_DunningLevel_ID Dunning Level */ @@ -593,21 +491,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -632,21 +519,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -671,21 +547,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -710,21 +575,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -1324,21 +1178,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1363,21 +1206,10 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getM_RMA_ID(), get_TrxName()); } /** Set RMA. @param M_RMA_ID @@ -1542,6 +1374,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } + public I_C_Invoice getReversal() throws RuntimeException + { + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -1565,6 +1402,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -1632,6 +1474,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1655,6 +1502,11 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_InvoiceBatch.java b/base/src/org/compiere/model/X_C_InvoiceBatch.java index 7ade40e66a..eafb06909c 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatch.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatch.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -87,21 +85,10 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste return sb.toString(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -126,21 +113,10 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -356,6 +332,11 @@ public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persiste return false; } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java index d832de05b8..b05bdd5ff4 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -124,21 +122,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -163,21 +150,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -202,21 +178,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -241,21 +206,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -280,21 +234,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -319,21 +262,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -358,21 +290,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -397,21 +318,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_InvoiceBatch getC_InvoiceBatch() throws RuntimeException + public I_C_InvoiceBatch getC_InvoiceBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceBatch.Table_Name); - I_C_InvoiceBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceBatch)MTable.get(getCtx(), I_C_InvoiceBatch.Table_Name) + .getPO(getC_InvoiceBatch_ID(), get_TrxName()); } /** Set Invoice Batch. @param C_InvoiceBatch_ID @@ -459,21 +369,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -498,21 +397,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -537,21 +425,10 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -820,6 +697,11 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -843,6 +725,11 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_ return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_InvoiceLine.java b/base/src/org/compiere/model/X_C_InvoiceLine.java index cc2b2b3c47..b53f6c073d 100644 --- a/base/src/org/compiere/model/X_C_InvoiceLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -94,21 +92,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return sb.toString(); } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -133,21 +120,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -258,21 +234,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -297,21 +262,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -336,21 +290,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -375,21 +318,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -445,21 +377,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -484,21 +405,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -523,21 +433,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -562,21 +461,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -601,21 +489,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -640,21 +517,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -804,6 +670,11 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return bd; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -827,21 +698,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -866,21 +726,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -905,21 +754,10 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - public I_M_RMALine getM_RMALine() throws RuntimeException + public I_M_RMALine getM_RMALine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_RMALine.Table_Name); - I_M_RMALine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMALine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMALine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMALine)MTable.get(getCtx(), I_M_RMALine.Table_Name) + .getPO(getM_RMALine_ID(), get_TrxName()); } /** Set RMA Line. @param M_RMALine_ID @@ -1188,6 +1026,11 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1211,6 +1054,11 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java index ddcfecf8f8..a3f4abfc74 100644 --- a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java +++ b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule return sb.toString(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -144,21 +131,10 @@ public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule return ii.intValue(); } - public I_C_PaySchedule getC_PaySchedule() throws RuntimeException + public I_C_PaySchedule getC_PaySchedule() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaySchedule.Table_Name); - I_C_PaySchedule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaySchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaySchedule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaySchedule)MTable.get(getCtx(), I_C_PaySchedule.Table_Name) + .getPO(getC_PaySchedule_ID(), get_TrxName()); } /** Set Payment Schedule. @param C_PaySchedule_ID diff --git a/base/src/org/compiere/model/X_C_InvoiceTax.java b/base/src/org/compiere/model/X_C_InvoiceTax.java index ce3f871e1b..8c53bb5b60 100644 --- a/base/src/org/compiere/model/X_C_InvoiceTax.java +++ b/base/src/org/compiere/model/X_C_InvoiceTax.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_InvoiceTax @@ -78,21 +76,10 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent return sb.toString(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -117,21 +104,10 @@ public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID diff --git a/base/src/org/compiere/model/X_C_Job.java b/base/src/org/compiere/model/X_C_Job.java index 0633da68ff..c5c543ac47 100644 --- a/base/src/org/compiere/model/X_C_Job.java +++ b/base/src/org/compiere/model/X_C_Job.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Job @@ -99,21 +97,10 @@ public class X_C_Job extends PO implements I_C_Job, I_Persistent return ii.intValue(); } - public I_C_JobCategory getC_JobCategory() throws RuntimeException + public I_C_JobCategory getC_JobCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_JobCategory.Table_Name); - I_C_JobCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_JobCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_JobCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_JobCategory)MTable.get(getCtx(), I_C_JobCategory.Table_Name) + .getPO(getC_JobCategory_ID(), get_TrxName()); } /** Set Position Category. @param C_JobCategory_ID diff --git a/base/src/org/compiere/model/X_C_JobAssignment.java b/base/src/org/compiere/model/X_C_JobAssignment.java index 901ca46c8b..a01c420185 100644 --- a/base/src/org/compiere/model/X_C_JobAssignment.java +++ b/base/src/org/compiere/model/X_C_JobAssignment.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_JobAssignment @@ -76,21 +74,10 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -115,21 +102,10 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis return ii.intValue(); } - public I_C_Job getC_Job() throws RuntimeException + public I_C_Job getC_Job() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Job.Table_Name); - I_C_Job result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Job)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Job_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Job)MTable.get(getCtx(), I_C_Job.Table_Name) + .getPO(getC_Job_ID(), get_TrxName()); } /** Set Position. @param C_Job_ID diff --git a/base/src/org/compiere/model/X_C_JobRemuneration.java b/base/src/org/compiere/model/X_C_JobRemuneration.java index 592f589c85..9992d7844f 100644 --- a/base/src/org/compiere/model/X_C_JobRemuneration.java +++ b/base/src/org/compiere/model/X_C_JobRemuneration.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_JobRemuneration @@ -76,21 +74,10 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe return sb.toString(); } - public I_C_Job getC_Job() throws RuntimeException + public I_C_Job getC_Job() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Job.Table_Name); - I_C_Job result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Job)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Job_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Job)MTable.get(getCtx(), I_C_Job.Table_Name) + .getPO(getC_Job_ID(), get_TrxName()); } /** Set Position. @param C_Job_ID @@ -146,21 +133,10 @@ public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Pe return ii.intValue(); } - public I_C_Remuneration getC_Remuneration() throws RuntimeException + public I_C_Remuneration getC_Remuneration() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Remuneration.Table_Name); - I_C_Remuneration result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Remuneration)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Remuneration_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Remuneration)MTable.get(getCtx(), I_C_Remuneration.Table_Name) + .getPO(getC_Remuneration_ID(), get_TrxName()); } /** Set Remuneration. @param C_Remuneration_ID diff --git a/base/src/org/compiere/model/X_C_LandedCost.java b/base/src/org/compiere/model/X_C_LandedCost.java index 4d7e0f8481..fa1281dbec 100644 --- a/base/src/org/compiere/model/X_C_LandedCost.java +++ b/base/src/org/compiere/model/X_C_LandedCost.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_LandedCost @@ -76,21 +74,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent return sb.toString(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -193,21 +180,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent return (String)get_Value(COLUMNNAME_LandedCostDistribution); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -232,21 +208,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent return ii.intValue(); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -271,21 +236,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -310,21 +264,10 @@ public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_LandedCostAllocation.java b/base/src/org/compiere/model/X_C_LandedCostAllocation.java index e4d4584771..5dc20983a8 100644 --- a/base/src/org/compiere/model/X_C_LandedCostAllocation.java +++ b/base/src/org/compiere/model/X_C_LandedCostAllocation.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -120,21 +118,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca return bd; } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -190,6 +177,11 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -213,21 +205,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca return ii.intValue(); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -252,21 +233,10 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_Location.java b/base/src/org/compiere/model/X_C_Location.java index f02e209763..30af2d79b8 100644 --- a/base/src/org/compiere/model/X_C_Location.java +++ b/base/src/org/compiere/model/X_C_Location.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Location @@ -141,21 +139,10 @@ public class X_C_Location extends PO implements I_C_Location, I_Persistent return (String)get_Value(COLUMNNAME_Address4); } - public I_C_City getC_City() throws RuntimeException + public I_C_City getC_City() throws RuntimeException { - Class clazz = MTable.getClass(I_C_City.Table_Name); - I_C_City result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_City)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_City_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_City)MTable.get(getCtx(), I_C_City.Table_Name) + .getPO(getC_City_ID(), get_TrxName()); } /** Set City. @param C_City_ID @@ -180,21 +167,10 @@ public class X_C_Location extends PO implements I_C_Location, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -242,21 +218,10 @@ public class X_C_Location extends PO implements I_C_Location, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID diff --git a/base/src/org/compiere/model/X_C_NonBusinessDay.java b/base/src/org/compiere/model/X_C_NonBusinessDay.java index 7d2dddf80d..4575c7dd4a 100644 --- a/base/src/org/compiere/model/X_C_NonBusinessDay.java +++ b/base/src/org/compiere/model/X_C_NonBusinessDay.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_NonBusinessDay @@ -75,21 +73,10 @@ public class X_C_NonBusinessDay extends PO implements I_C_NonBusinessDay, I_Pers return sb.toString(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID diff --git a/base/src/org/compiere/model/X_C_Order.java b/base/src/org/compiere/model/X_C_Order.java index a54a754ca4..d4c9ec2974 100644 --- a/base/src/org/compiere/model/X_C_Order.java +++ b/base/src/org/compiere/model/X_C_Order.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -154,21 +152,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -227,6 +214,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return bd; } + public I_C_BPartner getBill_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getBill_BPartner_ID(), get_TrxName()); } + /** Set Invoice Partner. @param Bill_BPartner_ID Business Partner to be invoiced @@ -250,6 +242,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_C_BPartner_Location getBill_Location() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getBill_Location_ID(), get_TrxName()); } + /** Set Invoice Location. @param Bill_Location_ID Business Partner Location for invoicing @@ -273,6 +270,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_AD_User getBill_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getBill_User_ID(), get_TrxName()); } + /** Set Invoice Contact. @param Bill_User_ID Business Partner Contact for invoicing @@ -296,21 +298,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -335,21 +326,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -374,21 +354,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -413,21 +382,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -452,21 +410,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_CashLine getC_CashLine() throws RuntimeException + public I_C_CashLine getC_CashLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashLine.Table_Name); - I_C_CashLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashLine)MTable.get(getCtx(), I_C_CashLine.Table_Name) + .getPO(getC_CashLine_ID(), get_TrxName()); } /** Set Cash Journal Line. @param C_CashLine_ID @@ -491,6 +438,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_C_Charge getC_Charge() throws RuntimeException + { + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } + /** Set Charge. @param C_Charge_ID Additional document charges @@ -514,21 +466,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -553,21 +494,10 @@ public class X_C_Order extends PO implements I_C_Order, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -592,21 +522,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -631,6 +550,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeTarget() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeTarget_ID(), get_TrxName()); } + /** Set Target Document Type. @param C_DocTypeTarget_ID Target document type for conversing documents @@ -677,21 +601,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -716,21 +629,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -755,21 +657,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_POS getC_POS() throws RuntimeException + public I_C_POS getC_POS() throws RuntimeException { - Class clazz = MTable.getClass(I_C_POS.Table_Name); - I_C_POS result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_POS)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POS_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_POS)MTable.get(getCtx(), I_C_POS.Table_Name) + .getPO(getC_POS_ID(), get_TrxName()); } /** Set POS Terminal. @param C_POS_ID @@ -794,21 +685,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -1130,6 +1010,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return new KeyNamePair(get_ID(), getDocumentNo()); } + public I_C_BPartner getDropShip_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getDropShip_BPartner_ID(), get_TrxName()); } + /** Set Drop Shipment Partner. @param DropShip_BPartner_ID Business Partner to ship to @@ -1153,6 +1038,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_C_BPartner_Location getDropShip_Location() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getDropShip_Location_ID(), get_TrxName()); } + /** Set Drop Shipment Location. @param DropShip_Location_ID Business Partner Location for shipping to @@ -1176,6 +1066,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_AD_User getDropShip_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getDropShip_User_ID(), get_TrxName()); } + /** Set Drop Shipment Contact. @param DropShip_User_ID Business Partner Contact for drop shipment @@ -1577,6 +1472,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return false; } + public I_C_Order getLink_Order() throws RuntimeException + { + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getLink_Order_ID(), get_TrxName()); } + /** Set Linked Order. @param Link_Order_ID This field links a sales order to the purchase order that is generated from it. @@ -1600,21 +1500,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_M_FreightCategory getM_FreightCategory() throws RuntimeException + public I_M_FreightCategory getM_FreightCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_FreightCategory.Table_Name); - I_M_FreightCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_FreightCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_FreightCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_FreightCategory)MTable.get(getCtx(), I_M_FreightCategory.Table_Name) + .getPO(getM_FreightCategory_ID(), get_TrxName()); } /** Set Freight Category. @param M_FreightCategory_ID @@ -1639,21 +1528,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1678,21 +1556,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -1717,21 +1584,10 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -1983,6 +1839,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return (String)get_Value(COLUMNNAME_PromotionCode); } + public I_C_Order getRef_Order() throws RuntimeException + { + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getRef_Order_ID(), get_TrxName()); } + /** Set Referenced Order. @param Ref_Order_ID Reference to corresponding Sales/Purchase Order @@ -2006,6 +1867,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -2073,6 +1939,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -2096,6 +1967,11 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_OrderLine.java b/base/src/org/compiere/model/X_C_OrderLine.java index 6505a01f06..fd576cb330 100644 --- a/base/src/org/compiere/model/X_C_OrderLine.java +++ b/base/src/org/compiere/model/X_C_OrderLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -130,21 +128,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -169,21 +156,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -208,21 +184,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -247,21 +212,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -286,21 +240,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -325,21 +268,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -364,21 +296,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -434,21 +355,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -473,21 +383,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -512,21 +411,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -551,21 +439,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -590,21 +467,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -818,6 +684,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return bd; } + public I_C_OrderLine getLink_OrderLine() throws RuntimeException + { + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getLink_OrderLine_ID(), get_TrxName()); } + /** Set Linked Order Line. @param Link_OrderLine_ID This field links a sales order line to the purchase order line that is generated from it. @@ -841,6 +712,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -864,21 +740,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -903,21 +768,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_M_Promotion getM_Promotion() throws RuntimeException + public I_M_Promotion getM_Promotion() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Promotion.Table_Name); - I_M_Promotion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Promotion)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Promotion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Promotion)MTable.get(getCtx(), I_M_Promotion.Table_Name) + .getPO(getM_Promotion_ID(), get_TrxName()); } /** Set Promotion. @param M_Promotion_ID Promotion */ @@ -939,21 +793,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -978,6 +821,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } + public I_M_Warehouse getM_Warehouse() throws RuntimeException + { + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } + /** Set Warehouse. @param M_Warehouse_ID Storage Warehouse and Service Point @@ -1001,21 +849,10 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } - public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException + public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Cost_Collector.Table_Name); - org.eevolution.model.I_PP_Cost_Collector result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Cost_Collector)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Cost_Collector_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_PP_Cost_Collector)MTable.get(getCtx(), org.eevolution.model.I_PP_Cost_Collector.Table_Name) + .getPO(getPP_Cost_Collector_ID(), get_TrxName()); } /** Set Manufacturing Cost Collector. @param PP_Cost_Collector_ID Manufacturing Cost Collector */ @@ -1281,6 +1118,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return bd; } + public I_C_OrderLine getRef_OrderLine() throws RuntimeException + { + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getRef_OrderLine_ID(), get_TrxName()); } + /** Set Referenced Order Line. @param Ref_OrderLine_ID Reference to corresponding Sales/Purchase Order @@ -1364,6 +1206,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1387,6 +1234,11 @@ public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_OrderTax.java b/base/src/org/compiere/model/X_C_OrderTax.java index 435e6678d1..c108e6e7a7 100644 --- a/base/src/org/compiere/model/X_C_OrderTax.java +++ b/base/src/org/compiere/model/X_C_OrderTax.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_OrderTax @@ -78,21 +76,10 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -117,21 +104,10 @@ public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID diff --git a/base/src/org/compiere/model/X_C_OrgAssignment.java b/base/src/org/compiere/model/X_C_OrgAssignment.java index af63ec0a13..2ded71eee9 100644 --- a/base/src/org/compiere/model/X_C_OrgAssignment.java +++ b/base/src/org/compiere/model/X_C_OrgAssignment.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_OrgAssignment * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persis return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_C_POS.java b/base/src/org/compiere/model/X_C_POS.java index dbee977c3d..04376f557e 100644 --- a/base/src/org/compiere/model/X_C_POS.java +++ b/base/src/org/compiere/model/X_C_POS.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_POS @@ -79,21 +77,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return sb.toString(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -118,6 +105,11 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_BPartnerCashTrx() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartnerCashTrx_ID(), get_TrxName()); } + /** Set Template B.Partner. @param C_BPartnerCashTrx_ID Business Partner used for creating new Business Partners on the fly @@ -141,21 +133,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return ii.intValue(); } - public I_C_CashBook getC_CashBook() throws RuntimeException + public I_C_CashBook getC_CashBook() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashBook.Table_Name); - I_C_CashBook result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getC_CashBook_ID(), get_TrxName()); } /** Set Cash Book. @param C_CashBook_ID @@ -180,21 +161,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -242,21 +212,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return ii.intValue(); } - public I_C_POSKeyLayout getC_POSKeyLayout() throws RuntimeException + public I_C_POSKeyLayout getC_POSKeyLayout() throws RuntimeException { - Class clazz = MTable.getClass(I_C_POSKeyLayout.Table_Name); - I_C_POSKeyLayout result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_POSKeyLayout)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POSKeyLayout_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_POSKeyLayout)MTable.get(getCtx(), I_C_POSKeyLayout.Table_Name) + .getPO(getC_POSKeyLayout_ID(), get_TrxName()); } /** Set POS Key Layout. @param C_POSKeyLayout_ID @@ -353,21 +312,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -392,21 +340,10 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -473,6 +410,11 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent return (String)get_Value(COLUMNNAME_PrinterName); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_POSKey.java b/base/src/org/compiere/model/X_C_POSKey.java index 4509b2fbe8..8917d13624 100644 --- a/base/src/org/compiere/model/X_C_POSKey.java +++ b/base/src/org/compiere/model/X_C_POSKey.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent return sb.toString(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID @@ -141,21 +128,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent return ii.intValue(); } - public I_C_POSKeyLayout getC_POSKeyLayout() throws RuntimeException + public I_C_POSKeyLayout getC_POSKeyLayout() throws RuntimeException { - Class clazz = MTable.getClass(I_C_POSKeyLayout.Table_Name); - I_C_POSKeyLayout result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_POSKeyLayout)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POSKeyLayout_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_POSKeyLayout)MTable.get(getCtx(), I_C_POSKeyLayout.Table_Name) + .getPO(getC_POSKeyLayout_ID(), get_TrxName()); } /** Set POS Key Layout. @param C_POSKeyLayout_ID @@ -197,21 +173,10 @@ public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_PaySchedule.java b/base/src/org/compiere/model/X_C_PaySchedule.java index 04a2593029..656ba34c08 100644 --- a/base/src/org/compiere/model/X_C_PaySchedule.java +++ b/base/src/org/compiere/model/X_C_PaySchedule.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,21 +79,10 @@ public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent return sb.toString(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID diff --git a/base/src/org/compiere/model/X_C_PaySelection.java b/base/src/org/compiere/model/X_C_PaySelection.java index b052f9a00c..d2b5840187 100644 --- a/base/src/org/compiere/model/X_C_PaySelection.java +++ b/base/src/org/compiere/model/X_C_PaySelection.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -84,21 +82,10 @@ public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persiste return sb.toString(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID diff --git a/base/src/org/compiere/model/X_C_PaySelectionCheck.java b/base/src/org/compiere/model/X_C_PaySelectionCheck.java index 76d33cdff2..709a43bd9b 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionCheck.java +++ b/base/src/org/compiere/model/X_C_PaySelectionCheck.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_PaySelectionCheck @@ -85,21 +83,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, return sb.toString(); } - public I_C_BP_BankAccount getC_BP_BankAccount() throws RuntimeException + public I_C_BP_BankAccount getC_BP_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_BankAccount.Table_Name); - I_C_BP_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_BankAccount)MTable.get(getCtx(), I_C_BP_BankAccount.Table_Name) + .getPO(getC_BP_BankAccount_ID(), get_TrxName()); } /** Set Partner Bank Account. @param C_BP_BankAccount_ID @@ -124,21 +111,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -163,6 +139,11 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, return ii.intValue(); } + public I_C_Payment getC_Payment() throws RuntimeException + { + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } + /** Set Payment. @param C_Payment_ID Payment identifier @@ -186,21 +167,10 @@ public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, return ii.intValue(); } - public I_C_PaySelection getC_PaySelection() throws RuntimeException + public I_C_PaySelection getC_PaySelection() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaySelection.Table_Name); - I_C_PaySelection result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaySelection)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaySelection_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaySelection)MTable.get(getCtx(), I_C_PaySelection.Table_Name) + .getPO(getC_PaySelection_ID(), get_TrxName()); } /** Set Payment Selection. @param C_PaySelection_ID diff --git a/base/src/org/compiere/model/X_C_PaySelectionLine.java b/base/src/org/compiere/model/X_C_PaySelectionLine.java index 713986eadc..85e315b8d2 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionLine.java +++ b/base/src/org/compiere/model/X_C_PaySelectionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -88,21 +86,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ return sb.toString(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -127,21 +114,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ return ii.intValue(); } - public I_C_PaySelection getC_PaySelection() throws RuntimeException + public I_C_PaySelection getC_PaySelection() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaySelection.Table_Name); - I_C_PaySelection result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaySelection)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaySelection_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaySelection)MTable.get(getCtx(), I_C_PaySelection.Table_Name) + .getPO(getC_PaySelection_ID(), get_TrxName()); } /** Set Payment Selection. @param C_PaySelection_ID @@ -166,21 +142,10 @@ public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_ return ii.intValue(); } - public I_C_PaySelectionCheck getC_PaySelectionCheck() throws RuntimeException + public I_C_PaySelectionCheck getC_PaySelectionCheck() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaySelectionCheck.Table_Name); - I_C_PaySelectionCheck result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaySelectionCheck)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaySelectionCheck_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaySelectionCheck)MTable.get(getCtx(), I_C_PaySelectionCheck.Table_Name) + .getPO(getC_PaySelectionCheck_ID(), get_TrxName()); } /** Set Pay Selection Check. @param C_PaySelectionCheck_ID diff --git a/base/src/org/compiere/model/X_C_Payment.java b/base/src/org/compiere/model/X_C_Payment.java index 145bf440b1..594a97ada9 100644 --- a/base/src/org/compiere/model/X_C_Payment.java +++ b/base/src/org/compiere/model/X_C_Payment.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -300,21 +298,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -339,21 +326,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -378,21 +354,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_BP_BankAccount getC_BP_BankAccount() throws RuntimeException + public I_C_BP_BankAccount getC_BP_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_BankAccount.Table_Name); - I_C_BP_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_BankAccount)MTable.get(getCtx(), I_C_BP_BankAccount.Table_Name) + .getPO(getC_BP_BankAccount_ID(), get_TrxName()); } /** Set Partner Bank Account. @param C_BP_BankAccount_ID @@ -417,21 +382,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -456,21 +410,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -495,21 +438,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_CashBook getC_CashBook() throws RuntimeException + public I_C_CashBook getC_CashBook() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashBook.Table_Name); - I_C_CashBook result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getC_CashBook_ID(), get_TrxName()); } /** Set Cash Book. @param C_CashBook_ID @@ -534,21 +466,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -573,21 +494,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -612,21 +522,10 @@ public class X_C_Payment extends PO implements I_C_Payment, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -651,21 +550,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -690,21 +578,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -729,21 +606,10 @@ public class X_C_Payment extends PO implements I_C_Payment, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -791,21 +657,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_PaymentBatch getC_PaymentBatch() throws RuntimeException + public I_C_PaymentBatch getC_PaymentBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentBatch.Table_Name); - I_C_PaymentBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentBatch)MTable.get(getCtx(), I_C_PaymentBatch.Table_Name) + .getPO(getC_PaymentBatch_ID(), get_TrxName()); } /** Set Payment Batch. @param C_PaymentBatch_ID @@ -830,21 +685,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -1790,6 +1634,11 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return (String)get_Value(COLUMNNAME_R_Result); } + public I_C_Payment getRef_Payment() throws RuntimeException + { + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getRef_Payment_ID(), get_TrxName()); } + /** Set Referenced Payment. @param Ref_Payment_ID Referenced Payment */ public void setRef_Payment_ID (int Ref_Payment_ID) @@ -1810,6 +1659,11 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } + public I_C_Payment getReversal() throws RuntimeException + { + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -1951,6 +1805,11 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return (String)get_Value(COLUMNNAME_TrxType); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1974,6 +1833,11 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_PaymentAllocate.java b/base/src/org/compiere/model/X_C_PaymentAllocate.java index dbc66d5546..100ef0a959 100644 --- a/base/src/org/compiere/model/X_C_PaymentAllocate.java +++ b/base/src/org/compiere/model/X_C_PaymentAllocate.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -100,21 +98,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe return bd; } - public I_C_AllocationLine getC_AllocationLine() throws RuntimeException + public I_C_AllocationLine getC_AllocationLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AllocationLine.Table_Name); - I_C_AllocationLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AllocationLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AllocationLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AllocationLine)MTable.get(getCtx(), I_C_AllocationLine.Table_Name) + .getPO(getC_AllocationLine_ID(), get_TrxName()); } /** Set Allocation Line. @param C_AllocationLine_ID @@ -139,21 +126,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -186,21 +162,10 @@ public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Pe return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_C_PaymentBatch.java b/base/src/org/compiere/model/X_C_PaymentBatch.java index 37aedd05ea..455f026373 100644 --- a/base/src/org/compiere/model/X_C_PaymentBatch.java +++ b/base/src/org/compiere/model/X_C_PaymentBatch.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_PaymentBatch @@ -100,21 +98,10 @@ public class X_C_PaymentBatch extends PO implements I_C_PaymentBatch, I_Persiste return ii.intValue(); } - public I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException + public I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentProcessor.Table_Name); - I_C_PaymentProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentProcessor)MTable.get(getCtx(), I_C_PaymentProcessor.Table_Name) + .getPO(getC_PaymentProcessor_ID(), get_TrxName()); } /** Set Payment Processor. @param C_PaymentProcessor_ID diff --git a/base/src/org/compiere/model/X_C_PaymentProcessor.java b/base/src/org/compiere/model/X_C_PaymentProcessor.java index 968d59cf77..691fb9655c 100644 --- a/base/src/org/compiere/model/X_C_PaymentProcessor.java +++ b/base/src/org/compiere/model/X_C_PaymentProcessor.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -333,6 +331,11 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ return false; } + public I_AD_Sequence getAD_Sequence() throws RuntimeException + { + return (I_AD_Sequence)MTable.get(getCtx(), I_AD_Sequence.Table_Name) + .getPO(getAD_Sequence_ID(), get_TrxName()); } + /** Set Sequence. @param AD_Sequence_ID Document Sequence @@ -356,21 +359,10 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ return ii.intValue(); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -395,21 +387,10 @@ public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID diff --git a/base/src/org/compiere/model/X_C_Period.java b/base/src/org/compiere/model/X_C_Period.java index 0e4da73d9f..ef6822e7e0 100644 --- a/base/src/org/compiere/model/X_C_Period.java +++ b/base/src/org/compiere/model/X_C_Period.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Period @@ -102,21 +100,10 @@ public class X_C_Period extends PO implements I_C_Period, I_Persistent return ii.intValue(); } - public I_C_Year getC_Year() throws RuntimeException + public I_C_Year getC_Year() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Year.Table_Name); - I_C_Year result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Year)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Year_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Year)MTable.get(getCtx(), I_C_Year.Table_Name) + .getPO(getC_Year_ID(), get_TrxName()); } /** Set Year. @param C_Year_ID diff --git a/base/src/org/compiere/model/X_C_PeriodControl.java b/base/src/org/compiere/model/X_C_PeriodControl.java index 2896f7df9e..5c9e9aab37 100644 --- a/base/src/org/compiere/model/X_C_PeriodControl.java +++ b/base/src/org/compiere/model/X_C_PeriodControl.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_PeriodControl @@ -76,21 +74,10 @@ public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persis return sb.toString(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID diff --git a/base/src/org/compiere/model/X_C_Phase.java b/base/src/org/compiere/model/X_C_Phase.java index cff45951b1..4565ece284 100644 --- a/base/src/org/compiere/model/X_C_Phase.java +++ b/base/src/org/compiere/model/X_C_Phase.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -103,21 +101,10 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent return ii.intValue(); } - public I_C_ProjectType getC_ProjectType() throws RuntimeException + public I_C_ProjectType getC_ProjectType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectType.Table_Name); - I_C_ProjectType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectType)MTable.get(getCtx(), I_C_ProjectType.Table_Name) + .getPO(getC_ProjectType_ID(), get_TrxName()); } /** Set Project Type. @param C_ProjectType_ID @@ -176,21 +163,10 @@ public class X_C_Phase extends PO implements I_C_Phase, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_Project.java b/base/src/org/compiere/model/X_C_Project.java index e38cb09318..f24f95a06a 100644 --- a/base/src/org/compiere/model/X_C_Project.java +++ b/base/src/org/compiere/model/X_C_Project.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -94,21 +92,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -133,21 +120,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -172,21 +148,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -211,6 +176,11 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_BPartnerSR() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartnerSR_ID(), get_TrxName()); } + /** Set BPartner (Agent). @param C_BPartnerSR_ID Business Partner (Agent or Sales Rep) @@ -234,21 +204,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -273,21 +232,10 @@ public class X_C_Project extends PO implements I_C_Project, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -312,21 +260,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -351,21 +288,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - public I_C_Phase getC_Phase() throws RuntimeException + public I_C_Phase getC_Phase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Phase.Table_Name); - I_C_Phase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Phase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Phase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Phase)MTable.get(getCtx(), I_C_Phase.Table_Name) + .getPO(getC_Phase_ID(), get_TrxName()); } /** Set Standard Phase. @param C_Phase_ID @@ -667,21 +593,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return false; } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -706,21 +621,10 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -1005,6 +909,11 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent return (String)get_Value(COLUMNNAME_ProjInvoiceRule); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_ProjectIssue.java b/base/src/org/compiere/model/X_C_ProjectIssue.java index 49cc7608f3..a5497d5557 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssue.java +++ b/base/src/org/compiere/model/X_C_ProjectIssue.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -86,21 +84,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return sb.toString(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -193,6 +180,11 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -216,21 +208,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -255,6 +236,11 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -278,21 +264,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -423,21 +398,10 @@ public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persiste return false; } - public I_S_TimeExpenseLine getS_TimeExpenseLine() throws RuntimeException + public I_S_TimeExpenseLine getS_TimeExpenseLine() throws RuntimeException { - Class clazz = MTable.getClass(I_S_TimeExpenseLine.Table_Name); - I_S_TimeExpenseLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_TimeExpenseLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_TimeExpenseLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_TimeExpenseLine)MTable.get(getCtx(), I_S_TimeExpenseLine.Table_Name) + .getPO(getS_TimeExpenseLine_ID(), get_TrxName()); } /** Set Expense Line. @param S_TimeExpenseLine_ID diff --git a/base/src/org/compiere/model/X_C_ProjectIssueMA.java b/base/src/org/compiere/model/X_C_ProjectIssueMA.java index f30cbfcd6f..92cef45e03 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssueMA.java +++ b/base/src/org/compiere/model/X_C_ProjectIssueMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,21 +74,10 @@ public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Pers return sb.toString(); } - public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException + public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); - I_C_ProjectIssue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectIssue)MTable.get(getCtx(), I_C_ProjectIssue.Table_Name) + .getPO(getC_ProjectIssue_ID(), get_TrxName()); } /** Set Project Issue. @param C_ProjectIssue_ID @@ -123,6 +110,11 @@ public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getC_ProjectIssue_ID())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance diff --git a/base/src/org/compiere/model/X_C_ProjectLine.java b/base/src/org/compiere/model/X_C_ProjectLine.java index 839422706f..c848ec97c8 100644 --- a/base/src/org/compiere/model/X_C_ProjectLine.java +++ b/base/src/org/compiere/model/X_C_ProjectLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -89,21 +87,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -128,6 +115,11 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } + public I_C_Order getC_OrderPO() throws RuntimeException + { + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_OrderPO_ID(), get_TrxName()); } + /** Set Purchase Order. @param C_OrderPO_ID Purchase Order @@ -151,21 +143,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -190,21 +171,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } - public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException + public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); - I_C_ProjectIssue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectIssue)MTable.get(getCtx(), I_C_ProjectIssue.Table_Name) + .getPO(getC_ProjectIssue_ID(), get_TrxName()); } /** Set Project Issue. @param C_ProjectIssue_ID @@ -252,21 +222,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -291,21 +250,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -493,21 +441,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getLine())); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -532,21 +469,10 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_ProjectPhase.java b/base/src/org/compiere/model/X_C_ProjectPhase.java index 2b9883ca85..25ffb91b4a 100644 --- a/base/src/org/compiere/model/X_C_ProjectPhase.java +++ b/base/src/org/compiere/model/X_C_ProjectPhase.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -85,21 +83,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -124,21 +111,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste return ii.intValue(); } - public I_C_Phase getC_Phase() throws RuntimeException + public I_C_Phase getC_Phase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Phase.Table_Name); - I_C_Phase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Phase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Phase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Phase)MTable.get(getCtx(), I_C_Phase.Table_Name) + .getPO(getC_Phase_ID(), get_TrxName()); } /** Set Standard Phase. @param C_Phase_ID @@ -163,21 +139,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -361,21 +326,10 @@ public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persiste return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_ProjectTask.java b/base/src/org/compiere/model/X_C_ProjectTask.java index 0a8f2b852b..6d49e61bd8 100644 --- a/base/src/org/compiere/model/X_C_ProjectTask.java +++ b/base/src/org/compiere/model/X_C_ProjectTask.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent return sb.toString(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -144,21 +131,10 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent return ii.intValue(); } - public I_C_Task getC_Task() throws RuntimeException + public I_C_Task getC_Task() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Task.Table_Name); - I_C_Task result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Task_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Task)MTable.get(getCtx(), I_C_Task.Table_Name) + .getPO(getC_Task_ID(), get_TrxName()); } /** Set Standard Task. @param C_Task_ID @@ -237,21 +213,10 @@ public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 be1d2db613..7ded92d720 100644 --- a/base/src/org/compiere/model/X_C_Project_Acct.java +++ b/base/src/org/compiere/model/X_C_Project_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Project_Acct * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -113,21 +100,10 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -152,6 +128,11 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getPJ_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPJ_Asset_Acct(), get_TrxName()); } + /** Set Project Asset. @param PJ_Asset_Acct Project Asset Account @@ -172,6 +153,11 @@ public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getPJ_WIP_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getPJ_WIP_Acct(), get_TrxName()); } + /** Set Work In Progress. @param PJ_WIP_Acct Account for Work in Progress diff --git a/base/src/org/compiere/model/X_C_Recurring.java b/base/src/org/compiere/model/X_C_Recurring.java index b2bc810ae0..417752945b 100644 --- a/base/src/org/compiere/model/X_C_Recurring.java +++ b/base/src/org/compiere/model/X_C_Recurring.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Recurring @@ -80,21 +78,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent return sb.toString(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -119,21 +106,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -158,21 +134,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -197,21 +162,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -358,21 +312,10 @@ public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent return (String)get_Value(COLUMNNAME_FrequencyType); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID 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 60bf0e3df6..70377019b2 100644 --- a/base/src/org/compiere/model/X_C_Recurring_Run.java +++ b/base/src/org/compiere/model/X_C_Recurring_Run.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Recurring_Run * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis return sb.toString(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -112,21 +99,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -151,21 +127,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -190,21 +155,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -229,21 +183,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis return ii.intValue(); } - public I_C_Recurring getC_Recurring() throws RuntimeException + public I_C_Recurring getC_Recurring() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Recurring.Table_Name); - I_C_Recurring result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Recurring)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Recurring_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Recurring)MTable.get(getCtx(), I_C_Recurring.Table_Name) + .getPO(getC_Recurring_ID(), get_TrxName()); } /** Set Recurring. @param C_Recurring_ID @@ -308,21 +251,10 @@ public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persis return (Timestamp)get_Value(COLUMNNAME_DateDoc); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID diff --git a/base/src/org/compiere/model/X_C_Region.java b/base/src/org/compiere/model/X_C_Region.java index 8122c37735..fb045b1003 100644 --- a/base/src/org/compiere/model/X_C_Region.java +++ b/base/src/org/compiere/model/X_C_Region.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Region @@ -74,21 +72,10 @@ public class X_C_Region extends PO implements I_C_Region, I_Persistent return sb.toString(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID 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 d204de1cc5..5e82a63d7f 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -121,21 +108,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -160,21 +136,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -199,21 +164,10 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn return ii.intValue(); } - public I_C_RevenueRecognition getC_RevenueRecognition() throws RuntimeException + public I_C_RevenueRecognition getC_RevenueRecognition() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name); - I_C_RevenueRecognition result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RevenueRecognition)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RevenueRecognition)MTable.get(getCtx(), I_C_RevenueRecognition.Table_Name) + .getPO(getC_RevenueRecognition_ID(), get_TrxName()); } /** Set Revenue Recognition. @param C_RevenueRecognition_ID @@ -269,6 +223,11 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn return ii.intValue(); } + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Revenue_Acct(), get_TrxName()); } + /** Set Product Revenue. @param P_Revenue_Acct Account for Product Revenue (Sales Account) @@ -326,6 +285,11 @@ public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecogn return bd; } + public I_C_ValidCombination getUnEarnedRevenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getUnEarnedRevenue_Acct(), get_TrxName()); } + /** Set Unearned Revenue. @param UnEarnedRevenue_Acct Account for unearned revenue 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 fe4b22be67..df164b038a 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni return sb.toString(); } - public I_C_RevenueRecognition_Plan getC_RevenueRecognition_Plan() throws RuntimeException + public I_C_RevenueRecognition_Plan getC_RevenueRecognition_Plan() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RevenueRecognition_Plan.Table_Name); - I_C_RevenueRecognition_Plan result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RevenueRecognition_Plan)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_Plan_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RevenueRecognition_Plan)MTable.get(getCtx(), I_C_RevenueRecognition_Plan.Table_Name) + .getPO(getC_RevenueRecognition_Plan_ID(), get_TrxName()); } /** Set Revenue Recognition Plan. @param C_RevenueRecognition_Plan_ID @@ -147,21 +134,10 @@ public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecogni return ii.intValue(); } - public I_GL_Journal getGL_Journal() throws RuntimeException + public I_GL_Journal getGL_Journal() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Journal.Table_Name); - I_GL_Journal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Journal)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Journal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Journal)MTable.get(getCtx(), I_GL_Journal.Table_Name) + .getPO(getGL_Journal_ID(), get_TrxName()); } /** Set Journal. @param GL_Journal_ID diff --git a/base/src/org/compiere/model/X_C_RfQ.java b/base/src/org/compiere/model/X_C_RfQ.java index 0d3251ec00..717b6817be 100644 --- a/base/src/org/compiere/model/X_C_RfQ.java +++ b/base/src/org/compiere/model/X_C_RfQ.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -92,21 +90,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -131,21 +118,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -170,21 +146,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -209,21 +174,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -248,21 +202,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -310,21 +253,10 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent return ii.intValue(); } - public I_C_RfQ_Topic getC_RfQ_Topic() throws RuntimeException + public I_C_RfQ_Topic getC_RfQ_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQ_Topic.Table_Name); - I_C_RfQ_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQ_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQ_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQ_Topic)MTable.get(getCtx(), I_C_RfQ_Topic.Table_Name) + .getPO(getC_RfQ_Topic_ID(), get_TrxName()); } /** Set RfQ Topic. @param C_RfQ_Topic_ID @@ -780,6 +712,11 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent return (String)get_Value(COLUMNNAME_RankRfQ); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_RfQLine.java b/base/src/org/compiere/model/X_C_RfQLine.java index acdf80721b..42cafd7430 100644 --- a/base/src/org/compiere/model/X_C_RfQLine.java +++ b/base/src/org/compiere/model/X_C_RfQLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_RfQLine @@ -77,21 +75,10 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent return sb.toString(); } - public I_C_RfQ getC_RfQ() throws RuntimeException + public I_C_RfQ getC_RfQ() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQ.Table_Name); - I_C_RfQ result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQ)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQ_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQ)MTable.get(getCtx(), I_C_RfQ.Table_Name) + .getPO(getC_RfQ_ID(), get_TrxName()); } /** Set RfQ. @param C_RfQ_ID @@ -255,6 +242,11 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -278,21 +270,10 @@ public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_RfQLineQty.java b/base/src/org/compiere/model/X_C_RfQLineQty.java index 4f37935a46..78721a62bb 100644 --- a/base/src/org/compiere/model/X_C_RfQLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQLineQty.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -123,21 +121,10 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent return bd; } - public I_C_RfQLine getC_RfQLine() throws RuntimeException + public I_C_RfQLine getC_RfQLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQLine.Table_Name); - I_C_RfQLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQLine)MTable.get(getCtx(), I_C_RfQLine.Table_Name) + .getPO(getC_RfQLine_ID(), get_TrxName()); } /** Set RfQ Line. @param C_RfQLine_ID @@ -185,21 +172,10 @@ public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID diff --git a/base/src/org/compiere/model/X_C_RfQResponse.java b/base/src/org/compiere/model/X_C_RfQResponse.java index b406f63689..942a73a504 100644 --- a/base/src/org/compiere/model/X_C_RfQResponse.java +++ b/base/src/org/compiere/model/X_C_RfQResponse.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -86,21 +84,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -125,21 +112,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -164,21 +140,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -203,21 +168,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -242,21 +196,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -281,21 +224,10 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent return ii.intValue(); } - public I_C_RfQ getC_RfQ() throws RuntimeException + public I_C_RfQ getC_RfQ() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQ.Table_Name); - I_C_RfQ result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQ)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQ_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQ)MTable.get(getCtx(), I_C_RfQ.Table_Name) + .getPO(getC_RfQ_ID(), get_TrxName()); } /** Set RfQ. @param C_RfQ_ID diff --git a/base/src/org/compiere/model/X_C_RfQResponseLine.java b/base/src/org/compiere/model/X_C_RfQResponseLine.java index 05266c8dbd..0e4f712e07 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLine.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_RfQResponseLine * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Pe return sb.toString(); } - public I_C_RfQLine getC_RfQLine() throws RuntimeException + public I_C_RfQLine getC_RfQLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQLine.Table_Name); - I_C_RfQLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQLine)MTable.get(getCtx(), I_C_RfQLine.Table_Name) + .getPO(getC_RfQLine_ID(), get_TrxName()); } /** Set RfQ Line. @param C_RfQLine_ID @@ -115,21 +102,10 @@ public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Pe return ii.intValue(); } - public I_C_RfQResponse getC_RfQResponse() throws RuntimeException + public I_C_RfQResponse getC_RfQResponse() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQResponse.Table_Name); - I_C_RfQResponse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQResponse)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQResponse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQResponse)MTable.get(getCtx(), I_C_RfQResponse.Table_Name) + .getPO(getC_RfQResponse_ID(), get_TrxName()); } /** Set RfQ Response. @param C_RfQResponse_ID diff --git a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java index eb85fbbe78..da9631723e 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty return sb.toString(); } - public I_C_RfQLineQty getC_RfQLineQty() throws RuntimeException + public I_C_RfQLineQty getC_RfQLineQty() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQLineQty.Table_Name); - I_C_RfQLineQty result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQLineQty)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQLineQty_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQLineQty)MTable.get(getCtx(), I_C_RfQLineQty.Table_Name) + .getPO(getC_RfQLineQty_ID(), get_TrxName()); } /** Set RfQ Line Quantity. @param C_RfQLineQty_ID @@ -116,21 +103,10 @@ public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty return ii.intValue(); } - public I_C_RfQResponseLine getC_RfQResponseLine() throws RuntimeException + public I_C_RfQResponseLine getC_RfQResponseLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQResponseLine.Table_Name); - I_C_RfQResponseLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQResponseLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQResponseLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQResponseLine)MTable.get(getCtx(), I_C_RfQResponseLine.Table_Name) + .getPO(getC_RfQResponseLine_ID(), get_TrxName()); } /** Set RfQ Response Line. @param C_RfQResponseLine_ID 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 eb19ea7d44..e1a5d283ca 100644 --- a/base/src/org/compiere/model/X_C_RfQ_Topic.java +++ b/base/src/org/compiere/model/X_C_RfQ_Topic.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_RfQ_Topic @@ -74,21 +72,10 @@ public class X_C_RfQ_Topic extends PO implements I_C_RfQ_Topic, I_Persistent return sb.toString(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID 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 ee880b9617..890886d8eb 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_RfQ_TopicSubscriber @@ -76,21 +74,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -115,21 +102,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -154,21 +130,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -193,21 +158,10 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib return ii.intValue(); } - public I_C_RfQ_Topic getC_RfQ_Topic() throws RuntimeException + public I_C_RfQ_Topic getC_RfQ_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQ_Topic.Table_Name); - I_C_RfQ_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQ_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQ_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQ_Topic)MTable.get(getCtx(), I_C_RfQ_Topic.Table_Name) + .getPO(getC_RfQ_Topic_ID(), get_TrxName()); } /** Set RfQ Topic. @param C_RfQ_Topic_ID 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 808fd2965c..72cc6b506a 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_RfQ_TopicSubscriberOnly @@ -73,21 +71,10 @@ public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubs return sb.toString(); } - public I_C_RfQ_TopicSubscriber getC_RfQ_TopicSubscriber() throws RuntimeException + public I_C_RfQ_TopicSubscriber getC_RfQ_TopicSubscriber() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RfQ_TopicSubscriber.Table_Name); - I_C_RfQ_TopicSubscriber result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RfQ_TopicSubscriber)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RfQ_TopicSubscriber_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RfQ_TopicSubscriber)MTable.get(getCtx(), I_C_RfQ_TopicSubscriber.Table_Name) + .getPO(getC_RfQ_TopicSubscriber_ID(), get_TrxName()); } /** Set RfQ Subscriber. @param C_RfQ_TopicSubscriber_ID @@ -152,21 +139,10 @@ public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubs return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -199,21 +175,10 @@ public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubs return new KeyNamePair(get_ID(), String.valueOf(getM_Product_Category_ID())); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_SalesRegion.java b/base/src/org/compiere/model/X_C_SalesRegion.java index c448e8bcf1..db6c2d32e6 100644 --- a/base/src/org/compiere/model/X_C_SalesRegion.java +++ b/base/src/org/compiere/model/X_C_SalesRegion.java @@ -187,6 +187,11 @@ public class X_C_SalesRegion extends PO implements I_C_SalesRegion, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_C_ServiceLevel.java b/base/src/org/compiere/model/X_C_ServiceLevel.java index 9ef9b63ff1..00d67acfae 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevel.java +++ b/base/src/org/compiere/model/X_C_ServiceLevel.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -78,21 +76,10 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste return sb.toString(); } - public I_C_RevenueRecognition_Plan getC_RevenueRecognition_Plan() throws RuntimeException + public I_C_RevenueRecognition_Plan getC_RevenueRecognition_Plan() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RevenueRecognition_Plan.Table_Name); - I_C_RevenueRecognition_Plan result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RevenueRecognition_Plan)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_Plan_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RevenueRecognition_Plan)MTable.get(getCtx(), I_C_RevenueRecognition_Plan.Table_Name) + .getPO(getC_RevenueRecognition_Plan_ID(), get_TrxName()); } /** Set Revenue Recognition Plan. @param C_RevenueRecognition_Plan_ID @@ -165,21 +152,10 @@ public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persiste return new KeyNamePair(get_ID(), getDescription()); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_ServiceLevelLine.java b/base/src/org/compiere/model/X_C_ServiceLevelLine.java index a7990a2cbd..24d0a81d5d 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevelLine.java +++ b/base/src/org/compiere/model/X_C_ServiceLevelLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -78,21 +76,10 @@ public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_ return sb.toString(); } - public I_C_ServiceLevel getC_ServiceLevel() throws RuntimeException + public I_C_ServiceLevel getC_ServiceLevel() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ServiceLevel.Table_Name); - I_C_ServiceLevel result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ServiceLevel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ServiceLevel_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ServiceLevel)MTable.get(getCtx(), I_C_ServiceLevel.Table_Name) + .getPO(getC_ServiceLevel_ID(), get_TrxName()); } /** Set Service Level. @param C_ServiceLevel_ID diff --git a/base/src/org/compiere/model/X_C_SubAcct.java b/base/src/org/compiere/model/X_C_SubAcct.java index ad0fe8fa87..e48d38acd8 100644 --- a/base/src/org/compiere/model/X_C_SubAcct.java +++ b/base/src/org/compiere/model/X_C_SubAcct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_SubAcct @@ -75,21 +73,10 @@ public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent return sb.toString(); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID diff --git a/base/src/org/compiere/model/X_C_Subscription.java b/base/src/org/compiere/model/X_C_Subscription.java index 3f8e99f399..3ce84f1972 100644 --- a/base/src/org/compiere/model/X_C_Subscription.java +++ b/base/src/org/compiere/model/X_C_Subscription.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Subscription @@ -81,21 +79,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -143,21 +130,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste return ii.intValue(); } - public I_C_SubscriptionType getC_SubscriptionType() throws RuntimeException + public I_C_SubscriptionType getC_SubscriptionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SubscriptionType.Table_Name); - I_C_SubscriptionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SubscriptionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubscriptionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SubscriptionType)MTable.get(getCtx(), I_C_SubscriptionType.Table_Name) + .getPO(getC_SubscriptionType_ID(), get_TrxName()); } /** Set Subscription Type. @param C_SubscriptionType_ID @@ -206,21 +182,10 @@ public class X_C_Subscription extends PO implements I_C_Subscription, I_Persiste return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 c24312e22e..2e714730a3 100644 --- a/base/src/org/compiere/model/X_C_Subscription_Delivery.java +++ b/base/src/org/compiere/model/X_C_Subscription_Delivery.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Subscription_Delivery @@ -104,21 +102,10 @@ public class X_C_Subscription_Delivery extends PO implements I_C_Subscription_De return new KeyNamePair(get_ID(), String.valueOf(getC_Subscription_Delivery_ID())); } - public I_C_Subscription getC_Subscription() throws RuntimeException + public I_C_Subscription getC_Subscription() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Subscription.Table_Name); - I_C_Subscription result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Subscription)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Subscription_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Subscription)MTable.get(getCtx(), I_C_Subscription.Table_Name) + .getPO(getC_Subscription_ID(), get_TrxName()); } /** Set Subscription. @param C_Subscription_ID diff --git a/base/src/org/compiere/model/X_C_Task.java b/base/src/org/compiere/model/X_C_Task.java index 1e0b84e5e1..2b9437e239 100644 --- a/base/src/org/compiere/model/X_C_Task.java +++ b/base/src/org/compiere/model/X_C_Task.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -80,21 +78,10 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent return sb.toString(); } - public I_C_Phase getC_Phase() throws RuntimeException + public I_C_Phase getC_Phase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Phase.Table_Name); - I_C_Phase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Phase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Phase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Phase)MTable.get(getCtx(), I_C_Phase.Table_Name) + .getPO(getC_Phase_ID(), get_TrxName()); } /** Set Standard Phase. @param C_Phase_ID @@ -176,21 +163,10 @@ public class X_C_Task extends PO implements I_C_Task, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_Tax.java b/base/src/org/compiere/model/X_C_Tax.java index a3f4fd675b..423c70f909 100644 --- a/base/src/org/compiere/model/X_C_Tax.java +++ b/base/src/org/compiere/model/X_C_Tax.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -88,21 +86,10 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent return sb.toString(); } - public I_AD_Rule getAD_Rule() throws RuntimeException + public I_AD_Rule getAD_Rule() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Rule.Table_Name); - I_AD_Rule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Rule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Rule)MTable.get(getCtx(), I_AD_Rule.Table_Name) + .getPO(getAD_Rule_ID(), get_TrxName()); } /** Set Rule. @param AD_Rule_ID Rule */ @@ -147,6 +134,11 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent return ii.intValue(); } + public I_C_Region getC_Region() throws RuntimeException + { + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } + /** Set Region. @param C_Region_ID Identifies a geographical Region @@ -193,21 +185,10 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent return ii.intValue(); } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID @@ -394,6 +375,11 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_C_Tax getParent_Tax() throws RuntimeException + { + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getParent_Tax_ID(), get_TrxName()); } + /** Set Parent Tax. @param Parent_Tax_ID Parent Tax indicates a tax that is made up of multiple taxes @@ -527,6 +513,11 @@ public class X_C_Tax extends PO implements I_C_Tax, I_Persistent return ii.intValue(); } + public I_C_Region getTo_Region() throws RuntimeException + { + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getTo_Region_ID(), get_TrxName()); } + /** Set To. @param To_Region_ID Receiving Region diff --git a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java index b9bb37d5aa..af955fa50d 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_TaxDeclarationAcct @@ -77,6 +75,11 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -172,21 +175,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -211,21 +203,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -246,21 +227,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -281,21 +251,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -316,21 +275,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return ii.intValue(); } - public I_C_TaxDeclaration getC_TaxDeclaration() throws RuntimeException + public I_C_TaxDeclaration getC_TaxDeclaration() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxDeclaration.Table_Name); - I_C_TaxDeclaration result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxDeclaration)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxDeclaration_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxDeclaration)MTable.get(getCtx(), I_C_TaxDeclaration.Table_Name) + .getPO(getC_TaxDeclaration_ID(), get_TrxName()); } /** Set Tax Declaration. @param C_TaxDeclaration_ID @@ -411,21 +359,10 @@ public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct return (String)get_Value(COLUMNNAME_Description); } - public I_Fact_Acct getFact_Acct() throws RuntimeException + public I_Fact_Acct getFact_Acct() throws RuntimeException { - Class clazz = MTable.getClass(I_Fact_Acct.Table_Name); - I_Fact_Acct result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_Fact_Acct)constructor.newInstance(new Object[] {getCtx(), new Integer(getFact_Acct_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_Fact_Acct)MTable.get(getCtx(), I_Fact_Acct.Table_Name) + .getPO(getFact_Acct_ID(), get_TrxName()); } /** Set Accounting Fact. @param Fact_Acct_ID 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 77fc77d2ba..c35b6de72e 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationLine.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for C_TaxDeclarationLine @@ -84,21 +82,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return sb.toString(); } - public I_C_AllocationLine getC_AllocationLine() throws RuntimeException + public I_C_AllocationLine getC_AllocationLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AllocationLine.Table_Name); - I_C_AllocationLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AllocationLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AllocationLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AllocationLine)MTable.get(getCtx(), I_C_AllocationLine.Table_Name) + .getPO(getC_AllocationLine_ID(), get_TrxName()); } /** Set Allocation Line. @param C_AllocationLine_ID @@ -123,21 +110,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -162,21 +138,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -201,21 +166,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -240,21 +194,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -279,21 +222,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -318,21 +250,10 @@ public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine return ii.intValue(); } - public I_C_TaxDeclaration getC_TaxDeclaration() throws RuntimeException + public I_C_TaxDeclaration getC_TaxDeclaration() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxDeclaration.Table_Name); - I_C_TaxDeclaration result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxDeclaration)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxDeclaration_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxDeclaration)MTable.get(getCtx(), I_C_TaxDeclaration.Table_Name) + .getPO(getC_TaxDeclaration_ID(), get_TrxName()); } /** Set Tax Declaration. @param C_TaxDeclaration_ID diff --git a/base/src/org/compiere/model/X_C_TaxPostal.java b/base/src/org/compiere/model/X_C_TaxPostal.java index 529d4a7f57..81de239d48 100644 --- a/base/src/org/compiere/model/X_C_TaxPostal.java +++ b/base/src/org/compiere/model/X_C_TaxPostal.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_TaxPostal @@ -74,21 +72,10 @@ public class X_C_TaxPostal extends PO implements I_C_TaxPostal, I_Persistent return sb.toString(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID 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 310ed227e6..97abf53bec 100644 --- a/base/src/org/compiere/model/X_C_Tax_Acct.java +++ b/base/src/org/compiere/model/X_C_Tax_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Tax_Acct * @author Adempiere (generated) @@ -77,21 +75,10 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -116,21 +103,10 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -155,6 +131,11 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getT_Credit_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Credit_Acct(), get_TrxName()); } + /** Set Tax Credit. @param T_Credit_Acct Account for Tax you can reclaim @@ -175,6 +156,11 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getT_Due_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Due_Acct(), get_TrxName()); } + /** Set Tax Due. @param T_Due_Acct Account for Tax you have to pay @@ -195,6 +181,11 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getT_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Expense_Acct(), get_TrxName()); } + /** Set Tax Expense. @param T_Expense_Acct Account for paid tax you cannot reclaim @@ -215,6 +206,11 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getT_Liability_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Liability_Acct(), get_TrxName()); } + /** Set Tax Liability. @param T_Liability_Acct Account for Tax declaration liability @@ -235,6 +231,11 @@ public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getT_Receivables_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getT_Receivables_Acct(), get_TrxName()); } + /** Set Tax Receivables. @param T_Receivables_Acct Account for Tax credit after tax declaration 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 b11dff6887..4bb88dff60 100644 --- a/base/src/org/compiere/model/X_C_UOM_Conversion.java +++ b/base/src/org/compiere/model/X_C_UOM_Conversion.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -109,21 +107,10 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getC_UOM_Conversion_ID())); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -148,6 +135,11 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers return ii.intValue(); } + public I_C_UOM getC_UOM_To() throws RuntimeException + { + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_To_ID(), get_TrxName()); } + /** Set UoM To. @param C_UOM_To_ID Target or destination Unit of Measure @@ -191,21 +183,10 @@ public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Pers return bd; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_C_UserRemuneration.java b/base/src/org/compiere/model/X_C_UserRemuneration.java index 0430876721..219fb5b807 100644 --- a/base/src/org/compiere/model/X_C_UserRemuneration.java +++ b/base/src/org/compiere/model/X_C_UserRemuneration.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -129,21 +116,10 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_ return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); } - public I_C_Remuneration getC_Remuneration() throws RuntimeException + public I_C_Remuneration getC_Remuneration() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Remuneration.Table_Name); - I_C_Remuneration result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Remuneration)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Remuneration_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Remuneration)MTable.get(getCtx(), I_C_Remuneration.Table_Name) + .getPO(getC_Remuneration_ID(), get_TrxName()); } /** Set Remuneration. @param C_Remuneration_ID diff --git a/base/src/org/compiere/model/X_C_ValidCombination.java b/base/src/org/compiere/model/X_C_ValidCombination.java index 022efe6177..11e63c40b9 100644 --- a/base/src/org/compiere/model/X_C_ValidCombination.java +++ b/base/src/org/compiere/model/X_C_ValidCombination.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_ValidCombination @@ -75,6 +73,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -138,21 +141,10 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return (String)get_Value(COLUMNNAME_Alias); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -177,6 +169,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_Activity getC_Activity() throws RuntimeException + { + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } + /** Set Activity. @param C_Activity_ID Business Activity @@ -200,6 +197,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -223,6 +225,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_Campaign getC_Campaign() throws RuntimeException + { + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } + /** Set Campaign. @param C_Campaign_ID Marketing Campaign @@ -246,6 +253,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -269,6 +281,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -292,6 +309,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_Project getC_Project() throws RuntimeException + { + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } + /** Set Project. @param C_Project_ID Financial Project @@ -315,6 +337,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + { + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } + /** Set Sales Region. @param C_SalesRegion_ID Sales coverage region @@ -338,21 +365,10 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } - public I_C_SubAcct getC_SubAcct() throws RuntimeException + public I_C_SubAcct getC_SubAcct() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SubAcct.Table_Name); - I_C_SubAcct result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SubAcct)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubAcct_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SubAcct)MTable.get(getCtx(), I_C_SubAcct.Table_Name) + .getPO(getC_SubAcct_ID(), get_TrxName()); } /** Set Sub Account. @param C_SubAcct_ID @@ -466,6 +482,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return false; } + public I_M_Product getM_Product() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } + /** Set Product. @param M_Product_ID Product, Service, Item @@ -489,6 +510,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -512,6 +538,11 @@ public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_ return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_C_Withholding.java b/base/src/org/compiere/model/X_C_Withholding.java index df14678777..d5ba3cbde9 100644 --- a/base/src/org/compiere/model/X_C_Withholding.java +++ b/base/src/org/compiere/model/X_C_Withholding.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,6 +79,11 @@ public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent return sb.toString(); } + public I_C_BPartner getBenefici() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getBeneficiary(), get_TrxName()); } + /** Set Beneficiary. @param Beneficiary Business Partner to whom payment is made @@ -101,21 +104,10 @@ public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID 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 eaae23f342..8ef2bed8d0 100644 --- a/base/src/org/compiere/model/X_C_Withholding_Acct.java +++ b/base/src/org/compiere/model/X_C_Withholding_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for C_Withholding_Acct * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_ return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -112,21 +99,10 @@ public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_ return ii.intValue(); } - public I_C_Withholding getC_Withholding() throws RuntimeException + public I_C_Withholding getC_Withholding() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Withholding.Table_Name); - I_C_Withholding result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Withholding)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Withholding_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Withholding)MTable.get(getCtx(), I_C_Withholding.Table_Name) + .getPO(getC_Withholding_ID(), get_TrxName()); } /** Set Withholding. @param C_Withholding_ID @@ -151,6 +127,11 @@ public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_ return ii.intValue(); } + public I_C_ValidCombination getWithholding_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getWithholding_Acct(), get_TrxName()); } + /** Set Withholding. @param Withholding_Acct Account for Withholdings diff --git a/base/src/org/compiere/model/X_C_Year.java b/base/src/org/compiere/model/X_C_Year.java index b9a1df583d..8287063e4b 100644 --- a/base/src/org/compiere/model/X_C_Year.java +++ b/base/src/org/compiere/model/X_C_Year.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for C_Year @@ -74,21 +72,10 @@ public class X_C_Year extends PO implements I_C_Year, I_Persistent return sb.toString(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID diff --git a/base/src/org/compiere/model/X_EXP_Format.java b/base/src/org/compiere/model/X_EXP_Format.java index 9e7cf7a456..446907cac4 100644 --- a/base/src/org/compiere/model/X_EXP_Format.java +++ b/base/src/org/compiere/model/X_EXP_Format.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for EXP_Format * @author Adempiere (generated) @@ -75,21 +73,10 @@ public class X_EXP_Format extends PO implements I_EXP_Format, I_Persistent return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_EXP_FormatLine.java b/base/src/org/compiere/model/X_EXP_FormatLine.java index 0729a49ba3..53c8fbafce 100644 --- a/base/src/org/compiere/model/X_EXP_FormatLine.java +++ b/base/src/org/compiere/model/X_EXP_FormatLine.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for EXP_FormatLine * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_EXP_FormatLine extends PO implements I_EXP_FormatLine, I_Persiste return sb.toString(); } - public I_AD_Column getAD_Column() throws RuntimeException + public I_AD_Column getAD_Column() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Column.Table_Name); - I_AD_Column result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } /** Set Column. @param AD_Column_ID @@ -115,6 +102,11 @@ public class X_EXP_FormatLine extends PO implements I_EXP_FormatLine, I_Persiste return ii.intValue(); } + public I_AD_Reference getAD_Reference() throws RuntimeException + { + return (I_AD_Reference)MTable.get(getCtx(), I_AD_Reference.Table_Name) + .getPO(getAD_Reference_ID(), get_TrxName()); } + /** Set Reference. @param AD_Reference_ID System Reference and Validation @@ -168,6 +160,11 @@ public class X_EXP_FormatLine extends PO implements I_EXP_FormatLine, I_Persiste return (String)get_Value(COLUMNNAME_Description); } + public org.compiere.model.I_EXP_Format getEXP_EmbeddedFormat() throws RuntimeException + { + return (org.compiere.model.I_EXP_Format)MTable.get(getCtx(), org.compiere.model.I_EXP_Format.Table_Name) + .getPO(getEXP_EmbeddedFormat_ID(), get_TrxName()); } + /** Set Embedded Format. @param EXP_EmbeddedFormat_ID Embedded Format */ public void setEXP_EmbeddedFormat_ID (int EXP_EmbeddedFormat_ID) @@ -188,21 +185,10 @@ public class X_EXP_FormatLine extends PO implements I_EXP_FormatLine, I_Persiste return ii.intValue(); } - public org.compiere.model.I_EXP_Format getEXP_Format() throws RuntimeException + public org.compiere.model.I_EXP_Format getEXP_Format() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_EXP_Format.Table_Name); - org.compiere.model.I_EXP_Format result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_EXP_Format)constructor.newInstance(new Object[] {getCtx(), new Integer(getEXP_Format_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_EXP_Format)MTable.get(getCtx(), org.compiere.model.I_EXP_Format.Table_Name) + .getPO(getEXP_Format_ID(), get_TrxName()); } /** Set Export Format. @param EXP_Format_ID Export Format */ diff --git a/base/src/org/compiere/model/X_EXP_Processor.java b/base/src/org/compiere/model/X_EXP_Processor.java index 9fbaabf745..4f5cf04032 100644 --- a/base/src/org/compiere/model/X_EXP_Processor.java +++ b/base/src/org/compiere/model/X_EXP_Processor.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for EXP_Processor * @author Adempiere (generated) @@ -125,21 +123,10 @@ public class X_EXP_Processor extends PO implements I_EXP_Processor, I_Persistent return ii.intValue(); } - public org.compiere.model.I_EXP_Processor_Type getEXP_Processor_Type() throws RuntimeException + public org.compiere.model.I_EXP_Processor_Type getEXP_Processor_Type() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_EXP_Processor_Type.Table_Name); - org.compiere.model.I_EXP_Processor_Type result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_EXP_Processor_Type)constructor.newInstance(new Object[] {getCtx(), new Integer(getEXP_Processor_Type_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_EXP_Processor_Type)MTable.get(getCtx(), org.compiere.model.I_EXP_Processor_Type.Table_Name) + .getPO(getEXP_Processor_Type_ID(), get_TrxName()); } /** Set Export Processor Type. @param EXP_Processor_Type_ID Export Processor Type */ diff --git a/base/src/org/compiere/model/X_EXP_ProcessorParameter.java b/base/src/org/compiere/model/X_EXP_ProcessorParameter.java index afe011578d..2ebadb80f1 100644 --- a/base/src/org/compiere/model/X_EXP_ProcessorParameter.java +++ b/base/src/org/compiere/model/X_EXP_ProcessorParameter.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for EXP_ProcessorParameter * @author Adempiere (generated) @@ -91,21 +89,10 @@ public class X_EXP_ProcessorParameter extends PO implements I_EXP_ProcessorParam return (String)get_Value(COLUMNNAME_Description); } - public org.compiere.model.I_EXP_Processor getEXP_Processor() throws RuntimeException + public org.compiere.model.I_EXP_Processor getEXP_Processor() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_EXP_Processor.Table_Name); - org.compiere.model.I_EXP_Processor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_EXP_Processor)constructor.newInstance(new Object[] {getCtx(), new Integer(getEXP_Processor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_EXP_Processor)MTable.get(getCtx(), org.compiere.model.I_EXP_Processor.Table_Name) + .getPO(getEXP_Processor_ID(), get_TrxName()); } /** Set Export Processor. @param EXP_Processor_ID Export Processor */ diff --git a/base/src/org/compiere/model/X_Fact_Acct.java b/base/src/org/compiere/model/X_Fact_Acct.java index fd06b6cbe4..0edaf14fe6 100644 --- a/base/src/org/compiere/model/X_Fact_Acct.java +++ b/base/src/org/compiere/model/X_Fact_Acct.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -158,21 +156,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -277,21 +264,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -316,21 +292,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -355,21 +320,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -394,21 +348,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -433,21 +376,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -472,6 +404,11 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -495,6 +432,11 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -518,21 +460,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -557,21 +488,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -596,21 +516,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -635,21 +544,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -674,21 +572,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -713,21 +600,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_SubAcct getC_SubAcct() throws RuntimeException + public I_C_SubAcct getC_SubAcct() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SubAcct.Table_Name); - I_C_SubAcct result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SubAcct)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubAcct_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SubAcct)MTable.get(getCtx(), I_C_SubAcct.Table_Name) + .getPO(getC_SubAcct_ID(), get_TrxName()); } /** Set Sub Account. @param C_SubAcct_ID @@ -752,21 +628,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -791,21 +656,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -909,21 +763,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getFact_Acct_ID())); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -948,21 +791,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID @@ -1010,21 +842,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_M_Locator getM_Locator() throws RuntimeException + public I_M_Locator getM_Locator() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Locator.Table_Name); - I_M_Locator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Locator)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Locator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID @@ -1049,21 +870,10 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1161,6 +971,11 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1184,6 +999,11 @@ public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_Fact_Acct_Summary.java b/base/src/org/compiere/model/X_Fact_Acct_Summary.java index c938b5f04f..c681003a85 100644 --- a/base/src/org/compiere/model/X_Fact_Acct_Summary.java +++ b/base/src/org/compiere/model/X_Fact_Acct_Summary.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for Fact_Acct_Summary @@ -81,6 +79,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -104,6 +107,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } + public I_AD_Org getAD_OrgTrx() throws RuntimeException + { + return (I_AD_Org)MTable.get(getCtx(), I_AD_Org.Table_Name) + .getPO(getAD_OrgTrx_ID(), get_TrxName()); } + /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization @@ -167,21 +175,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -206,21 +203,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -245,21 +231,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -284,21 +259,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -323,6 +287,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -346,6 +315,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -369,21 +343,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -408,21 +371,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -447,21 +399,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -486,21 +427,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -525,21 +455,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -564,21 +483,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_C_SubAcct getC_SubAcct() throws RuntimeException + public I_C_SubAcct getC_SubAcct() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SubAcct.Table_Name); - I_C_SubAcct result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SubAcct)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubAcct_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SubAcct)MTable.get(getCtx(), I_C_SubAcct.Table_Name) + .getPO(getC_SubAcct_ID(), get_TrxName()); } /** Set Sub Account. @param C_SubAcct_ID @@ -620,21 +528,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return (Timestamp)get_Value(COLUMNNAME_DateAcct); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -659,21 +556,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -698,21 +584,10 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } - public I_PA_ReportCube getPA_ReportCube() throws RuntimeException + public I_PA_ReportCube getPA_ReportCube() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportCube.Table_Name); - I_PA_ReportCube result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportCube)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportCube_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportCube)MTable.get(getCtx(), I_PA_ReportCube.Table_Name) + .getPO(getPA_ReportCube_ID(), get_TrxName()); } /** Set Report Cube. @param PA_ReportCube_ID @@ -781,6 +656,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -804,6 +684,11 @@ public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Pe return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_GL_BudgetControl.java b/base/src/org/compiere/model/X_GL_BudgetControl.java index a033f41b19..f8b108cfb8 100644 --- a/base/src/org/compiere/model/X_GL_BudgetControl.java +++ b/base/src/org/compiere/model/X_GL_BudgetControl.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for GL_BudgetControl @@ -105,21 +103,10 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers return (String)get_Value(COLUMNNAME_BudgetControlScope); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -193,21 +180,10 @@ public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Pers return (String)get_Value(COLUMNNAME_Description); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID diff --git a/base/src/org/compiere/model/X_GL_Distribution.java b/base/src/org/compiere/model/X_GL_Distribution.java index 8861e7d1f1..5863a51740 100644 --- a/base/src/org/compiere/model/X_GL_Distribution.java +++ b/base/src/org/compiere/model/X_GL_Distribution.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -107,6 +105,11 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -465,21 +468,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return false; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -504,21 +496,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -543,21 +524,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -582,21 +552,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -621,21 +580,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -660,6 +608,11 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -683,6 +636,11 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -706,21 +664,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -745,21 +692,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -889,21 +825,10 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1047,6 +972,11 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return false; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1070,6 +1000,11 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_GL_DistributionLine.java b/base/src/org/compiere/model/X_GL_DistributionLine.java index b982a5de61..2034068a27 100644 --- a/base/src/org/compiere/model/X_GL_DistributionLine.java +++ b/base/src/org/compiere/model/X_GL_DistributionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -137,21 +135,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -176,21 +163,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -215,21 +191,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -254,6 +219,11 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -277,6 +247,11 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -300,21 +275,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -339,21 +303,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -395,21 +348,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return (String)get_Value(COLUMNNAME_Description); } - public I_GL_Distribution getGL_Distribution() throws RuntimeException + public I_GL_Distribution getGL_Distribution() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Distribution.Table_Name); - I_GL_Distribution result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Distribution)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Distribution_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Distribution)MTable.get(getCtx(), I_GL_Distribution.Table_Name) + .getPO(getGL_Distribution_ID(), get_TrxName()); } /** Set GL Distribution. @param GL_Distribution_ID @@ -485,21 +427,10 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return new KeyNamePair(get_ID(), String.valueOf(getLine())); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -879,6 +810,11 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -902,6 +838,11 @@ public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_GL_Fund.java b/base/src/org/compiere/model/X_GL_Fund.java index b11086fe26..39d58e3904 100644 --- a/base/src/org/compiere/model/X_GL_Fund.java +++ b/base/src/org/compiere/model/X_GL_Fund.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -98,21 +96,10 @@ public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID diff --git a/base/src/org/compiere/model/X_GL_FundRestriction.java b/base/src/org/compiere/model/X_GL_FundRestriction.java index f36a7b115d..8b98c4e805 100644 --- a/base/src/org/compiere/model/X_GL_FundRestriction.java +++ b/base/src/org/compiere/model/X_GL_FundRestriction.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for GL_FundRestriction @@ -75,21 +73,10 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ return sb.toString(); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID @@ -131,21 +118,10 @@ public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_ return (String)get_Value(COLUMNNAME_Description); } - public I_GL_Fund getGL_Fund() throws RuntimeException + public I_GL_Fund getGL_Fund() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Fund.Table_Name); - I_GL_Fund result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Fund)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Fund_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Fund)MTable.get(getCtx(), I_GL_Fund.Table_Name) + .getPO(getGL_Fund_ID(), get_TrxName()); } /** Set GL Fund. @param GL_Fund_ID diff --git a/base/src/org/compiere/model/X_GL_Journal.java b/base/src/org/compiere/model/X_GL_Journal.java index 55ff0be14c..18d736938c 100644 --- a/base/src/org/compiere/model/X_GL_Journal.java +++ b/base/src/org/compiere/model/X_GL_Journal.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -110,21 +108,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -149,21 +136,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -188,21 +164,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -227,21 +192,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -266,6 +220,11 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar @@ -497,21 +456,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return new KeyNamePair(get_ID(), getDocumentNo()); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -536,21 +484,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return ii.intValue(); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID @@ -598,21 +535,10 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return ii.intValue(); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID @@ -784,6 +710,11 @@ public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent return false; } + public I_GL_Journal getReversal() throws RuntimeException + { + return (I_GL_Journal)MTable.get(getCtx(), I_GL_Journal.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal diff --git a/base/src/org/compiere/model/X_GL_JournalBatch.java b/base/src/org/compiere/model/X_GL_JournalBatch.java index f217606b6c..1b7f3b10ba 100644 --- a/base/src/org/compiere/model/X_GL_JournalBatch.java +++ b/base/src/org/compiere/model/X_GL_JournalBatch.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -88,21 +86,10 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -127,21 +114,10 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -166,6 +142,11 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis return ii.intValue(); } + public I_C_Period getC_Period() throws RuntimeException + { + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } + /** Set Period. @param C_Period_ID Period of the Calendar @@ -394,21 +375,10 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis return new KeyNamePair(get_ID(), getDocumentNo()); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID @@ -555,6 +525,11 @@ public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persis return false; } + public I_GL_JournalBatch getReversal() throws RuntimeException + { + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal diff --git a/base/src/org/compiere/model/X_GL_JournalLine.java b/base/src/org/compiere/model/X_GL_JournalLine.java index 7b620f4a7a..e79c84da90 100644 --- a/base/src/org/compiere/model/X_GL_JournalLine.java +++ b/base/src/org/compiere/model/X_GL_JournalLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -92,21 +90,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return sb.toString(); } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -131,6 +118,11 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return ii.intValue(); } + public I_A_Asset getA_Asset() throws RuntimeException + { + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } + /** Set Asset. @param A_Asset_ID Asset used internally or by customers @@ -276,21 +268,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return bd; } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -315,21 +296,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -354,21 +324,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -393,6 +352,11 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_ValidCombination_ID(), get_TrxName()); } + /** Set Combination. @param C_ValidCombination_ID Valid Account Combination @@ -470,21 +434,10 @@ public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persiste return (String)get_Value(COLUMNNAME_Description); } - public I_GL_Journal getGL_Journal() throws RuntimeException + public I_GL_Journal getGL_Journal() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Journal.Table_Name); - I_GL_Journal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Journal)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Journal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Journal)MTable.get(getCtx(), I_GL_Journal.Table_Name) + .getPO(getGL_Journal_ID(), get_TrxName()); } /** Set Journal. @param GL_Journal_ID diff --git a/base/src/org/compiere/model/X_IMP_Processor.java b/base/src/org/compiere/model/X_IMP_Processor.java index fcb92019c0..0d34b6b8fa 100644 --- a/base/src/org/compiere/model/X_IMP_Processor.java +++ b/base/src/org/compiere/model/X_IMP_Processor.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for IMP_Processor * @author Adempiere (generated) @@ -241,21 +239,10 @@ public class X_IMP_Processor extends PO implements I_IMP_Processor, I_Persistent return ii.intValue(); } - public org.compiere.model.I_IMP_Processor_Type getIMP_Processor_Type() throws RuntimeException + public org.compiere.model.I_IMP_Processor_Type getIMP_Processor_Type() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_IMP_Processor_Type.Table_Name); - org.compiere.model.I_IMP_Processor_Type result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_IMP_Processor_Type)constructor.newInstance(new Object[] {getCtx(), new Integer(getIMP_Processor_Type_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_IMP_Processor_Type)MTable.get(getCtx(), org.compiere.model.I_IMP_Processor_Type.Table_Name) + .getPO(getIMP_Processor_Type_ID(), get_TrxName()); } /** Set Import Processor Type. @param IMP_Processor_Type_ID Import Processor Type */ diff --git a/base/src/org/compiere/model/X_IMP_ProcessorLog.java b/base/src/org/compiere/model/X_IMP_ProcessorLog.java index 34935cfcc9..7beeaacace 100644 --- a/base/src/org/compiere/model/X_IMP_ProcessorLog.java +++ b/base/src/org/compiere/model/X_IMP_ProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for IMP_ProcessorLog * @author Adempiere (generated) @@ -125,21 +123,10 @@ public class X_IMP_ProcessorLog extends PO implements I_IMP_ProcessorLog, I_Pers return (String)get_Value(COLUMNNAME_Help); } - public org.compiere.model.I_IMP_Processor getIMP_Processor() throws RuntimeException + public org.compiere.model.I_IMP_Processor getIMP_Processor() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_IMP_Processor.Table_Name); - org.compiere.model.I_IMP_Processor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_IMP_Processor)constructor.newInstance(new Object[] {getCtx(), new Integer(getIMP_Processor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_IMP_Processor)MTable.get(getCtx(), org.compiere.model.I_IMP_Processor.Table_Name) + .getPO(getIMP_Processor_ID(), get_TrxName()); } /** Set Import Processor. @param IMP_Processor_ID Import Processor */ diff --git a/base/src/org/compiere/model/X_IMP_ProcessorParameter.java b/base/src/org/compiere/model/X_IMP_ProcessorParameter.java index 4160b5676d..aa0ef2cae3 100644 --- a/base/src/org/compiere/model/X_IMP_ProcessorParameter.java +++ b/base/src/org/compiere/model/X_IMP_ProcessorParameter.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for IMP_ProcessorParameter * @author Adempiere (generated) @@ -108,21 +106,10 @@ public class X_IMP_ProcessorParameter extends PO implements I_IMP_ProcessorParam return (String)get_Value(COLUMNNAME_Help); } - public org.compiere.model.I_IMP_Processor getIMP_Processor() throws RuntimeException + public org.compiere.model.I_IMP_Processor getIMP_Processor() throws RuntimeException { - Class clazz = MTable.getClass(org.compiere.model.I_IMP_Processor.Table_Name); - org.compiere.model.I_IMP_Processor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.compiere.model.I_IMP_Processor)constructor.newInstance(new Object[] {getCtx(), new Integer(getIMP_Processor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.compiere.model.I_IMP_Processor)MTable.get(getCtx(), org.compiere.model.I_IMP_Processor.Table_Name) + .getPO(getIMP_Processor_ID(), get_TrxName()); } /** Set Import Processor. @param IMP_Processor_ID Import Processor */ diff --git a/base/src/org/compiere/model/X_I_Asset.java b/base/src/org/compiere/model/X_I_Asset.java index aa8f1f01ab..910d4e9b0a 100644 --- a/base/src/org/compiere/model/X_I_Asset.java +++ b/base/src/org/compiere/model/X_I_Asset.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -75,6 +73,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return sb.toString(); } + public I_C_ValidCombination getA_Accumdepreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Accumdepreciation_Acct(), get_TrxName()); } + /** Set Accumulated Depreciation. @param A_Accumdepreciation_Acct Accumulated Depreciation */ public void setA_Accumdepreciation_Acct (int A_Accumdepreciation_Acct) @@ -109,6 +112,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return bd; } + public I_C_ValidCombination getA_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Asset_Acct(), get_TrxName()); } + /** Set Asset Cost Account. @param A_Asset_Acct Asset Cost Account */ public void setA_Asset_Acct (int A_Asset_Acct) @@ -143,21 +151,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return bd; } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -239,6 +236,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_A_Asset_Spread getA_Asset_Spread_T() throws RuntimeException + { + return (I_A_Asset_Spread)MTable.get(getCtx(), I_A_Asset_Spread.Table_Name) + .getPO(getA_Asset_Spread_Type(), get_TrxName()); } + /** Set A_Asset_Spread_Type. @param A_Asset_Spread_Type A_Asset_Spread_Type */ public void setA_Asset_Spread_Type (int A_Asset_Spread_Type) @@ -324,6 +326,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Depreciation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Depreciation_Acct(), get_TrxName()); } + /** Set Depreciation Expense Account. @param A_Depreciation_Acct Depreciation Expense Account */ public void setA_Depreciation_Acct (int A_Depreciation_Acct) @@ -341,6 +348,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_A_Depreciation_Method getA_Depreciation_Calc_T() throws RuntimeException + { + return (I_A_Depreciation_Method)MTable.get(getCtx(), I_A_Depreciation_Method.Table_Name) + .getPO(getA_Depreciation_Calc_Type(), get_TrxName()); } + /** Set Depreciation Calculation Type. @param A_Depreciation_Calc_Type Depreciation Calculation Type */ public void setA_Depreciation_Calc_Type (int A_Depreciation_Calc_Type) @@ -396,6 +408,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return (String)get_Value(COLUMNNAME_A_Depreciation_Manual_Period); } + public I_A_Depreciation_Table_Header getA_Depreciation_Table_Header() throws RuntimeException + { + return (I_A_Depreciation_Table_Header)MTable.get(getCtx(), I_A_Depreciation_Table_Header.Table_Name) + .getPO(getA_Depreciation_Table_Header_ID(), get_TrxName()); } + /** Set A_Depreciation_Table_Header_ID. @param A_Depreciation_Table_Header_ID A_Depreciation_Table_Header_ID */ public void setA_Depreciation_Table_Header_ID (int A_Depreciation_Table_Header_ID) @@ -433,6 +450,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return bd; } + public I_C_ValidCombination getA_Disposal_L() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Loss(), get_TrxName()); } + /** Set Loss on Disposal. @param A_Disposal_Loss Loss on Disposal */ public void setA_Disposal_Loss (int A_Disposal_Loss) @@ -450,6 +472,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Disposal_Reve() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Disposal_Revenue(), get_TrxName()); } + /** Set Disposal Revenue. @param A_Disposal_Revenue Disposal Revenue */ public void setA_Disposal_Revenue (int A_Disposal_Revenue) @@ -606,6 +633,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Cur(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Current Year. @param A_Reval_Accumdep_Offset_Cur Revaluation Accumulated Depreciation Offset for Current Year */ public void setA_Reval_Accumdep_Offset_Cur (int A_Reval_Accumdep_Offset_Cur) @@ -623,6 +655,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Accumdep_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Accumdep_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Accumulated Depreciation Offset for Prior Year. @param A_Reval_Accumdep_Offset_Prior Revaluation Accumulated Depreciation Offset for Prior Year */ public void setA_Reval_Accumdep_Offset_Prior (int A_Reval_Accumdep_Offset_Prior) @@ -663,6 +700,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return (String)get_Value(COLUMNNAME_A_Reval_Cal_Method); } + public I_C_ValidCombination getA_Reval_Cost_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset(), get_TrxName()); } + /** Set Revaluation Cost Offset for Current Year. @param A_Reval_Cost_Offset Revaluation Cost Offset for Current Year */ public void setA_Reval_Cost_Offset (int A_Reval_Cost_Offset) @@ -680,6 +722,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Cost_Offset_Pr() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Cost_Offset_Prior(), get_TrxName()); } + /** Set Revaluation Cost Offset for Prior Year. @param A_Reval_Cost_Offset_Prior Revaluation Cost Offset for Prior Year */ public void setA_Reval_Cost_Offset_Prior (int A_Reval_Cost_Offset_Prior) @@ -697,6 +744,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_C_ValidCombination getA_Reval_Depexp_Off() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getA_Reval_Depexp_Offset(), get_TrxName()); } + /** Set Revaluation Expense Offs. @param A_Reval_Depexp_Offset Revaluation Expense Offs */ public void setA_Reval_Depexp_Offset (int A_Reval_Depexp_Offset) @@ -842,21 +894,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -881,21 +922,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -920,21 +950,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -959,21 +978,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } - public I_C_Location getC_Location() throws RuntimeException + public I_C_Location getC_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Location.Table_Name); - I_C_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } /** Set Address. @param C_Location_ID @@ -998,6 +1006,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_A_Depreciation_Convention getConventionT() throws RuntimeException + { + return (I_A_Depreciation_Convention)MTable.get(getCtx(), I_A_Depreciation_Convention.Table_Name) + .getPO(getConventionType(), get_TrxName()); } + /** Set ConventionType. @param ConventionType ConventionType */ public void setConventionType (int ConventionType) @@ -1015,6 +1028,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } + public I_A_Depreciation getDepreciationT() throws RuntimeException + { + return (I_A_Depreciation)MTable.get(getCtx(), I_A_Depreciation.Table_Name) + .getPO(getDepreciationType(), get_TrxName()); } + /** Set DepreciationType. @param DepreciationType DepreciationType */ public void setDepreciationType (int DepreciationType) @@ -1326,6 +1344,11 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return (String)get_Value(COLUMNNAME_Lot); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -1349,21 +1372,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } - public I_M_Locator getM_Locator() throws RuntimeException + public I_M_Locator getM_Locator() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Locator.Table_Name); - I_M_Locator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Locator)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Locator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID @@ -1388,21 +1400,10 @@ public class X_I_Asset extends PO implements I_I_Asset, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_I_BPartner.java b/base/src/org/compiere/model/X_I_BPartner.java index f6f401b67e..afedf58515 100644 --- a/base/src/org/compiere/model/X_I_BPartner.java +++ b/base/src/org/compiere/model/X_I_BPartner.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for I_BPartner @@ -75,21 +73,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -182,21 +169,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_BPContactGreeting); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -221,21 +197,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -260,21 +225,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -299,21 +253,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -338,21 +281,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return ii.intValue(); } - public I_C_Greeting getC_Greeting() throws RuntimeException + public I_C_Greeting getC_Greeting() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Greeting.Table_Name); - I_C_Greeting result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Greeting)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Greeting_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Greeting)MTable.get(getCtx(), I_C_Greeting.Table_Name) + .getPO(getC_Greeting_ID(), get_TrxName()); } /** Set Greeting. @param C_Greeting_ID @@ -377,21 +309,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID @@ -845,21 +766,10 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent return false; } - public I_R_InterestArea getR_InterestArea() throws RuntimeException + public I_R_InterestArea getR_InterestArea() throws RuntimeException { - Class clazz = MTable.getClass(I_R_InterestArea.Table_Name); - I_R_InterestArea result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_InterestArea)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_InterestArea_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_InterestArea)MTable.get(getCtx(), I_R_InterestArea.Table_Name) + .getPO(getR_InterestArea_ID(), get_TrxName()); } /** Set Interest Area. @param R_InterestArea_ID diff --git a/base/src/org/compiere/model/X_I_BankStatement.java b/base/src/org/compiere/model/X_I_BankStatement.java index 8129e45679..8b7fa22613 100644 --- a/base/src/org/compiere/model/X_I_BankStatement.java +++ b/base/src/org/compiere/model/X_I_BankStatement.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for I_BankStatement @@ -109,21 +107,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -148,21 +135,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - public I_C_BankStatement getC_BankStatement() throws RuntimeException + public I_C_BankStatement getC_BankStatement() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankStatement.Table_Name); - I_C_BankStatement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankStatement)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankStatement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankStatement)MTable.get(getCtx(), I_C_BankStatement.Table_Name) + .getPO(getC_BankStatement_ID(), get_TrxName()); } /** Set Bank Statement. @param C_BankStatement_ID @@ -187,21 +163,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - public I_C_BankStatementLine getC_BankStatementLine() throws RuntimeException + public I_C_BankStatementLine getC_BankStatementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankStatementLine.Table_Name); - I_C_BankStatementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankStatementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankStatementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankStatementLine)MTable.get(getCtx(), I_C_BankStatementLine.Table_Name) + .getPO(getC_BankStatementLine_ID(), get_TrxName()); } /** Set Bank statement line. @param C_BankStatementLine_ID @@ -226,21 +191,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -265,21 +219,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -304,21 +247,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -343,21 +275,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -382,21 +303,10 @@ public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persis return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID 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 b587a8e26f..a53993121e 100644 --- a/base/src/org/compiere/model/X_I_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_I_Conversion_Rate.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -75,21 +73,10 @@ public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Pe return sb.toString(); } - public I_C_Conversion_Rate getC_Conversion_Rate() throws RuntimeException + public I_C_Conversion_Rate getC_Conversion_Rate() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Conversion_Rate.Table_Name); - I_C_Conversion_Rate result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Conversion_Rate)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Conversion_Rate_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Conversion_Rate)MTable.get(getCtx(), I_C_Conversion_Rate.Table_Name) + .getPO(getC_Conversion_Rate_ID(), get_TrxName()); } /** Set Conversion Rate. @param C_Conversion_Rate_ID @@ -114,21 +101,10 @@ public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Pe return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -153,21 +129,10 @@ public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Pe 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -192,6 +157,11 @@ public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Pe return ii.intValue(); } + public I_C_Currency getC_Currency_To() throws RuntimeException + { + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID_To(), get_TrxName()); } + /** Set Currency To. @param C_Currency_ID_To Target currency diff --git a/base/src/org/compiere/model/X_I_ElementValue.java b/base/src/org/compiere/model/X_I_ElementValue.java index be46fe7287..2b3e43d657 100644 --- a/base/src/org/compiere/model/X_I_ElementValue.java +++ b/base/src/org/compiere/model/X_I_ElementValue.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for I_ElementValue @@ -131,6 +129,11 @@ public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persiste return (String)get_Value(COLUMNNAME_AccountType); } + public I_AD_Column getAD_Column() throws RuntimeException + { + return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name) + .getPO(getAD_Column_ID(), get_TrxName()); } + /** Set Column. @param AD_Column_ID Column in the table @@ -154,21 +157,10 @@ public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persiste return ii.intValue(); } - public I_C_Element getC_Element() throws RuntimeException + public I_C_Element getC_Element() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Element.Table_Name); - I_C_Element result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Element)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Element_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Element)MTable.get(getCtx(), I_C_Element.Table_Name) + .getPO(getC_Element_ID(), get_TrxName()); } /** Set Element. @param C_Element_ID @@ -193,21 +185,10 @@ public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persiste return ii.intValue(); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID @@ -412,6 +393,11 @@ public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persiste return (String)get_Value(COLUMNNAME_Name); } + public I_C_ElementValue getParentElementValue() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getParentElementValue_ID(), get_TrxName()); } + /** Set Parent Account. @param ParentElementValue_ID The parent (summary) account diff --git a/base/src/org/compiere/model/X_I_FAJournal.java b/base/src/org/compiere/model/X_I_FAJournal.java index eb6f3cc529..4db583e980 100644 --- a/base/src/org/compiere/model/X_I_FAJournal.java +++ b/base/src/org/compiere/model/X_I_FAJournal.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -113,6 +111,11 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return (String)get_Value(COLUMNNAME_A_Entry_Type); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -347,21 +350,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -386,21 +378,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -425,21 +406,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -464,21 +434,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -526,21 +485,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -565,21 +513,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -650,21 +587,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -689,21 +615,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -728,21 +643,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -790,21 +694,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -829,21 +722,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_C_ValidCombination getC_ValidCombination() throws RuntimeException + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ValidCombination.Table_Name); - I_C_ValidCombination result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ValidCombination)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ValidCombination_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_ValidCombination_ID(), get_TrxName()); } /** Set Combination. @param C_ValidCombination_ID @@ -1023,21 +905,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return (String)get_Value(COLUMNNAME_DocTypeName); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -1062,21 +933,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID @@ -1101,21 +961,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_GL_Journal getGL_Journal() throws RuntimeException + public I_GL_Journal getGL_Journal() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Journal.Table_Name); - I_GL_Journal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Journal)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Journal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Journal)MTable.get(getCtx(), I_GL_Journal.Table_Name) + .getPO(getGL_Journal_ID(), get_TrxName()); } /** Set Journal. @param GL_Journal_ID @@ -1140,21 +989,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID @@ -1179,21 +1017,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_GL_JournalLine getGL_JournalLine() throws RuntimeException + public I_GL_JournalLine getGL_JournalLine() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalLine.Table_Name); - I_GL_JournalLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalLine)MTable.get(getCtx(), I_GL_JournalLine.Table_Name) + .getPO(getGL_JournalLine_ID(), get_TrxName()); } /** Set Journal Line. @param GL_JournalLine_ID @@ -1358,21 +1185,10 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1594,6 +1410,11 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return (String)get_Value(COLUMNNAME_UPC); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1617,6 +1438,11 @@ public class X_I_FAJournal extends PO implements I_I_FAJournal, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_I_GLJournal.java b/base/src/org/compiere/model/X_I_GLJournal.java index 3ee7e23fee..290b67ea87 100644 --- a/base/src/org/compiere/model/X_I_GLJournal.java +++ b/base/src/org/compiere/model/X_I_GLJournal.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,6 +74,11 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -310,21 +313,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -349,21 +341,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -388,21 +369,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -427,21 +397,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -466,21 +425,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -505,21 +453,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -544,21 +481,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -583,6 +509,11 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } + public I_C_Location getC_LocFrom() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocFrom_ID(), get_TrxName()); } + /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from @@ -606,6 +537,11 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } + public I_C_Location getC_LocTo() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_LocTo_ID(), get_TrxName()); } + /** Set Location To. @param C_LocTo_ID Location that inventory was moved to @@ -629,21 +565,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -668,21 +593,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -707,21 +621,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -746,21 +649,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -785,21 +677,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_C_ValidCombination getC_ValidCombination() throws RuntimeException + public I_C_ValidCombination getC_ValidCombination() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ValidCombination.Table_Name); - I_C_ValidCombination result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ValidCombination)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ValidCombination_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getC_ValidCombination_ID(), get_TrxName()); } /** Set Combination. @param C_ValidCombination_ID @@ -946,21 +827,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return (String)get_Value(COLUMNNAME_DocTypeName); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -985,21 +855,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_GL_Category getGL_Category() throws RuntimeException + public I_GL_Category getGL_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Category.Table_Name); - I_GL_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Category)MTable.get(getCtx(), I_GL_Category.Table_Name) + .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID @@ -1024,21 +883,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_GL_Journal getGL_Journal() throws RuntimeException + public I_GL_Journal getGL_Journal() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Journal.Table_Name); - I_GL_Journal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Journal)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Journal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Journal)MTable.get(getCtx(), I_GL_Journal.Table_Name) + .getPO(getGL_Journal_ID(), get_TrxName()); } /** Set Journal. @param GL_Journal_ID @@ -1063,21 +911,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException + public I_GL_JournalBatch getGL_JournalBatch() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); - I_GL_JournalBatch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalBatch)MTable.get(getCtx(), I_GL_JournalBatch.Table_Name) + .getPO(getGL_JournalBatch_ID(), get_TrxName()); } /** Set Journal Batch. @param GL_JournalBatch_ID @@ -1102,21 +939,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_GL_JournalLine getGL_JournalLine() throws RuntimeException + public I_GL_JournalLine getGL_JournalLine() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_JournalLine.Table_Name); - I_GL_JournalLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_JournalLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_JournalLine)MTable.get(getCtx(), I_GL_JournalLine.Table_Name) + .getPO(getGL_JournalLine_ID(), get_TrxName()); } /** Set Journal Line. @param GL_JournalLine_ID @@ -1315,21 +1141,10 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1551,6 +1366,11 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return (String)get_Value(COLUMNNAME_UPC); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1574,6 +1394,11 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_I_InOutLineConfirm.java b/base/src/org/compiere/model/X_I_InOutLineConfirm.java index bc310d5b84..8fbfaa983d 100644 --- a/base/src/org/compiere/model/X_I_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_I_InOutLineConfirm.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -226,21 +224,10 @@ public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_ return false; } - public I_M_InOutLineConfirm getM_InOutLineConfirm() throws RuntimeException + public I_M_InOutLineConfirm getM_InOutLineConfirm() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOutLineConfirm.Table_Name); - I_M_InOutLineConfirm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLineConfirm)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLineConfirm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLineConfirm)MTable.get(getCtx(), I_M_InOutLineConfirm.Table_Name) + .getPO(getM_InOutLineConfirm_ID(), get_TrxName()); } /** Set Ship/Receipt Confirmation Line. @param M_InOutLineConfirm_ID diff --git a/base/src/org/compiere/model/X_I_Inventory.java b/base/src/org/compiere/model/X_I_Inventory.java index 5bb428a962..e6cf8a7a32 100644 --- a/base/src/org/compiere/model/X_I_Inventory.java +++ b/base/src/org/compiere/model/X_I_Inventory.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -199,21 +197,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent return (String)get_Value(COLUMNNAME_Lot); } - public I_M_Inventory getM_Inventory() throws RuntimeException + public I_M_Inventory getM_Inventory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Inventory.Table_Name); - I_M_Inventory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getM_Inventory_ID(), get_TrxName()); } /** Set Phys.Inventory. @param M_Inventory_ID @@ -238,21 +225,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -277,21 +253,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent return ii.intValue(); } - public I_M_Locator getM_Locator() throws RuntimeException + public I_M_Locator getM_Locator() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Locator.Table_Name); - I_M_Locator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Locator)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Locator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID @@ -316,21 +281,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -355,21 +309,10 @@ public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_I_Invoice.java b/base/src/org/compiere/model/X_I_Invoice.java index f9afd788f6..4f88a73035 100644 --- a/base/src/org/compiere/model/X_I_Invoice.java +++ b/base/src/org/compiere/model/X_I_Invoice.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for I_Invoice @@ -112,21 +110,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -202,21 +189,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -241,21 +217,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -280,21 +245,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -319,21 +273,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -358,21 +301,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -397,21 +329,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -436,21 +357,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -475,21 +385,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -514,21 +413,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -553,21 +441,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -592,21 +469,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Location getC_Location() throws RuntimeException + public I_C_Location getC_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Location.Table_Name); - I_C_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } /** Set Address. @param C_Location_ID @@ -631,21 +497,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -670,21 +525,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -709,21 +553,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID @@ -748,21 +581,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -1069,21 +891,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return (String)get_Value(COLUMNNAME_LineDescription); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1108,21 +919,10 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1351,6 +1151,11 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return (String)get_Value(COLUMNNAME_RegionName); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_I_Order.java b/base/src/org/compiere/model/X_I_Order.java index 36e09a108d..77ed47fd31 100644 --- a/base/src/org/compiere/model/X_I_Order.java +++ b/base/src/org/compiere/model/X_I_Order.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for I_Order @@ -98,21 +96,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -171,6 +158,11 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return (String)get_Value(COLUMNNAME_Address2); } + public I_C_BPartner_Location getBillTo() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getBillTo_ID(), get_TrxName()); } + /** Set Invoice To. @param BillTo_ID Bill to Address @@ -211,21 +203,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -250,21 +231,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -289,21 +259,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -328,21 +287,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -367,21 +315,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -406,21 +343,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -445,21 +371,10 @@ public class X_I_Order extends PO implements I_I_Order, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -484,21 +399,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -523,21 +427,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Location getC_Location() throws RuntimeException + public I_C_Location getC_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Location.Table_Name); - I_C_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } /** Set Address. @param C_Location_ID @@ -562,21 +455,10 @@ public class X_I_Order extends PO implements I_I_Order, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -601,21 +483,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -640,21 +511,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -679,21 +539,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -718,21 +567,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID @@ -757,21 +595,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_Tax getC_Tax() throws RuntimeException + public I_C_Tax getC_Tax() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Tax.Table_Name); - I_C_Tax result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Tax)MTable.get(getCtx(), I_C_Tax.Table_Name) + .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID @@ -796,21 +623,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -1130,21 +946,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return (String)get_Value(COLUMNNAME_LineDescription); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1169,21 +974,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1208,21 +1002,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -1247,21 +1030,10 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -1473,6 +1245,11 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent return (String)get_Value(COLUMNNAME_RegionName); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_I_Payment.java b/base/src/org/compiere/model/X_I_Payment.java index 85ade32526..7c676064e9 100644 --- a/base/src/org/compiere/model/X_I_Payment.java +++ b/base/src/org/compiere/model/X_I_Payment.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for I_Payment @@ -279,21 +277,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return (String)get_Value(COLUMNNAME_BPartnerValue); } - public I_C_BankAccount getC_BankAccount() throws RuntimeException + public I_C_BankAccount getC_BankAccount() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); - I_C_BankAccount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } /** Set Bank Account. @param C_BankAccount_ID @@ -318,21 +305,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -357,21 +333,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -396,21 +361,10 @@ public class X_I_Payment extends PO implements I_I_Payment, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -435,21 +389,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -474,21 +417,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -513,21 +445,10 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID diff --git a/base/src/org/compiere/model/X_I_PriceList.java b/base/src/org/compiere/model/X_I_PriceList.java index 3d34476538..f01f57fb27 100644 --- a/base/src/org/compiere/model/X_I_PriceList.java +++ b/base/src/org/compiere/model/X_I_PriceList.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for I_PriceList @@ -113,21 +111,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -152,21 +139,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -191,21 +167,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -397,21 +362,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -436,21 +390,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, I_Persistent return ii.intValue(); } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -475,21 +418,10 @@ public class X_I_PriceList extends PO implements I_I_PriceList, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_I_Product.java b/base/src/org/compiere/model/X_I_Product.java index 9d5c28c3dc..dadf412134 100644 --- a/base/src/org/compiere/model/X_I_Product.java +++ b/base/src/org/compiere/model/X_I_Product.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -93,21 +91,10 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent return (String)get_Value(COLUMNNAME_BPartner_Value); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -132,21 +119,10 @@ public class X_I_Product extends PO implements I_I_Product, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -171,21 +147,10 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -474,21 +439,10 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent return (String)get_Value(COLUMNNAME_ISO_Code); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -513,21 +467,10 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_I_ReportLine.java b/base/src/org/compiere/model/X_I_ReportLine.java index 550eaad846..3b03d6d5a7 100644 --- a/base/src/org/compiere/model/X_I_ReportLine.java +++ b/base/src/org/compiere/model/X_I_ReportLine.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for I_ReportLine @@ -119,21 +117,10 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent return (String)get_Value(COLUMNNAME_AmountType); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID @@ -375,21 +362,10 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent return new KeyNamePair(get_ID(), getName()); } - public I_PA_ReportLine getPA_ReportLine() throws RuntimeException + public I_PA_ReportLine getPA_ReportLine() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLine.Table_Name); - I_PA_ReportLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name) + .getPO(getPA_ReportLine_ID(), get_TrxName()); } /** Set Report Line. @param PA_ReportLine_ID Report Line */ @@ -411,21 +387,10 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent return ii.intValue(); } - public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException + public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLineSet.Table_Name); - I_PA_ReportLineSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLineSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLineSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLineSet)MTable.get(getCtx(), I_PA_ReportLineSet.Table_Name) + .getPO(getPA_ReportLineSet_ID(), get_TrxName()); } /** Set Report Line Set. @param PA_ReportLineSet_ID Report Line Set */ @@ -447,21 +412,10 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent return ii.intValue(); } - public I_PA_ReportSource getPA_ReportSource() throws RuntimeException + public I_PA_ReportSource getPA_ReportSource() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportSource.Table_Name); - I_PA_ReportSource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportSource)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportSource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportSource)MTable.get(getCtx(), I_PA_ReportSource.Table_Name) + .getPO(getPA_ReportSource_ID(), get_TrxName()); } /** Set Report Source. @param PA_ReportSource_ID diff --git a/base/src/org/compiere/model/X_K_CategoryValue.java b/base/src/org/compiere/model/X_K_CategoryValue.java index 9041fb566d..6f199362c9 100644 --- a/base/src/org/compiere/model/X_K_CategoryValue.java +++ b/base/src/org/compiere/model/X_K_CategoryValue.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_CategoryValue @@ -91,21 +89,10 @@ public class X_K_CategoryValue extends PO implements I_K_CategoryValue, I_Persis return (String)get_Value(COLUMNNAME_Description); } - public I_K_Category getK_Category() throws RuntimeException + public I_K_Category getK_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Category.Table_Name); - I_K_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Category)MTable.get(getCtx(), I_K_Category.Table_Name) + .getPO(getK_Category_ID(), get_TrxName()); } /** Set Knowledge Category. @param K_Category_ID diff --git a/base/src/org/compiere/model/X_K_Comment.java b/base/src/org/compiere/model/X_K_Comment.java index 727ceb5632..59b51be61b 100644 --- a/base/src/org/compiere/model/X_K_Comment.java +++ b/base/src/org/compiere/model/X_K_Comment.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_Comment @@ -77,21 +75,10 @@ public class X_K_Comment extends PO implements I_K_Comment, I_Persistent return sb.toString(); } - public I_AD_Session getAD_Session() throws RuntimeException + public I_AD_Session getAD_Session() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Session.Table_Name); - I_AD_Session result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Session)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Session_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Session)MTable.get(getCtx(), I_AD_Session.Table_Name) + .getPO(getAD_Session_ID(), get_TrxName()); } /** Set Session. @param AD_Session_ID @@ -171,21 +158,10 @@ public class X_K_Comment extends PO implements I_K_Comment, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getK_Comment_ID())); } - public I_K_Entry getK_Entry() throws RuntimeException + public I_K_Entry getK_Entry() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Entry.Table_Name); - I_K_Entry result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Entry)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Entry_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Entry)MTable.get(getCtx(), I_K_Entry.Table_Name) + .getPO(getK_Entry_ID(), get_TrxName()); } /** Set Entry. @param K_Entry_ID diff --git a/base/src/org/compiere/model/X_K_Entry.java b/base/src/org/compiere/model/X_K_Entry.java index b4b4851de4..2e0ab1ee03 100644 --- a/base/src/org/compiere/model/X_K_Entry.java +++ b/base/src/org/compiere/model/X_K_Entry.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_Entry @@ -79,21 +77,10 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent return sb.toString(); } - public I_AD_Session getAD_Session() throws RuntimeException + public I_AD_Session getAD_Session() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Session.Table_Name); - I_AD_Session result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Session)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Session_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Session)MTable.get(getCtx(), I_AD_Session.Table_Name) + .getPO(getAD_Session_ID(), get_TrxName()); } /** Set Session. @param AD_Session_ID @@ -182,21 +169,10 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent return ii.intValue(); } - public I_K_Source getK_Source() throws RuntimeException + public I_K_Source getK_Source() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Source.Table_Name); - I_K_Source result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Source)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Source_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Source)MTable.get(getCtx(), I_K_Source.Table_Name) + .getPO(getK_Source_ID(), get_TrxName()); } /** Set Knowledge Source. @param K_Source_ID @@ -221,21 +197,10 @@ public class X_K_Entry extends PO implements I_K_Entry, I_Persistent return ii.intValue(); } - public I_K_Topic getK_Topic() throws RuntimeException + public I_K_Topic getK_Topic() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Topic.Table_Name); - I_K_Topic result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Topic)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Topic_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Topic)MTable.get(getCtx(), I_K_Topic.Table_Name) + .getPO(getK_Topic_ID(), get_TrxName()); } /** Set Knowledge Topic. @param K_Topic_ID diff --git a/base/src/org/compiere/model/X_K_EntryCategory.java b/base/src/org/compiere/model/X_K_EntryCategory.java index 1c64b293af..f68f917a92 100644 --- a/base/src/org/compiere/model/X_K_EntryCategory.java +++ b/base/src/org/compiere/model/X_K_EntryCategory.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_EntryCategory @@ -74,21 +72,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis return sb.toString(); } - public I_K_Category getK_Category() throws RuntimeException + public I_K_Category getK_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Category.Table_Name); - I_K_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Category)MTable.get(getCtx(), I_K_Category.Table_Name) + .getPO(getK_Category_ID(), get_TrxName()); } /** Set Knowledge Category. @param K_Category_ID @@ -113,21 +100,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis return ii.intValue(); } - public I_K_CategoryValue getK_CategoryValue() throws RuntimeException + public I_K_CategoryValue getK_CategoryValue() throws RuntimeException { - Class clazz = MTable.getClass(I_K_CategoryValue.Table_Name); - I_K_CategoryValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_CategoryValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_CategoryValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_CategoryValue)MTable.get(getCtx(), I_K_CategoryValue.Table_Name) + .getPO(getK_CategoryValue_ID(), get_TrxName()); } /** Set Category Value. @param K_CategoryValue_ID @@ -160,21 +136,10 @@ public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persis return new KeyNamePair(get_ID(), String.valueOf(getK_CategoryValue_ID())); } - public I_K_Entry getK_Entry() throws RuntimeException + public I_K_Entry getK_Entry() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Entry.Table_Name); - I_K_Entry result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Entry)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Entry_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Entry)MTable.get(getCtx(), I_K_Entry.Table_Name) + .getPO(getK_Entry_ID(), get_TrxName()); } /** Set Entry. @param K_Entry_ID diff --git a/base/src/org/compiere/model/X_K_EntryRelated.java b/base/src/org/compiere/model/X_K_EntryRelated.java index 7f92edbbec..bd4d964137 100644 --- a/base/src/org/compiere/model/X_K_EntryRelated.java +++ b/base/src/org/compiere/model/X_K_EntryRelated.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_EntryRelated @@ -73,21 +71,10 @@ public class X_K_EntryRelated extends PO implements I_K_EntryRelated, I_Persiste return sb.toString(); } - public I_K_Entry getK_Entry() throws RuntimeException + public I_K_Entry getK_Entry() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Entry.Table_Name); - I_K_Entry result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Entry)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Entry_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Entry)MTable.get(getCtx(), I_K_Entry.Table_Name) + .getPO(getK_Entry_ID(), get_TrxName()); } /** Set Entry. @param K_Entry_ID diff --git a/base/src/org/compiere/model/X_K_Index.java b/base/src/org/compiere/model/X_K_Index.java index bd32c8008f..774e96080c 100644 --- a/base/src/org/compiere/model/X_K_Index.java +++ b/base/src/org/compiere/model/X_K_Index.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_Index @@ -77,21 +75,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -116,21 +103,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -155,21 +131,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID @@ -259,21 +224,10 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent return new KeyNamePair(get_ID(), getKeyword()); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_K_IndexStop.java b/base/src/org/compiere/model/X_K_IndexStop.java index f05cda296b..93bf5a4507 100644 --- a/base/src/org/compiere/model/X_K_IndexStop.java +++ b/base/src/org/compiere/model/X_K_IndexStop.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_IndexStop @@ -75,21 +73,10 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent return sb.toString(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -114,21 +101,10 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent return ii.intValue(); } - public I_CM_WebProject getCM_WebProject() throws RuntimeException + public I_CM_WebProject getCM_WebProject() throws RuntimeException { - Class clazz = MTable.getClass(I_CM_WebProject.Table_Name); - I_CM_WebProject result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_CM_WebProject)constructor.newInstance(new Object[] {getCtx(), new Integer(getCM_WebProject_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_CM_WebProject)MTable.get(getCtx(), I_CM_WebProject.Table_Name) + .getPO(getCM_WebProject_ID(), get_TrxName()); } /** Set Web Project. @param CM_WebProject_ID @@ -225,21 +201,10 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent return new KeyNamePair(get_ID(), getKeyword()); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_K_Topic.java b/base/src/org/compiere/model/X_K_Topic.java index feacc97c89..993af1642a 100644 --- a/base/src/org/compiere/model/X_K_Topic.java +++ b/base/src/org/compiere/model/X_K_Topic.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for K_Topic @@ -183,21 +181,10 @@ public class X_K_Topic extends PO implements I_K_Topic, I_Persistent return ii.intValue(); } - public I_K_Type getK_Type() throws RuntimeException + public I_K_Type getK_Type() throws RuntimeException { - Class clazz = MTable.getClass(I_K_Type.Table_Name); - I_K_Type result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_K_Type)constructor.newInstance(new Object[] {getCtx(), new Integer(getK_Type_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_K_Type)MTable.get(getCtx(), I_K_Type.Table_Name) + .getPO(getK_Type_ID(), get_TrxName()); } /** Set Knowldge Type. @param K_Type_ID diff --git a/base/src/org/compiere/model/X_M_Attribute.java b/base/src/org/compiere/model/X_M_Attribute.java index 3036cbb404..e30b87d31f 100644 --- a/base/src/org/compiere/model/X_M_Attribute.java +++ b/base/src/org/compiere/model/X_M_Attribute.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Attribute @@ -191,21 +189,10 @@ public class X_M_Attribute extends PO implements I_M_Attribute, I_Persistent return ii.intValue(); } - public I_M_AttributeSearch getM_AttributeSearch() throws RuntimeException + public I_M_AttributeSearch getM_AttributeSearch() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeSearch.Table_Name); - I_M_AttributeSearch result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeSearch)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSearch_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeSearch)MTable.get(getCtx(), I_M_AttributeSearch.Table_Name) + .getPO(getM_AttributeSearch_ID(), get_TrxName()); } /** Set Attribute Search. @param M_AttributeSearch_ID diff --git a/base/src/org/compiere/model/X_M_AttributeInstance.java b/base/src/org/compiere/model/X_M_AttributeInstance.java index b504004e6e..55ee6bb0e9 100644 --- a/base/src/org/compiere/model/X_M_AttributeInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeInstance.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -75,21 +73,10 @@ public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, return sb.toString(); } - public I_M_Attribute getM_Attribute() throws RuntimeException + public I_M_Attribute getM_Attribute() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Attribute.Table_Name); - I_M_Attribute result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Attribute)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Attribute_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Attribute)MTable.get(getCtx(), I_M_Attribute.Table_Name) + .getPO(getM_Attribute_ID(), get_TrxName()); } /** Set Attribute. @param M_Attribute_ID @@ -114,6 +101,11 @@ public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -137,21 +129,10 @@ public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, return ii.intValue(); } - public I_M_AttributeValue getM_AttributeValue() throws RuntimeException + public I_M_AttributeValue getM_AttributeValue() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeValue.Table_Name); - I_M_AttributeValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeValue)MTable.get(getCtx(), I_M_AttributeValue.Table_Name) + .getPO(getM_AttributeValue_ID(), get_TrxName()); } /** Set Attribute Value. @param M_AttributeValue_ID diff --git a/base/src/org/compiere/model/X_M_AttributeSet.java b/base/src/org/compiere/model/X_M_AttributeSet.java index be4602f5ea..f9a8860a28 100644 --- a/base/src/org/compiere/model/X_M_AttributeSet.java +++ b/base/src/org/compiere/model/X_M_AttributeSet.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_AttributeSet @@ -343,21 +341,10 @@ public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persiste return ii.intValue(); } - public I_M_LotCtl getM_LotCtl() throws RuntimeException + public I_M_LotCtl getM_LotCtl() throws RuntimeException { - Class clazz = MTable.getClass(I_M_LotCtl.Table_Name); - I_M_LotCtl result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_LotCtl)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_LotCtl_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_LotCtl)MTable.get(getCtx(), I_M_LotCtl.Table_Name) + .getPO(getM_LotCtl_ID(), get_TrxName()); } /** Set Lot Control. @param M_LotCtl_ID @@ -382,21 +369,10 @@ public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persiste return ii.intValue(); } - public I_M_SerNoCtl getM_SerNoCtl() throws RuntimeException + public I_M_SerNoCtl getM_SerNoCtl() throws RuntimeException { - Class clazz = MTable.getClass(I_M_SerNoCtl.Table_Name); - I_M_SerNoCtl result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_SerNoCtl)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_SerNoCtl_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_SerNoCtl)MTable.get(getCtx(), I_M_SerNoCtl.Table_Name) + .getPO(getM_SerNoCtl_ID(), get_TrxName()); } /** Set Serial No Control. @param M_SerNoCtl_ID diff --git a/base/src/org/compiere/model/X_M_AttributeSetExclude.java b/base/src/org/compiere/model/X_M_AttributeSetExclude.java index 874e9ff519..45add0980e 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetExclude.java +++ b/base/src/org/compiere/model/X_M_AttributeSetExclude.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_AttributeSetExclude * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclu return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -137,21 +124,10 @@ public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclu return false; } - public I_M_AttributeSet getM_AttributeSet() throws RuntimeException + public I_M_AttributeSet getM_AttributeSet() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeSet.Table_Name); - I_M_AttributeSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeSet)MTable.get(getCtx(), I_M_AttributeSet.Table_Name) + .getPO(getM_AttributeSet_ID(), get_TrxName()); } /** Set Attribute Set. @param M_AttributeSet_ID diff --git a/base/src/org/compiere/model/X_M_AttributeSetInstance.java b/base/src/org/compiere/model/X_M_AttributeSetInstance.java index ccddf0e293..dc776a4654 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeSetInstance.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_AttributeSetInstance @@ -125,21 +123,10 @@ public class X_M_AttributeSetInstance extends PO implements I_M_AttributeSetInst return (String)get_Value(COLUMNNAME_Lot); } - public I_M_AttributeSet getM_AttributeSet() throws RuntimeException + public I_M_AttributeSet getM_AttributeSet() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeSet.Table_Name); - I_M_AttributeSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeSet)MTable.get(getCtx(), I_M_AttributeSet.Table_Name) + .getPO(getM_AttributeSet_ID(), get_TrxName()); } /** Set Attribute Set. @param M_AttributeSet_ID @@ -195,21 +182,10 @@ public class X_M_AttributeSetInstance extends PO implements I_M_AttributeSetInst return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeSetInstance_ID())); } - public I_M_Lot getM_Lot() throws RuntimeException + public I_M_Lot getM_Lot() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Lot.Table_Name); - I_M_Lot result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Lot)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Lot_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Lot)MTable.get(getCtx(), I_M_Lot.Table_Name) + .getPO(getM_Lot_ID(), get_TrxName()); } /** Set Lot. @param M_Lot_ID diff --git a/base/src/org/compiere/model/X_M_AttributeUse.java b/base/src/org/compiere/model/X_M_AttributeUse.java index bfc78105b5..de419b9858 100644 --- a/base/src/org/compiere/model/X_M_AttributeUse.java +++ b/base/src/org/compiere/model/X_M_AttributeUse.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_AttributeUse @@ -75,21 +73,10 @@ public class X_M_AttributeUse extends PO implements I_M_AttributeUse, I_Persiste return sb.toString(); } - public I_M_Attribute getM_Attribute() throws RuntimeException + public I_M_Attribute getM_Attribute() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Attribute.Table_Name); - I_M_Attribute result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Attribute)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Attribute_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Attribute)MTable.get(getCtx(), I_M_Attribute.Table_Name) + .getPO(getM_Attribute_ID(), get_TrxName()); } /** Set Attribute. @param M_Attribute_ID @@ -114,21 +101,10 @@ public class X_M_AttributeUse extends PO implements I_M_AttributeUse, I_Persiste return ii.intValue(); } - public I_M_AttributeSet getM_AttributeSet() throws RuntimeException + public I_M_AttributeSet getM_AttributeSet() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeSet.Table_Name); - I_M_AttributeSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeSet)MTable.get(getCtx(), I_M_AttributeSet.Table_Name) + .getPO(getM_AttributeSet_ID(), get_TrxName()); } /** Set Attribute Set. @param M_AttributeSet_ID diff --git a/base/src/org/compiere/model/X_M_AttributeValue.java b/base/src/org/compiere/model/X_M_AttributeValue.java index e75e244556..d8b668e51c 100644 --- a/base/src/org/compiere/model/X_M_AttributeValue.java +++ b/base/src/org/compiere/model/X_M_AttributeValue.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_AttributeValue @@ -92,21 +90,10 @@ public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Pers return (String)get_Value(COLUMNNAME_Description); } - public I_M_Attribute getM_Attribute() throws RuntimeException + public I_M_Attribute getM_Attribute() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Attribute.Table_Name); - I_M_Attribute result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Attribute)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Attribute_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Attribute)MTable.get(getCtx(), I_M_Attribute.Table_Name) + .getPO(getM_Attribute_ID(), get_TrxName()); } /** Set Attribute. @param M_Attribute_ID diff --git a/base/src/org/compiere/model/X_M_BOM.java b/base/src/org/compiere/model/X_M_BOM.java index 94e88b9618..0f326bba07 100644 --- a/base/src/org/compiere/model/X_M_BOM.java +++ b/base/src/org/compiere/model/X_M_BOM.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_BOM @@ -203,21 +201,10 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent return ii.intValue(); } - public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException + public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ChangeNotice.Table_Name); - I_M_ChangeNotice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ChangeNotice)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeNotice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_ChangeNotice_ID(), get_TrxName()); } /** Set Change Notice. @param M_ChangeNotice_ID @@ -242,21 +229,10 @@ public class X_M_BOM extends PO implements I_M_BOM, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_BOMAlternative.java b/base/src/org/compiere/model/X_M_BOMAlternative.java index 184cefe834..ec0faf6ed3 100644 --- a/base/src/org/compiere/model/X_M_BOMAlternative.java +++ b/base/src/org/compiere/model/X_M_BOMAlternative.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_BOMAlternative @@ -114,21 +112,10 @@ public class X_M_BOMAlternative extends PO implements I_M_BOMAlternative, I_Pers return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_BOMProduct.java b/base/src/org/compiere/model/X_M_BOMProduct.java index 6a43dfbe45..c8a7e94eb9 100644 --- a/base/src/org/compiere/model/X_M_BOMProduct.java +++ b/base/src/org/compiere/model/X_M_BOMProduct.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -239,6 +237,11 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -262,21 +265,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return ii.intValue(); } - public I_M_BOM getM_BOM() throws RuntimeException + public I_M_BOM getM_BOM() throws RuntimeException { - Class clazz = MTable.getClass(I_M_BOM.Table_Name); - I_M_BOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_BOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_BOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_BOM)MTable.get(getCtx(), I_M_BOM.Table_Name) + .getPO(getM_BOM_ID(), get_TrxName()); } /** Set BOM. @param M_BOM_ID @@ -301,21 +293,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return ii.intValue(); } - public I_M_BOMAlternative getM_BOMAlternative() throws RuntimeException + public I_M_BOMAlternative getM_BOMAlternative() throws RuntimeException { - Class clazz = MTable.getClass(I_M_BOMAlternative.Table_Name); - I_M_BOMAlternative result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_BOMAlternative)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_BOMAlternative_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_BOMAlternative)MTable.get(getCtx(), I_M_BOMAlternative.Table_Name) + .getPO(getM_BOMAlternative_ID(), get_TrxName()); } /** Set Alternative Group. @param M_BOMAlternative_ID @@ -363,21 +344,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return ii.intValue(); } - public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException + public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ChangeNotice.Table_Name); - I_M_ChangeNotice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ChangeNotice)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeNotice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_ChangeNotice_ID(), get_TrxName()); } /** Set Change Notice. @param M_ChangeNotice_ID @@ -402,6 +372,11 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return ii.intValue(); } + public I_M_Product getM_ProductBOM() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductBOM_ID(), get_TrxName()); } + /** Set BOM Product. @param M_ProductBOM_ID Bill of Material Component Product @@ -425,21 +400,10 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent return ii.intValue(); } - public I_M_ProductOperation getM_ProductOperation() throws RuntimeException + public I_M_ProductOperation getM_ProductOperation() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductOperation.Table_Name); - I_M_ProductOperation result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductOperation)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductOperation_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductOperation)MTable.get(getCtx(), I_M_ProductOperation.Table_Name) + .getPO(getM_ProductOperation_ID(), get_TrxName()); } /** Set Product Operation. @param M_ProductOperation_ID diff --git a/base/src/org/compiere/model/X_M_ChangeRequest.java b/base/src/org/compiere/model/X_M_ChangeRequest.java index bf0f146f9a..8a504b8155 100644 --- a/base/src/org/compiere/model/X_M_ChangeRequest.java +++ b/base/src/org/compiere/model/X_M_ChangeRequest.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_ChangeRequest @@ -177,21 +175,10 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis return false; } - public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException + public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ChangeNotice.Table_Name); - I_M_ChangeNotice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ChangeNotice)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeNotice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_ChangeNotice_ID(), get_TrxName()); } /** Set Change Notice. @param M_ChangeNotice_ID @@ -239,6 +226,11 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis return ii.intValue(); } + public I_M_ChangeNotice getM_FixChangeNotice() throws RuntimeException + { + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_FixChangeNotice_ID(), get_TrxName()); } + /** Set Fixed in. @param M_FixChangeNotice_ID Fixed in Change Notice @@ -279,21 +271,10 @@ public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persis return (String)get_Value(COLUMNNAME_Name); } - public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException + public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Product_BOM.Table_Name); - org.eevolution.model.I_PP_Product_BOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Product_BOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Product_BOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_PP_Product_BOM)MTable.get(getCtx(), org.eevolution.model.I_PP_Product_BOM.Table_Name) + .getPO(getPP_Product_BOM_ID(), get_TrxName()); } /** Set BOM & Formula. @param PP_Product_BOM_ID diff --git a/base/src/org/compiere/model/X_M_Cost.java b/base/src/org/compiere/model/X_M_Cost.java index 3684e3c42f..cc40dd2ad1 100644 --- a/base/src/org/compiere/model/X_M_Cost.java +++ b/base/src/org/compiere/model/X_M_Cost.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_Cost @@ -81,21 +79,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -332,6 +319,11 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent return false; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -355,21 +347,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent return ii.intValue(); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -394,21 +375,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent return ii.intValue(); } - public I_M_CostType getM_CostType() throws RuntimeException + public I_M_CostType getM_CostType() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostType.Table_Name); - I_M_CostType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostType)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostType)MTable.get(getCtx(), I_M_CostType.Table_Name) + .getPO(getM_CostType_ID(), get_TrxName()); } /** Set Cost Type. @param M_CostType_ID @@ -433,21 +403,10 @@ public class X_M_Cost extends PO implements I_M_Cost, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_CostDetail.java b/base/src/org/compiere/model/X_M_CostDetail.java index 23b70a96e4..18a87aaae5 100644 --- a/base/src/org/compiere/model/X_M_CostDetail.java +++ b/base/src/org/compiere/model/X_M_CostDetail.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_CostDetail @@ -100,21 +98,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return bd; } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -139,21 +126,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -178,21 +154,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -217,21 +182,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException + public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); - I_C_ProjectIssue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectIssue)MTable.get(getCtx(), I_C_ProjectIssue.Table_Name) + .getPO(getC_ProjectIssue_ID(), get_TrxName()); } /** Set Project Issue. @param C_ProjectIssue_ID @@ -337,6 +291,11 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return false; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -383,21 +342,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -422,21 +370,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -461,21 +398,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -500,21 +426,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_M_MovementLine getM_MovementLine() throws RuntimeException + public I_M_MovementLine getM_MovementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); - I_M_MovementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID @@ -539,21 +454,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -578,21 +482,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public I_M_ProductionLine getM_ProductionLine() throws RuntimeException + public I_M_ProductionLine getM_ProductionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); - I_M_ProductionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getM_ProductionLine_ID(), get_TrxName()); } /** Set Production Line. @param M_ProductionLine_ID @@ -617,21 +510,10 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent return ii.intValue(); } - public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException + public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Cost_Collector.Table_Name); - org.eevolution.model.I_PP_Cost_Collector result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Cost_Collector)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Cost_Collector_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_PP_Cost_Collector)MTable.get(getCtx(), org.eevolution.model.I_PP_Cost_Collector.Table_Name) + .getPO(getPP_Cost_Collector_ID(), get_TrxName()); } /** Set Manufacturing Cost Collector. @param PP_Cost_Collector_ID Manufacturing Cost Collector */ diff --git a/base/src/org/compiere/model/X_M_CostQueue.java b/base/src/org/compiere/model/X_M_CostQueue.java index ec66661b67..66c29dde63 100644 --- a/base/src/org/compiere/model/X_M_CostQueue.java +++ b/base/src/org/compiere/model/X_M_CostQueue.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_CostQueue @@ -80,21 +78,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -159,6 +146,11 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent return bd; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -182,21 +174,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent return ii.intValue(); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -244,21 +225,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent return ii.intValue(); } - public I_M_CostType getM_CostType() throws RuntimeException + public I_M_CostType getM_CostType() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostType.Table_Name); - I_M_CostType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostType)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostType)MTable.get(getCtx(), I_M_CostType.Table_Name) + .getPO(getM_CostType_ID(), get_TrxName()); } /** Set Cost Type. @param M_CostType_ID @@ -283,21 +253,10 @@ public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_Demand.java b/base/src/org/compiere/model/X_M_Demand.java index 5aedc00452..efbb774492 100644 --- a/base/src/org/compiere/model/X_M_Demand.java +++ b/base/src/org/compiere/model/X_M_Demand.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Demand @@ -76,21 +74,10 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent return sb.toString(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID @@ -115,21 +102,10 @@ public class X_M_Demand extends PO implements I_M_Demand, I_Persistent return ii.intValue(); } - public I_C_Year getC_Year() throws RuntimeException + public I_C_Year getC_Year() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Year.Table_Name); - I_C_Year result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Year)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Year_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Year)MTable.get(getCtx(), I_C_Year.Table_Name) + .getPO(getC_Year_ID(), get_TrxName()); } /** Set Year. @param C_Year_ID diff --git a/base/src/org/compiere/model/X_M_DemandDetail.java b/base/src/org/compiere/model/X_M_DemandDetail.java index 89933ff200..94ce2950f2 100644 --- a/base/src/org/compiere/model/X_M_DemandDetail.java +++ b/base/src/org/compiere/model/X_M_DemandDetail.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_DemandDetail @@ -73,21 +71,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste return sb.toString(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -143,21 +130,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste return new KeyNamePair(get_ID(), String.valueOf(getM_DemandDetail_ID())); } - public I_M_DemandLine getM_DemandLine() throws RuntimeException + public I_M_DemandLine getM_DemandLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DemandLine.Table_Name); - I_M_DemandLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DemandLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DemandLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DemandLine)MTable.get(getCtx(), I_M_DemandLine.Table_Name) + .getPO(getM_DemandLine_ID(), get_TrxName()); } /** Set Demand Line. @param M_DemandLine_ID @@ -182,21 +158,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste return ii.intValue(); } - public I_M_ForecastLine getM_ForecastLine() throws RuntimeException + public I_M_ForecastLine getM_ForecastLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ForecastLine.Table_Name); - I_M_ForecastLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ForecastLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ForecastLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ForecastLine)MTable.get(getCtx(), I_M_ForecastLine.Table_Name) + .getPO(getM_ForecastLine_ID(), get_TrxName()); } /** Set Forecast Line. @param M_ForecastLine_ID @@ -221,21 +186,10 @@ public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persiste return ii.intValue(); } - public I_M_RequisitionLine getM_RequisitionLine() throws RuntimeException + public I_M_RequisitionLine getM_RequisitionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_RequisitionLine.Table_Name); - I_M_RequisitionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RequisitionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RequisitionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RequisitionLine)MTable.get(getCtx(), I_M_RequisitionLine.Table_Name) + .getPO(getM_RequisitionLine_ID(), get_TrxName()); } /** Set Requisition Line. @param M_RequisitionLine_ID diff --git a/base/src/org/compiere/model/X_M_DemandLine.java b/base/src/org/compiere/model/X_M_DemandLine.java index 01457c5520..ddc18300ff 100644 --- a/base/src/org/compiere/model/X_M_DemandLine.java +++ b/base/src/org/compiere/model/X_M_DemandLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent return sb.toString(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -126,21 +113,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getC_Period_ID())); } - public I_M_Demand getM_Demand() throws RuntimeException + public I_M_Demand getM_Demand() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Demand.Table_Name); - I_M_Demand result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Demand)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Demand_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Demand)MTable.get(getCtx(), I_M_Demand.Table_Name) + .getPO(getM_Demand_ID(), get_TrxName()); } /** Set Demand. @param M_Demand_ID @@ -188,21 +164,10 @@ public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java index 833dae1e86..568a2cd36a 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -145,21 +143,10 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre return false; } - public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DiscountSchema.Table_Name); - I_M_DiscountSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DiscountSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DiscountSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } /** Set Discount Schema. @param M_DiscountSchema_ID @@ -207,21 +194,10 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre return ii.intValue(); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -246,21 +222,10 @@ public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBre return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java index 6ac39f6e7a..1ea4e208a6 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -105,21 +103,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -144,21 +131,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine return ii.intValue(); } - public I_C_ConversionType getC_ConversionType() throws RuntimeException + public I_C_ConversionType getC_ConversionType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); - I_C_ConversionType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionType_ID(), get_TrxName()); } /** Set Currency Type. @param C_ConversionType_ID @@ -573,21 +549,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine return (String)get_Value(COLUMNNAME_List_Rounding); } - public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DiscountSchema.Table_Name); - I_M_DiscountSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DiscountSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DiscountSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } /** Set Discount Schema. @param M_DiscountSchema_ID @@ -635,21 +600,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine return ii.intValue(); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -674,21 +628,10 @@ public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_DistributionListLine.java b/base/src/org/compiere/model/X_M_DistributionListLine.java index 12accfcd6c..6d534b8e3e 100644 --- a/base/src/org/compiere/model/X_M_DistributionListLine.java +++ b/base/src/org/compiere/model/X_M_DistributionListLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -78,21 +76,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -117,21 +104,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -173,21 +149,10 @@ public class X_M_DistributionListLine extends PO implements I_M_DistributionList return (String)get_Value(COLUMNNAME_Description); } - public I_M_DistributionList getM_DistributionList() throws RuntimeException + public I_M_DistributionList getM_DistributionList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionList.Table_Name); - I_M_DistributionList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionList)MTable.get(getCtx(), I_M_DistributionList.Table_Name) + .getPO(getM_DistributionList_ID(), get_TrxName()); } /** Set Distribution List. @param M_DistributionList_ID diff --git a/base/src/org/compiere/model/X_M_DistributionRun.java b/base/src/org/compiere/model/X_M_DistributionRun.java index 594bcd194e..d154b4fde7 100644 --- a/base/src/org/compiere/model/X_M_DistributionRun.java +++ b/base/src/org/compiere/model/X_M_DistributionRun.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_DistributionRun @@ -75,21 +73,10 @@ public class X_M_DistributionRun extends PO implements I_M_DistributionRun, I_Pe return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -114,21 +101,10 @@ public class X_M_DistributionRun extends PO implements I_M_DistributionRun, I_Pe return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID diff --git a/base/src/org/compiere/model/X_M_DistributionRunLine.java b/base/src/org/compiere/model/X_M_DistributionRunLine.java index 52d1827d07..fc069e2f04 100644 --- a/base/src/org/compiere/model/X_M_DistributionRunLine.java +++ b/base/src/org/compiere/model/X_M_DistributionRunLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -119,21 +117,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi return ii.intValue(); } - public I_M_DistributionList getM_DistributionList() throws RuntimeException + public I_M_DistributionList getM_DistributionList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionList.Table_Name); - I_M_DistributionList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionList)MTable.get(getCtx(), I_M_DistributionList.Table_Name) + .getPO(getM_DistributionList_ID(), get_TrxName()); } /** Set Distribution List. @param M_DistributionList_ID @@ -158,21 +145,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi return ii.intValue(); } - public I_M_DistributionRun getM_DistributionRun() throws RuntimeException + public I_M_DistributionRun getM_DistributionRun() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionRun.Table_Name); - I_M_DistributionRun result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionRun)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionRun_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionRun)MTable.get(getCtx(), I_M_DistributionRun.Table_Name) + .getPO(getM_DistributionRun_ID(), get_TrxName()); } /** Set Distribution Run. @param M_DistributionRun_ID @@ -228,21 +204,10 @@ public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLi return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_Forecast.java b/base/src/org/compiere/model/X_M_Forecast.java index caf865bd98..fbffa1dbbf 100644 --- a/base/src/org/compiere/model/X_M_Forecast.java +++ b/base/src/org/compiere/model/X_M_Forecast.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Forecast @@ -76,21 +74,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent return sb.toString(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID @@ -115,21 +102,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent return ii.intValue(); } - public I_C_Year getC_Year() throws RuntimeException + public I_C_Year getC_Year() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Year.Table_Name); - I_C_Year result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Year)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Year_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Year)MTable.get(getCtx(), I_C_Year.Table_Name) + .getPO(getC_Year_ID(), get_TrxName()); } /** Set Year. @param C_Year_ID @@ -235,21 +211,10 @@ public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID diff --git a/base/src/org/compiere/model/X_M_ForecastLine.java b/base/src/org/compiere/model/X_M_ForecastLine.java index d22bb8e6d6..ca5f88c584 100644 --- a/base/src/org/compiere/model/X_M_ForecastLine.java +++ b/base/src/org/compiere/model/X_M_ForecastLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -83,21 +81,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste return sb.toString(); } - public I_C_Period getC_Period() throws RuntimeException + public I_C_Period getC_Period() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Period.Table_Name); - I_C_Period result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Period)MTable.get(getCtx(), I_C_Period.Table_Name) + .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID @@ -147,21 +134,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste return (Timestamp)get_Value(COLUMNNAME_DatePromised); } - public I_M_Forecast getM_Forecast() throws RuntimeException + public I_M_Forecast getM_Forecast() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Forecast.Table_Name); - I_M_Forecast result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Forecast)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Forecast_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Forecast)MTable.get(getCtx(), I_M_Forecast.Table_Name) + .getPO(getM_Forecast_ID(), get_TrxName()); } /** Set Forecast. @param M_Forecast_ID @@ -209,21 +185,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -248,21 +213,10 @@ public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persiste return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_M_Freight.java b/base/src/org/compiere/model/X_M_Freight.java index 159b6fac42..520ba25adf 100644 --- a/base/src/org/compiere/model/X_M_Freight.java +++ b/base/src/org/compiere/model/X_M_Freight.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -80,21 +78,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent return sb.toString(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -119,21 +106,10 @@ public class X_M_Freight extends PO implements I_M_Freight, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -158,21 +134,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID @@ -240,21 +205,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent return ii.intValue(); } - public I_M_FreightCategory getM_FreightCategory() throws RuntimeException + public I_M_FreightCategory getM_FreightCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_FreightCategory.Table_Name); - I_M_FreightCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_FreightCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_FreightCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_FreightCategory)MTable.get(getCtx(), I_M_FreightCategory.Table_Name) + .getPO(getM_FreightCategory_ID(), get_TrxName()); } /** Set Freight Category. @param M_FreightCategory_ID @@ -279,21 +233,10 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -349,6 +292,11 @@ public class X_M_Freight extends PO implements I_M_Freight, I_Persistent return ii.intValue(); } + public I_C_Region getTo_Region() throws RuntimeException + { + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getTo_Region_ID(), get_TrxName()); } + /** Set To. @param To_Region_ID Receiving Region diff --git a/base/src/org/compiere/model/X_M_InOut.java b/base/src/org/compiere/model/X_M_InOut.java index 6eb8e35f67..abcf00b2a6 100644 --- a/base/src/org/compiere/model/X_M_InOut.java +++ b/base/src/org/compiere/model/X_M_InOut.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -129,21 +127,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -168,21 +155,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -207,21 +183,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -246,21 +211,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -285,21 +239,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -324,6 +267,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_C_Charge getC_Charge() throws RuntimeException + { + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } + /** Set Charge. @param C_Charge_ID Additional document charges @@ -347,6 +295,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocType() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } + /** Set Document Type. @param C_DocType_ID Document type or rules @@ -370,21 +323,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -409,21 +351,10 @@ public class X_M_InOut extends PO implements I_M_InOut, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -448,21 +379,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -812,6 +732,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return new KeyNamePair(get_ID(), getDocumentNo()); } + public I_C_BPartner getDropShip_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getDropShip_BPartner_ID(), get_TrxName()); } + /** Set Drop Shipment Partner. @param DropShip_BPartner_ID Business Partner to ship to @@ -835,6 +760,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_C_BPartner_Location getDropShip_Location() throws RuntimeException + { + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getDropShip_Location_ID(), get_TrxName()); } + /** Set Drop Shipment Location. @param DropShip_Location_ID Business Partner Location for shipping to @@ -858,6 +788,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_AD_User getDropShip_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getDropShip_User_ID(), get_TrxName()); } + /** Set Drop Shipment Contact. @param DropShip_User_ID Business Partner Contact for drop shipment @@ -1113,21 +1048,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getM_RMA_ID(), get_TrxName()); } /** Set RMA. @param M_RMA_ID @@ -1152,21 +1076,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -1191,21 +1104,10 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -1464,6 +1366,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_M_InOut getReversal() throws RuntimeException + { + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -1487,6 +1394,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -1568,6 +1480,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return (String)get_Value(COLUMNNAME_TrackingNo); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1591,6 +1508,11 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_M_InOutConfirm.java b/base/src/org/compiere/model/X_M_InOutConfirm.java index 7950b4eed0..443c2ffdc3 100644 --- a/base/src/org/compiere/model/X_M_InOutConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutConfirm.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -106,21 +104,10 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste return bd; } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -412,21 +399,10 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste return false; } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -474,21 +450,10 @@ public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persiste return ii.intValue(); } - public I_M_Inventory getM_Inventory() throws RuntimeException + public I_M_Inventory getM_Inventory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Inventory.Table_Name); - I_M_Inventory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getM_Inventory_ID(), get_TrxName()); } /** Set Phys.Inventory. @param M_Inventory_ID diff --git a/base/src/org/compiere/model/X_M_InOutLine.java b/base/src/org/compiere/model/X_M_InOutLine.java index e052b776d3..e4bca519dd 100644 --- a/base/src/org/compiere/model/X_M_InOutLine.java +++ b/base/src/org/compiere/model/X_M_InOutLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -111,21 +109,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -150,21 +137,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -189,21 +165,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -228,21 +193,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -267,21 +221,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -306,21 +249,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -345,21 +277,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -384,21 +305,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -536,6 +446,11 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -559,21 +474,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -621,6 +525,11 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -644,21 +553,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -683,21 +581,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } - public I_M_RMALine getM_RMALine() throws RuntimeException + public I_M_RMALine getM_RMALine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_RMALine.Table_Name); - I_M_RMALine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMALine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMALine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMALine)MTable.get(getCtx(), I_M_RMALine.Table_Name) + .getPO(getM_RMALine_ID(), get_TrxName()); } /** Set RMA Line. @param M_RMALine_ID @@ -823,6 +710,11 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } + public I_M_InOutLine getReversalLine() throws RuntimeException + { + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getReversalLine_ID(), get_TrxName()); } + /** Set Reversal Line. @param ReversalLine_ID Use to keep the reversal line ID for reversing costing purpose @@ -886,6 +778,11 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return bd; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -909,6 +806,11 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_M_InOutLineConfirm.java b/base/src/org/compiere/model/X_M_InOutLineConfirm.java index 0d255ba170..1ccc52a635 100644 --- a/base/src/org/compiere/model/X_M_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutLineConfirm.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ return sb.toString(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -192,21 +179,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ return bd; } - public I_M_InOutConfirm getM_InOutConfirm() throws RuntimeException + public I_M_InOutConfirm getM_InOutConfirm() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOutConfirm.Table_Name); - I_M_InOutConfirm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutConfirm)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutConfirm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutConfirm)MTable.get(getCtx(), I_M_InOutConfirm.Table_Name) + .getPO(getM_InOutConfirm_ID(), get_TrxName()); } /** Set Ship/Receipt Confirmation. @param M_InOutConfirm_ID @@ -231,21 +207,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -301,21 +266,10 @@ public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_ return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID diff --git a/base/src/org/compiere/model/X_M_InOutLineMA.java b/base/src/org/compiere/model/X_M_InOutLineMA.java index b87a354cd1..86d940cd6a 100644 --- a/base/src/org/compiere/model/X_M_InOutLineMA.java +++ b/base/src/org/compiere/model/X_M_InOutLineMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,6 +74,11 @@ public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent return sb.toString(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -99,21 +102,10 @@ public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID diff --git a/base/src/org/compiere/model/X_M_Inventory.java b/base/src/org/compiere/model/X_M_Inventory.java index 24844705c1..8afe31d40b 100644 --- a/base/src/org/compiere/model/X_M_Inventory.java +++ b/base/src/org/compiere/model/X_M_Inventory.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -130,21 +128,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return bd; } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -169,21 +156,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -208,21 +184,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -247,21 +212,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -484,21 +438,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } - public I_M_PerpetualInv getM_PerpetualInv() throws RuntimeException + public I_M_PerpetualInv getM_PerpetualInv() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PerpetualInv.Table_Name); - I_M_PerpetualInv result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PerpetualInv)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PerpetualInv_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PerpetualInv)MTable.get(getCtx(), I_M_PerpetualInv.Table_Name) + .getPO(getM_PerpetualInv_ID(), get_TrxName()); } /** Set Perpetual Inventory. @param M_PerpetualInv_ID @@ -523,21 +466,10 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -648,6 +580,11 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return false; } + public I_M_Inventory getReversal() throws RuntimeException + { + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -685,6 +622,11 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return (String)get_Value(COLUMNNAME_UpdateQty); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -708,6 +650,11 @@ public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_M_InventoryLine.java b/base/src/org/compiere/model/X_M_InventoryLine.java index 4543a2a06e..339c81abc9 100644 --- a/base/src/org/compiere/model/X_M_InventoryLine.java +++ b/base/src/org/compiere/model/X_M_InventoryLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -85,21 +83,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -193,6 +180,11 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -216,21 +208,10 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return ii.intValue(); } - public I_M_Inventory getM_Inventory() throws RuntimeException + public I_M_Inventory getM_Inventory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Inventory.Table_Name); - I_M_Inventory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getM_Inventory_ID(), get_TrxName()); } /** Set Phys.Inventory. @param M_Inventory_ID @@ -278,6 +259,11 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -301,6 +287,11 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return ii.intValue(); } + public I_M_Product getM_Product() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } + /** Set Product. @param M_Product_ID Product, Service, Item @@ -425,6 +416,11 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis return bd; } + public I_M_InventoryLine getReversalLine() throws RuntimeException + { + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getReversalLine_ID(), get_TrxName()); } + /** Set Reversal Line. @param ReversalLine_ID Use to keep the reversal line ID for reversing costing purpose diff --git a/base/src/org/compiere/model/X_M_InventoryLineMA.java b/base/src/org/compiere/model/X_M_InventoryLineMA.java index 3f5c67ef21..03d4c2543c 100644 --- a/base/src/org/compiere/model/X_M_InventoryLineMA.java +++ b/base/src/org/compiere/model/X_M_InventoryLineMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,6 +74,11 @@ public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Pe return sb.toString(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -99,21 +102,10 @@ public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Pe return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID diff --git a/base/src/org/compiere/model/X_M_Locator.java b/base/src/org/compiere/model/X_M_Locator.java index db8bf0f484..b06d029ebd 100644 --- a/base/src/org/compiere/model/X_M_Locator.java +++ b/base/src/org/compiere/model/X_M_Locator.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Locator @@ -127,21 +125,10 @@ public class X_M_Locator extends PO implements I_M_Locator, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_M_Lot.java b/base/src/org/compiere/model/X_M_Lot.java index ea355da4cb..cb1bdae7f8 100644 --- a/base/src/org/compiere/model/X_M_Lot.java +++ b/base/src/org/compiere/model/X_M_Lot.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Lot @@ -166,21 +164,10 @@ public class X_M_Lot extends PO implements I_M_Lot, I_Persistent return ii.intValue(); } - public I_M_LotCtl getM_LotCtl() throws RuntimeException + public I_M_LotCtl getM_LotCtl() throws RuntimeException { - Class clazz = MTable.getClass(I_M_LotCtl.Table_Name); - I_M_LotCtl result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_LotCtl)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_LotCtl_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_LotCtl)MTable.get(getCtx(), I_M_LotCtl.Table_Name) + .getPO(getM_LotCtl_ID(), get_TrxName()); } /** Set Lot Control. @param M_LotCtl_ID @@ -205,21 +192,10 @@ public class X_M_Lot extends PO implements I_M_Lot, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_LotCtlExclude.java b/base/src/org/compiere/model/X_M_LotCtlExclude.java index 86d97a196b..20ad768c7f 100644 --- a/base/src/org/compiere/model/X_M_LotCtlExclude.java +++ b/base/src/org/compiere/model/X_M_LotCtlExclude.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_LotCtlExclude * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persis return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -137,21 +124,10 @@ public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persis return false; } - public I_M_LotCtl getM_LotCtl() throws RuntimeException + public I_M_LotCtl getM_LotCtl() throws RuntimeException { - Class clazz = MTable.getClass(I_M_LotCtl.Table_Name); - I_M_LotCtl result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_LotCtl)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_LotCtl_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_LotCtl)MTable.get(getCtx(), I_M_LotCtl.Table_Name) + .getPO(getM_LotCtl_ID(), get_TrxName()); } /** Set Lot Control. @param M_LotCtl_ID diff --git a/base/src/org/compiere/model/X_M_MatchInv.java b/base/src/org/compiere/model/X_M_MatchInv.java index 879d47b580..353febea09 100644 --- a/base/src/org/compiere/model/X_M_MatchInv.java +++ b/base/src/org/compiere/model/X_M_MatchInv.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -84,21 +82,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent return sb.toString(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -199,6 +186,11 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent return new KeyNamePair(get_ID(), getDocumentNo()); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -222,21 +214,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -284,21 +265,10 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_MatchPO.java b/base/src/org/compiere/model/X_M_MatchPO.java index 9be13e6194..c483c8fd6a 100644 --- a/base/src/org/compiere/model/X_M_MatchPO.java +++ b/base/src/org/compiere/model/X_M_MatchPO.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -84,21 +82,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent return sb.toString(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -123,21 +110,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -262,6 +238,11 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent return false; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -285,21 +266,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -347,21 +317,10 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_Movement.java b/base/src/org/compiere/model/X_M_Movement.java index 12f92c9af2..b3b0de2c8e 100644 --- a/base/src/org/compiere/model/X_M_Movement.java +++ b/base/src/org/compiere/model/X_M_Movement.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -110,6 +108,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } + public I_AD_User getAD_User() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } + /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact @@ -153,21 +156,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return bd; } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -192,21 +184,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -231,6 +212,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } + public I_C_Location getC_BPartner_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } + /** Set Partner Location. @param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner @@ -254,21 +240,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -293,21 +268,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -332,21 +296,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -371,21 +324,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -464,21 +406,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return (Timestamp)get_Value(COLUMNNAME_DateReceived); } - public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException + public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_DD_Order.Table_Name); - org.eevolution.model.I_DD_Order result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_DD_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_DD_Order)MTable.get(getCtx(), org.eevolution.model.I_DD_Order.Table_Name) + .getPO(getDD_Order_ID(), get_TrxName()); } /** Set Distribution Order. @param DD_Order_ID Distribution Order */ @@ -811,21 +742,10 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID @@ -983,6 +903,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return false; } + public I_M_Movement getReversal() throws RuntimeException + { + return (I_M_Movement)MTable.get(getCtx(), I_M_Movement.Table_Name) + .getPO(getReversal_ID(), get_TrxName()); } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -1006,6 +931,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -1029,6 +959,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1052,6 +987,11 @@ public class X_M_Movement extends PO implements I_M_Movement, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_M_MovementConfirm.java b/base/src/org/compiere/model/X_M_MovementConfirm.java index ddcae71610..09674ce384 100644 --- a/base/src/org/compiere/model/X_M_MovementConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementConfirm.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -259,21 +257,10 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe return false; } - public I_M_Inventory getM_Inventory() throws RuntimeException + public I_M_Inventory getM_Inventory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Inventory.Table_Name); - I_M_Inventory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getM_Inventory_ID(), get_TrxName()); } /** Set Phys.Inventory. @param M_Inventory_ID @@ -298,21 +285,10 @@ public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Pe return ii.intValue(); } - public I_M_Movement getM_Movement() throws RuntimeException + public I_M_Movement getM_Movement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Movement.Table_Name); - I_M_Movement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Movement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Movement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Movement)MTable.get(getCtx(), I_M_Movement.Table_Name) + .getPO(getM_Movement_ID(), get_TrxName()); } /** Set Inventory Move. @param M_Movement_ID diff --git a/base/src/org/compiere/model/X_M_MovementLine.java b/base/src/org/compiere/model/X_M_MovementLine.java index a39e5127f5..50366da143 100644 --- a/base/src/org/compiere/model/X_M_MovementLine.java +++ b/base/src/org/compiere/model/X_M_MovementLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -107,21 +105,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return bd; } - public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws RuntimeException + public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_DD_OrderLine.Table_Name); - org.eevolution.model.I_DD_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_DD_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_DD_OrderLine)MTable.get(getCtx(), org.eevolution.model.I_DD_OrderLine.Table_Name) + .getPO(getDD_OrderLine_ID(), get_TrxName()); } /** Set Distribution Order Line. @param DD_OrderLine_ID Distribution Order Line */ @@ -188,6 +175,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -211,6 +203,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstanceTo() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstanceTo_ID(), get_TrxName()); } + /** Set Attribute Set Instance To. @param M_AttributeSetInstanceTo_ID Target Product Attribute Set Instance @@ -234,6 +231,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -257,6 +259,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return ii.intValue(); } + public I_M_Locator getM_LocatorTo() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_LocatorTo_ID(), get_TrxName()); } + /** Set Locator To. @param M_LocatorTo_ID Location inventory is moved to @@ -280,21 +287,10 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return ii.intValue(); } - public I_M_Movement getM_Movement() throws RuntimeException + public I_M_Movement getM_Movement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Movement.Table_Name); - I_M_Movement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Movement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Movement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Movement)MTable.get(getCtx(), I_M_Movement.Table_Name) + .getPO(getM_Movement_ID(), get_TrxName()); } /** Set Inventory Move. @param M_Movement_ID @@ -342,6 +338,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return ii.intValue(); } + public I_M_Product getM_Product() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } + /** Set Product. @param M_Product_ID Product, Service, Item @@ -409,6 +410,11 @@ public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persiste return false; } + public I_M_MovementLine getReversalLine() throws RuntimeException + { + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getReversalLine_ID(), get_TrxName()); } + /** Set Reversal Line. @param ReversalLine_ID Use to keep the reversal line ID for reversing costing purpose diff --git a/base/src/org/compiere/model/X_M_MovementLineConfirm.java b/base/src/org/compiere/model/X_M_MovementLineConfirm.java index 3923a205d3..a49978da2c 100644 --- a/base/src/org/compiere/model/X_M_MovementLineConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementLineConfirm.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -138,21 +136,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi return bd; } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -177,21 +164,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi return ii.intValue(); } - public I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException + public I_M_MovementConfirm getM_MovementConfirm() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementConfirm.Table_Name); - I_M_MovementConfirm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementConfirm)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementConfirm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementConfirm)MTable.get(getCtx(), I_M_MovementConfirm.Table_Name) + .getPO(getM_MovementConfirm_ID(), get_TrxName()); } /** Set Move Confirm. @param M_MovementConfirm_ID @@ -224,21 +200,10 @@ public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfi return new KeyNamePair(get_ID(), String.valueOf(getM_MovementConfirm_ID())); } - public I_M_MovementLine getM_MovementLine() throws RuntimeException + public I_M_MovementLine getM_MovementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); - I_M_MovementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID diff --git a/base/src/org/compiere/model/X_M_MovementLineMA.java b/base/src/org/compiere/model/X_M_MovementLineMA.java index 26ea64517c..722a19b66d 100644 --- a/base/src/org/compiere/model/X_M_MovementLineMA.java +++ b/base/src/org/compiere/model/X_M_MovementLineMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -75,6 +73,11 @@ public class X_M_MovementLineMA extends PO implements I_M_MovementLineMA, I_Pers return sb.toString(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -98,21 +101,10 @@ public class X_M_MovementLineMA extends PO implements I_M_MovementLineMA, I_Pers return ii.intValue(); } - public I_M_MovementLine getM_MovementLine() throws RuntimeException + public I_M_MovementLine getM_MovementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); - I_M_MovementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID diff --git a/base/src/org/compiere/model/X_M_OperationResource.java b/base/src/org/compiere/model/X_M_OperationResource.java index 7a42b526c3..0dd50e05e2 100644 --- a/base/src/org/compiere/model/X_M_OperationResource.java +++ b/base/src/org/compiere/model/X_M_OperationResource.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -118,21 +105,10 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, return ii.intValue(); } - public I_C_Job getC_Job() throws RuntimeException + public I_C_Job getC_Job() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Job.Table_Name); - I_C_Job result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Job)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Job_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Job)MTable.get(getCtx(), I_C_Job.Table_Name) + .getPO(getC_Job_ID(), get_TrxName()); } /** Set Position. @param C_Job_ID @@ -214,21 +190,10 @@ public class X_M_OperationResource extends PO implements I_M_OperationResource, return ii.intValue(); } - public I_M_ProductOperation getM_ProductOperation() throws RuntimeException + public I_M_ProductOperation getM_ProductOperation() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductOperation.Table_Name); - I_M_ProductOperation result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductOperation)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductOperation_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductOperation)MTable.get(getCtx(), I_M_ProductOperation.Table_Name) + .getPO(getM_ProductOperation_ID(), get_TrxName()); } /** Set Product Operation. @param M_ProductOperation_ID diff --git a/base/src/org/compiere/model/X_M_Package.java b/base/src/org/compiere/model/X_M_Package.java index d0d841c513..7de313924d 100644 --- a/base/src/org/compiere/model/X_M_Package.java +++ b/base/src/org/compiere/model/X_M_Package.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_Package * @author Adempiere (generated) @@ -126,21 +124,10 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent return (String)get_Value(COLUMNNAME_DocumentNo); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -188,21 +175,10 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent return ii.intValue(); } - public I_M_Shipper getM_Shipper() throws RuntimeException + public I_M_Shipper getM_Shipper() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Shipper.Table_Name); - I_M_Shipper result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name) + .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID diff --git a/base/src/org/compiere/model/X_M_PackageLine.java b/base/src/org/compiere/model/X_M_PackageLine.java index d3c482261f..e10df80878 100644 --- a/base/src/org/compiere/model/X_M_PackageLine.java +++ b/base/src/org/compiere/model/X_M_PackageLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -94,21 +92,10 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent return (String)get_Value(COLUMNNAME_Description); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -133,21 +120,10 @@ public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent return ii.intValue(); } - public I_M_Package getM_Package() throws RuntimeException + public I_M_Package getM_Package() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Package.Table_Name); - I_M_Package result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Package)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Package_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Package)MTable.get(getCtx(), I_M_Package.Table_Name) + .getPO(getM_Package_ID(), get_TrxName()); } /** Set Package. @param M_Package_ID diff --git a/base/src/org/compiere/model/X_M_PerpetualInv.java b/base/src/org/compiere/model/X_M_PerpetualInv.java index adb56fff57..b7c9d0e7ff 100644 --- a/base/src/org/compiere/model/X_M_PerpetualInv.java +++ b/base/src/org/compiere/model/X_M_PerpetualInv.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_PerpetualInv @@ -180,21 +178,10 @@ public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persiste return ii.intValue(); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -219,21 +206,10 @@ public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persiste return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_M_PriceList.java b/base/src/org/compiere/model/X_M_PriceList.java index e6f8b2fcbb..0c272acd2d 100644 --- a/base/src/org/compiere/model/X_M_PriceList.java +++ b/base/src/org/compiere/model/X_M_PriceList.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_PriceList @@ -80,6 +78,11 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent return sb.toString(); } + public I_M_PriceList getBasePriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getBasePriceList_ID(), get_TrxName()); } + /** Set Base Pricelist. @param BasePriceList_ID Pricelist to be used, if product not found on this pricelist @@ -103,21 +106,10 @@ public class X_M_PriceList extends PO implements I_M_PriceList, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID 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 67ff997b37..b727f3aacd 100644 --- a/base/src/org/compiere/model/X_M_PriceList_Version.java +++ b/base/src/org/compiere/model/X_M_PriceList_Version.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_PriceList_Version @@ -96,21 +94,10 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, return (String)get_Value(COLUMNNAME_Description); } - public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DiscountSchema.Table_Name); - I_M_DiscountSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DiscountSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DiscountSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } /** Set Discount Schema. @param M_DiscountSchema_ID @@ -135,21 +122,10 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -174,6 +150,11 @@ public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, return ii.intValue(); } + public I_M_PriceList_Version getM_Pricelist_Version_Base() throws RuntimeException + { + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_Pricelist_Version_Base_ID(), get_TrxName()); } + /** Set Base Price List. @param M_Pricelist_Version_Base_ID Source for Price list calculations diff --git a/base/src/org/compiere/model/X_M_Product.java b/base/src/org/compiere/model/X_M_Product.java index 607c1bfaa8..1f5ef6aa95 100644 --- a/base/src/org/compiere/model/X_M_Product.java +++ b/base/src/org/compiere/model/X_M_Product.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -104,21 +102,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return sb.toString(); } - public I_C_RevenueRecognition getC_RevenueRecognition() throws RuntimeException + public I_C_RevenueRecognition getC_RevenueRecognition() throws RuntimeException { - Class clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name); - I_C_RevenueRecognition result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_RevenueRecognition)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_RevenueRecognition)MTable.get(getCtx(), I_C_RevenueRecognition.Table_Name) + .getPO(getC_RevenueRecognition_ID(), get_TrxName()); } /** Set Revenue Recognition. @param C_RevenueRecognition_ID @@ -166,21 +153,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID @@ -205,21 +181,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -760,21 +725,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_M_AttributeSet getM_AttributeSet() throws RuntimeException + public I_M_AttributeSet getM_AttributeSet() throws RuntimeException { - Class clazz = MTable.getClass(I_M_AttributeSet.Table_Name); - I_M_AttributeSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_AttributeSet)MTable.get(getCtx(), I_M_AttributeSet.Table_Name) + .getPO(getM_AttributeSet_ID(), get_TrxName()); } /** Set Attribute Set. @param M_AttributeSet_ID @@ -799,6 +753,11 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -822,21 +781,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_M_FreightCategory getM_FreightCategory() throws RuntimeException + public I_M_FreightCategory getM_FreightCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_FreightCategory.Table_Name); - I_M_FreightCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_FreightCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_FreightCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_FreightCategory)MTable.get(getCtx(), I_M_FreightCategory.Table_Name) + .getPO(getM_FreightCategory_ID(), get_TrxName()); } /** Set Freight Category. @param M_FreightCategory_ID @@ -861,6 +809,11 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -884,21 +837,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -1014,21 +956,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return (String)get_Value(COLUMNNAME_ProductType); } - public I_R_MailText getR_MailText() throws RuntimeException + public I_R_MailText getR_MailText() throws RuntimeException { - Class clazz = MTable.getClass(I_R_MailText.Table_Name); - I_R_MailText result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getR_MailText_ID(), get_TrxName()); } /** Set Mail Template. @param R_MailText_ID @@ -1053,21 +984,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_S_ExpenseType getS_ExpenseType() throws RuntimeException + public I_S_ExpenseType getS_ExpenseType() throws RuntimeException { - Class clazz = MTable.getClass(I_S_ExpenseType.Table_Name); - I_S_ExpenseType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_ExpenseType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_ExpenseType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_ExpenseType)MTable.get(getCtx(), I_S_ExpenseType.Table_Name) + .getPO(getS_ExpenseType_ID(), get_TrxName()); } /** Set Expense Type. @param S_ExpenseType_ID @@ -1092,21 +1012,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } - public I_S_Resource getS_Resource() throws RuntimeException + public I_S_Resource getS_Resource() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Resource.Table_Name); - I_S_Resource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name) + .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID @@ -1131,6 +1040,11 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_M_ProductDownload.java b/base/src/org/compiere/model/X_M_ProductDownload.java index ac12838ff5..7e367ffd28 100644 --- a/base/src/org/compiere/model/X_M_ProductDownload.java +++ b/base/src/org/compiere/model/X_M_ProductDownload.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_ProductDownload @@ -92,21 +90,10 @@ public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Pe return (String)get_Value(COLUMNNAME_DownloadURL); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_ProductOperation.java b/base/src/org/compiere/model/X_M_ProductOperation.java index 624ab9a6a1..c93d17eed1 100644 --- a/base/src/org/compiere/model/X_M_ProductOperation.java +++ b/base/src/org/compiere/model/X_M_ProductOperation.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -110,21 +108,10 @@ public class X_M_ProductOperation extends PO implements I_M_ProductOperation, I_ return (String)get_Value(COLUMNNAME_Help); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_ProductPrice.java b/base/src/org/compiere/model/X_M_ProductPrice.java index 379e2c648e..dce51b6954 100644 --- a/base/src/org/compiere/model/X_M_ProductPrice.java +++ b/base/src/org/compiere/model/X_M_ProductPrice.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_ProductPrice @@ -77,21 +75,10 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste return sb.toString(); } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -116,21 +103,10 @@ public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persiste return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java b/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java index 916f76cdea..47068e690d 100644 --- a/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java +++ b/base/src/org/compiere/model/X_M_ProductPriceVendorBreak.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_ProductPriceVendorBreak @@ -100,6 +98,11 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV return bd; } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -123,21 +126,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV return ii.intValue(); } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -162,21 +154,10 @@ public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceV return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 7e423f430f..35fe29da5b 100644 --- a/base/src/org/compiere/model/X_M_Product_Acct.java +++ b/base/src/org/compiere/model/X_M_Product_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_Product_Acct * @author Adempiere (generated) @@ -94,21 +92,10 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -133,21 +120,10 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -172,6 +148,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Asset_Acct(), get_TrxName()); } + /** Set Product Asset. @param P_Asset_Acct Account for Product Asset (Inventory) @@ -192,6 +173,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Burden_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Burden_Acct(), get_TrxName()); } + /** Set Burden. @param P_Burden_Acct The Burden account is the account used Manufacturing Order @@ -212,6 +198,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_COGS_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_COGS_Acct(), get_TrxName()); } + /** Set Product COGS. @param P_COGS_Acct Account for Cost of Goods Sold @@ -232,6 +223,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostAdjustment_Acct(), get_TrxName()); } + /** Set Cost Adjustment. @param P_CostAdjustment_Acct Product Cost Adjustment Account @@ -252,6 +248,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostOfProduction_Acct(), get_TrxName()); } + /** Set Cost Of Production. @param P_CostOfProduction_Acct The Cost Of Production account is the account used Manufacturing Order @@ -272,6 +273,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Expense_Acct(), get_TrxName()); } + /** Set Product Expense. @param P_Expense_Acct Account for Product Expense @@ -292,6 +298,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_FloorStock_Acct(), get_TrxName()); } + /** Set Floor Stock. @param P_FloorStock_Acct The Floor Stock account is the account used Manufacturing Order @@ -312,6 +323,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InventoryClearing_Acct(), get_TrxName()); } + /** Set Inventory Clearing. @param P_InventoryClearing_Acct Product Inventory Clearing Account @@ -332,6 +348,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InvoicePriceVariance_Acct(), get_TrxName()); } + /** Set Invoice Price Variance. @param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) @@ -352,6 +373,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Labor_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Labor_Acct(), get_TrxName()); } + /** Set Labor. @param P_Labor_Acct The Labor account is the account used Manufacturing Order @@ -372,6 +398,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MethodChangeVariance_Acct(), get_TrxName()); } + /** Set Method Change Variance. @param P_MethodChangeVariance_Acct The Method Change Variance account is the account used Manufacturing Order @@ -392,6 +423,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MixVariance_Acct(), get_TrxName()); } + /** Set Mix Variance. @param P_MixVariance_Acct The Mix Variance account is the account used Manufacturing Order @@ -412,6 +448,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_OutsideProcessing_Acct(), get_TrxName()); } + /** Set Outside Processing. @param P_OutsideProcessing_Acct The Outside Processing Account is the account used in Manufacturing Order @@ -432,6 +473,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Overhead_Acct(), get_TrxName()); } + /** Set Overhead. @param P_Overhead_Acct The Overhead account is the account used in Manufacturing Order @@ -452,6 +498,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_PurchasePriceVariance_Acct(), get_TrxName()); } + /** Set Purchase Price Variance. @param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) @@ -472,6 +523,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_RateVariance_Acct(), get_TrxName()); } + /** Set Rate Variance. @param P_RateVariance_Acct The Rate Variance account is the account used Manufacturing Order @@ -492,6 +548,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Revenue_Acct(), get_TrxName()); } + /** Set Product Revenue. @param P_Revenue_Acct Account for Product Revenue (Sales Account) @@ -512,6 +573,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Scrap_Acct(), get_TrxName()); } + /** Set Scrap. @param P_Scrap_Acct The Scrap account is the account used in Manufacturing Order @@ -532,6 +598,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountGrant_Acct(), get_TrxName()); } + /** Set Trade Discount Granted. @param P_TradeDiscountGrant_Acct Trade Discount Granted Account @@ -552,6 +623,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountRec_Acct(), get_TrxName()); } + /** Set Trade Discount Received. @param P_TradeDiscountRec_Acct Trade Discount Receivable Account @@ -572,6 +648,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_UsageVariance_Acct(), get_TrxName()); } + /** Set Usage Variance. @param P_UsageVariance_Acct The Usage Variance account is the account used Manufacturing Order @@ -592,6 +673,11 @@ public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persiste return ii.intValue(); } + public I_C_ValidCombination getP_WIP_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_WIP_Acct(), get_TrxName()); } + /** Set Work In Process. @param P_WIP_Acct The Work in Process account is the account used Manufacturing Order 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 99c9fb8989..5c9ea1eeb7 100644 --- a/base/src/org/compiere/model/X_M_Product_BOM.java +++ b/base/src/org/compiere/model/X_M_Product_BOM.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -199,21 +197,10 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -238,6 +225,11 @@ public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent return ii.intValue(); } + public I_M_Product getM_ProductBOM() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductBOM_ID(), get_TrxName()); } + /** Set BOM Product. @param M_ProductBOM_ID Bill of Material Component 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 41b881ef7e..5ea7d495a5 100644 --- a/base/src/org/compiere/model/X_M_Product_Category.java +++ b/base/src/org/compiere/model/X_M_Product_Category.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ return sb.toString(); } - public I_A_Asset_Group getA_Asset_Group() throws RuntimeException + public I_A_Asset_Group getA_Asset_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset_Group.Table_Name); - I_A_Asset_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset_Group)MTable.get(getCtx(), I_A_Asset_Group.Table_Name) + .getPO(getA_Asset_Group_ID(), get_TrxName()); } /** Set Asset Group. @param A_Asset_Group_ID @@ -121,21 +108,10 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ return ii.intValue(); } - public I_AD_PrintColor getAD_PrintColor() throws RuntimeException + public I_AD_PrintColor getAD_PrintColor() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintColor.Table_Name); - I_AD_PrintColor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintColor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintColor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor_ID(), get_TrxName()); } /** Set Print Color. @param AD_PrintColor_ID @@ -248,6 +224,11 @@ public class X_M_Product_Category extends PO implements I_M_Product_Category, I_ return ii.intValue(); } + public I_M_Product_Category getM_Product_Category_Parent() throws RuntimeException + { + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_Parent_ID(), get_TrxName()); } + /** Set Parent Product Category. @param M_Product_Category_Parent_ID Parent Product Category */ public void setM_Product_Category_Parent_ID (int M_Product_Category_Parent_ID) 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 ceb5e0d6ec..b85ffc4bd5 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 @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_Product_Category_Acct * @author Adempiere (generated) @@ -94,21 +92,10 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -197,21 +184,10 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return (String)get_Value(COLUMNNAME_CostingMethod); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -236,6 +212,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Asset_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Asset_Acct(), get_TrxName()); } + /** Set Product Asset. @param P_Asset_Acct Account for Product Asset (Inventory) @@ -256,6 +237,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Burden_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Burden_Acct(), get_TrxName()); } + /** Set Burden. @param P_Burden_Acct The Burden account is the account used Manufacturing Order @@ -276,6 +262,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_COGS_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_COGS_Acct(), get_TrxName()); } + /** Set Product COGS. @param P_COGS_Acct Account for Cost of Goods Sold @@ -296,6 +287,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_CostAdjustment_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostAdjustment_Acct(), get_TrxName()); } + /** Set Cost Adjustment. @param P_CostAdjustment_Acct Product Cost Adjustment Account @@ -316,6 +312,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_CostOfProduction_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_CostOfProduction_Acct(), get_TrxName()); } + /** Set Cost Of Production. @param P_CostOfProduction_Acct The Cost Of Production account is the account used Manufacturing Order @@ -336,6 +337,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Expense_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Expense_Acct(), get_TrxName()); } + /** Set Product Expense. @param P_Expense_Acct Account for Product Expense @@ -356,6 +362,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_FloorStock_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_FloorStock_Acct(), get_TrxName()); } + /** Set Floor Stock. @param P_FloorStock_Acct The Floor Stock account is the account used Manufacturing Order @@ -376,6 +387,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_InventoryClearing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InventoryClearing_Acct(), get_TrxName()); } + /** Set Inventory Clearing. @param P_InventoryClearing_Acct Product Inventory Clearing Account @@ -396,6 +412,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_InvoicePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_InvoicePriceVariance_Acct(), get_TrxName()); } + /** Set Invoice Price Variance. @param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) @@ -416,6 +437,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Labor_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Labor_Acct(), get_TrxName()); } + /** Set Labor. @param P_Labor_Acct The Labor account is the account used Manufacturing Order @@ -436,6 +462,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_MethodChangeVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MethodChangeVariance_Acct(), get_TrxName()); } + /** Set Method Change Variance. @param P_MethodChangeVariance_Acct The Method Change Variance account is the account used Manufacturing Order @@ -456,6 +487,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_MixVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_MixVariance_Acct(), get_TrxName()); } + /** Set Mix Variance. @param P_MixVariance_Acct The Mix Variance account is the account used Manufacturing Order @@ -476,6 +512,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_OutsideProcessing_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_OutsideProcessing_Acct(), get_TrxName()); } + /** Set Outside Processing. @param P_OutsideProcessing_Acct The Outside Processing Account is the account used in Manufacturing Order @@ -496,6 +537,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Overhead_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Overhead_Acct(), get_TrxName()); } + /** Set Overhead. @param P_Overhead_Acct The Overhead account is the account used in Manufacturing Order @@ -516,6 +562,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_PurchasePriceVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_PurchasePriceVariance_Acct(), get_TrxName()); } + /** Set Purchase Price Variance. @param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) @@ -536,6 +587,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_RateVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_RateVariance_Acct(), get_TrxName()); } + /** Set Rate Variance. @param P_RateVariance_Acct The Rate Variance account is the account used Manufacturing Order @@ -556,6 +612,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Revenue_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Revenue_Acct(), get_TrxName()); } + /** Set Product Revenue. @param P_Revenue_Acct Account for Product Revenue (Sales Account) @@ -576,6 +637,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_Scrap_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_Scrap_Acct(), get_TrxName()); } + /** Set Scrap. @param P_Scrap_Acct The Scrap account is the account used in Manufacturing Order @@ -596,6 +662,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountGrant_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountGrant_Acct(), get_TrxName()); } + /** Set Trade Discount Granted. @param P_TradeDiscountGrant_Acct Trade Discount Granted Account @@ -616,6 +687,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_TradeDiscountRec_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_TradeDiscountRec_Acct(), get_TrxName()); } + /** Set Trade Discount Received. @param P_TradeDiscountRec_Acct Trade Discount Receivable Account @@ -636,6 +712,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_UsageVariance_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_UsageVariance_Acct(), get_TrxName()); } + /** Set Usage Variance. @param P_UsageVariance_Acct The Usage Variance account is the account used Manufacturing Order @@ -656,6 +737,11 @@ public class X_M_Product_Category_Acct extends PO implements I_M_Product_Categor return ii.intValue(); } + public I_C_ValidCombination getP_WIP_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getP_WIP_Acct(), get_TrxName()); } + /** Set Work In Process. @param P_WIP_Acct The Work in Process account is the account used Manufacturing Order 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 a118440721..d393a3da58 100644 --- a/base/src/org/compiere/model/X_M_Product_Costing.java +++ b/base/src/org/compiere/model/X_M_Product_Costing.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_Product_Costing @@ -88,21 +86,10 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -324,21 +311,10 @@ public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Pe return bd; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID 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 d3940f6a5b..d47950b94a 100644 --- a/base/src/org/compiere/model/X_M_Product_PO.java +++ b/base/src/org/compiere/model/X_M_Product_PO.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_Product_PO @@ -81,21 +79,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -120,21 +107,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -159,21 +135,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -323,21 +288,10 @@ public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_Production.java b/base/src/org/compiere/model/X_M_Production.java index f5e5d8312d..e9832edf4c 100644 --- a/base/src/org/compiere/model/X_M_Production.java +++ b/base/src/org/compiere/model/X_M_Production.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Production @@ -102,21 +100,10 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -141,21 +128,10 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -180,21 +156,10 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -391,6 +356,11 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent return false; } + public I_C_ElementValue getUser1() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser1_ID(), get_TrxName()); } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -414,6 +384,11 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent return ii.intValue(); } + public I_C_ElementValue getUser2() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getUser2_ID(), get_TrxName()); } + /** Set User List 2. @param User2_ID User defined list element #2 diff --git a/base/src/org/compiere/model/X_M_ProductionLine.java b/base/src/org/compiere/model/X_M_ProductionLine.java index 2ddb2484ea..7b702e2fd5 100644 --- a/base/src/org/compiere/model/X_M_ProductionLine.java +++ b/base/src/org/compiere/model/X_M_ProductionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -128,6 +126,11 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -151,6 +154,11 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -174,21 +182,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -236,21 +233,10 @@ public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Pers return ii.intValue(); } - public I_M_ProductionPlan getM_ProductionPlan() throws RuntimeException + public I_M_ProductionPlan getM_ProductionPlan() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionPlan.Table_Name); - I_M_ProductionPlan result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionPlan)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionPlan_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionPlan)MTable.get(getCtx(), I_M_ProductionPlan.Table_Name) + .getPO(getM_ProductionPlan_ID(), get_TrxName()); } /** Set Production Plan. @param M_ProductionPlan_ID diff --git a/base/src/org/compiere/model/X_M_ProductionLineMA.java b/base/src/org/compiere/model/X_M_ProductionLineMA.java index 04c4914c05..67febb8707 100644 --- a/base/src/org/compiere/model/X_M_ProductionLineMA.java +++ b/base/src/org/compiere/model/X_M_ProductionLineMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,6 +74,11 @@ public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_ return sb.toString(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -99,21 +102,10 @@ public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_ return ii.intValue(); } - public I_M_ProductionLine getM_ProductionLine() throws RuntimeException + public I_M_ProductionLine getM_ProductionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); - I_M_ProductionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getM_ProductionLine_ID(), get_TrxName()); } /** Set Production Line. @param M_ProductionLine_ID diff --git a/base/src/org/compiere/model/X_M_ProductionPlan.java b/base/src/org/compiere/model/X_M_ProductionPlan.java index 2f5d1cc33b..0f929db363 100644 --- a/base/src/org/compiere/model/X_M_ProductionPlan.java +++ b/base/src/org/compiere/model/X_M_ProductionPlan.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -128,6 +126,11 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers return new KeyNamePair(get_ID(), String.valueOf(getLine())); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -151,6 +154,11 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers return ii.intValue(); } + public I_M_Product getM_Product() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } + /** Set Product. @param M_Product_ID Product, Service, Item @@ -174,21 +182,10 @@ public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Pers return ii.intValue(); } - public I_M_Production getM_Production() throws RuntimeException + public I_M_Production getM_Production() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Production.Table_Name); - I_M_Production result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Production)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Production_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Production)MTable.get(getCtx(), I_M_Production.Table_Name) + .getPO(getM_Production_ID(), get_TrxName()); } /** Set Production. @param M_Production_ID diff --git a/base/src/org/compiere/model/X_M_Promotion.java b/base/src/org/compiere/model/X_M_Promotion.java index 43428373f6..dd20d686a7 100644 --- a/base/src/org/compiere/model/X_M_Promotion.java +++ b/base/src/org/compiere/model/X_M_Promotion.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Promotion @@ -75,21 +73,10 @@ public class X_M_Promotion extends PO implements I_M_Promotion, I_Persistent return sb.toString(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID diff --git a/base/src/org/compiere/model/X_M_PromotionDistribution.java b/base/src/org/compiere/model/X_M_PromotionDistribution.java index af549fc86d..4216c132b4 100644 --- a/base/src/org/compiere/model/X_M_PromotionDistribution.java +++ b/base/src/org/compiere/model/X_M_PromotionDistribution.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_PromotionDistribution @@ -131,21 +129,10 @@ public class X_M_PromotionDistribution extends PO implements I_M_PromotionDistri return (String)get_Value(COLUMNNAME_DistributionType); } - public I_M_Promotion getM_Promotion() throws RuntimeException + public I_M_Promotion getM_Promotion() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Promotion.Table_Name); - I_M_Promotion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Promotion)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Promotion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Promotion)MTable.get(getCtx(), I_M_Promotion.Table_Name) + .getPO(getM_Promotion_ID(), get_TrxName()); } /** Set Promotion. @param M_Promotion_ID Promotion */ @@ -187,21 +174,10 @@ public class X_M_PromotionDistribution extends PO implements I_M_PromotionDistri return ii.intValue(); } - public I_M_PromotionLine getM_PromotionLine() throws RuntimeException + public I_M_PromotionLine getM_PromotionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PromotionLine.Table_Name); - I_M_PromotionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PromotionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PromotionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PromotionLine)MTable.get(getCtx(), I_M_PromotionLine.Table_Name) + .getPO(getM_PromotionLine_ID(), get_TrxName()); } /** Set Promotion Line. @param M_PromotionLine_ID Promotion Line */ diff --git a/base/src/org/compiere/model/X_M_PromotionGroupLine.java b/base/src/org/compiere/model/X_M_PromotionGroupLine.java index df4f2f9bba..6540a7bc04 100644 --- a/base/src/org/compiere/model/X_M_PromotionGroupLine.java +++ b/base/src/org/compiere/model/X_M_PromotionGroupLine.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_PromotionGroupLine * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_M_PromotionGroupLine extends PO implements I_M_PromotionGroupLine return sb.toString(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -112,21 +99,10 @@ public class X_M_PromotionGroupLine extends PO implements I_M_PromotionGroupLine return ii.intValue(); } - public I_M_PromotionGroup getM_PromotionGroup() throws RuntimeException + public I_M_PromotionGroup getM_PromotionGroup() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PromotionGroup.Table_Name); - I_M_PromotionGroup result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PromotionGroup)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PromotionGroup_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PromotionGroup)MTable.get(getCtx(), I_M_PromotionGroup.Table_Name) + .getPO(getM_PromotionGroup_ID(), get_TrxName()); } /** Set Promotion Group. @param M_PromotionGroup_ID Promotion Group */ diff --git a/base/src/org/compiere/model/X_M_PromotionLine.java b/base/src/org/compiere/model/X_M_PromotionLine.java index 9adbdfa545..56c16c2e81 100644 --- a/base/src/org/compiere/model/X_M_PromotionLine.java +++ b/base/src/org/compiere/model/X_M_PromotionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_PromotionLine @@ -100,21 +98,10 @@ public class X_M_PromotionLine extends PO implements I_M_PromotionLine, I_Persis return false; } - public I_M_Promotion getM_Promotion() throws RuntimeException + public I_M_Promotion getM_Promotion() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Promotion.Table_Name); - I_M_Promotion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Promotion)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Promotion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Promotion)MTable.get(getCtx(), I_M_Promotion.Table_Name) + .getPO(getM_Promotion_ID(), get_TrxName()); } /** Set Promotion. @param M_Promotion_ID Promotion */ @@ -136,21 +123,10 @@ public class X_M_PromotionLine extends PO implements I_M_PromotionLine, I_Persis return ii.intValue(); } - public I_M_PromotionGroup getM_PromotionGroup() throws RuntimeException + public I_M_PromotionGroup getM_PromotionGroup() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PromotionGroup.Table_Name); - I_M_PromotionGroup result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PromotionGroup)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PromotionGroup_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PromotionGroup)MTable.get(getCtx(), I_M_PromotionGroup.Table_Name) + .getPO(getM_PromotionGroup_ID(), get_TrxName()); } /** Set Promotion Group. @param M_PromotionGroup_ID Promotion Group */ diff --git a/base/src/org/compiere/model/X_M_PromotionPreCondition.java b/base/src/org/compiere/model/X_M_PromotionPreCondition.java index c93862fe61..4df9290a40 100644 --- a/base/src/org/compiere/model/X_M_PromotionPreCondition.java +++ b/base/src/org/compiere/model/X_M_PromotionPreCondition.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_PromotionPreCondition * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return sb.toString(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -115,21 +102,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return ii.intValue(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -154,21 +130,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -210,21 +175,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return (Timestamp)get_Value(COLUMNNAME_EndDate); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -249,21 +203,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return ii.intValue(); } - public I_M_Promotion getM_Promotion() throws RuntimeException + public I_M_Promotion getM_Promotion() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Promotion.Table_Name); - I_M_Promotion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Promotion)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Promotion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Promotion)MTable.get(getCtx(), I_M_Promotion.Table_Name) + .getPO(getM_Promotion_ID(), get_TrxName()); } /** Set Promotion. @param M_Promotion_ID Promotion */ @@ -305,21 +248,10 @@ public class X_M_PromotionPreCondition extends PO implements I_M_PromotionPreCon return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_M_PromotionReward.java b/base/src/org/compiere/model/X_M_PromotionReward.java index bb44a9a873..05e295e5b2 100644 --- a/base/src/org/compiere/model/X_M_PromotionReward.java +++ b/base/src/org/compiere/model/X_M_PromotionReward.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_PromotionReward @@ -100,21 +98,10 @@ public class X_M_PromotionReward extends PO implements I_M_PromotionReward, I_Pe 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -211,21 +198,10 @@ public class X_M_PromotionReward extends PO implements I_M_PromotionReward, I_Pe return false; } - public I_M_Promotion getM_Promotion() throws RuntimeException + public I_M_Promotion getM_Promotion() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Promotion.Table_Name); - I_M_Promotion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Promotion)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Promotion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Promotion)MTable.get(getCtx(), I_M_Promotion.Table_Name) + .getPO(getM_Promotion_ID(), get_TrxName()); } /** Set Promotion. @param M_Promotion_ID Promotion */ @@ -247,21 +223,10 @@ public class X_M_PromotionReward extends PO implements I_M_PromotionReward, I_Pe return ii.intValue(); } - public I_M_PromotionDistribution getM_PromotionDistribution() throws RuntimeException + public I_M_PromotionDistribution getM_PromotionDistribution() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PromotionDistribution.Table_Name); - I_M_PromotionDistribution result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PromotionDistribution)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PromotionDistribution_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PromotionDistribution)MTable.get(getCtx(), I_M_PromotionDistribution.Table_Name) + .getPO(getM_PromotionDistribution_ID(), get_TrxName()); } /** Set Promotion Distribution. @param M_PromotionDistribution_ID Promotion Distribution */ @@ -303,6 +268,11 @@ public class X_M_PromotionReward extends PO implements I_M_PromotionReward, I_Pe return ii.intValue(); } + public I_M_PromotionDistribution getM_TargetDistribution() throws RuntimeException + { + return (I_M_PromotionDistribution)MTable.get(getCtx(), I_M_PromotionDistribution.Table_Name) + .getPO(getM_TargetDistribution_ID(), get_TrxName()); } + /** Set Target distribution. @param M_TargetDistribution_ID Get product from target distribution to apply the promotion reward diff --git a/base/src/org/compiere/model/X_M_RMA.java b/base/src/org/compiere/model/X_M_RMA.java index 5b57ed65d1..a5a101a26f 100644 --- a/base/src/org/compiere/model/X_M_RMA.java +++ b/base/src/org/compiere/model/X_M_RMA.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -108,21 +106,10 @@ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -147,21 +134,10 @@ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -186,6 +162,11 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocType() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } + /** Set Document Type. @param C_DocType_ID Document type or rules @@ -209,21 +190,10 @@ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -416,6 +386,11 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return (String)get_Value(COLUMNNAME_Help); } + public I_M_InOut getInOut() throws RuntimeException + { + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getInOut_ID(), get_TrxName()); } + /** Set Shipment/Receipt. @param InOut_ID MaterialShipment Document @@ -510,21 +485,10 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } - public I_M_RMAType getM_RMAType() throws RuntimeException + public I_M_RMAType getM_RMAType() throws RuntimeException { - Class clazz = MTable.getClass(I_M_RMAType.Table_Name); - I_M_RMAType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMAType)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMAType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMAType)MTable.get(getCtx(), I_M_RMAType.Table_Name) + .getPO(getM_RMAType_ID(), get_TrxName()); } /** Set RMA Type. @param M_RMAType_ID @@ -611,6 +575,11 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return false; } + public I_M_RMA getRef_RMA() throws RuntimeException + { + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getRef_RMA_ID(), get_TrxName()); } + /** Set Referenced RMA. @param Ref_RMA_ID Referenced RMA */ public void setRef_RMA_ID (int Ref_RMA_ID) @@ -631,6 +600,11 @@ public class X_M_RMA extends PO implements I_M_RMA, I_Persistent return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_M_RMALine.java b/base/src/org/compiere/model/X_M_RMALine.java index 6fb96e3e1b..ecac6fdcd7 100644 --- a/base/src/org/compiere/model/X_M_RMALine.java +++ b/base/src/org/compiere/model/X_M_RMALine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -97,21 +95,10 @@ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -193,21 +180,10 @@ 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -232,21 +208,10 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getM_RMA_ID(), get_TrxName()); } /** Set RMA. @param M_RMA_ID @@ -386,6 +351,11 @@ public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent return bd; } + public I_M_RMALine getRef_RMALine() throws RuntimeException + { + return (I_M_RMALine)MTable.get(getCtx(), I_M_RMALine.Table_Name) + .getPO(getRef_RMALine_ID(), get_TrxName()); } + /** Set Referenced RMA Line. @param Ref_RMALine_ID Referenced RMA Line */ public void setRef_RMALine_ID (int Ref_RMALine_ID) diff --git a/base/src/org/compiere/model/X_M_RelatedProduct.java b/base/src/org/compiere/model/X_M_RelatedProduct.java index f5ca2c27b5..f3e1253490 100644 --- a/base/src/org/compiere/model/X_M_RelatedProduct.java +++ b/base/src/org/compiere/model/X_M_RelatedProduct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_RelatedProduct * @author Adempiere (generated) @@ -91,21 +89,10 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -147,6 +134,11 @@ public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Pers return (String)get_Value(COLUMNNAME_Name); } + public I_M_Product getRelatedProduct() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getRelatedProduct_ID(), get_TrxName()); } + /** Set Related Product. @param RelatedProduct_ID Related Product diff --git a/base/src/org/compiere/model/X_M_Replenish.java b/base/src/org/compiere/model/X_M_Replenish.java index d534c197c2..8993514b13 100644 --- a/base/src/org/compiere/model/X_M_Replenish.java +++ b/base/src/org/compiere/model/X_M_Replenish.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_Replenish @@ -117,21 +115,10 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent return bd; } - public I_M_Locator getM_Locator() throws RuntimeException + public I_M_Locator getM_Locator() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Locator.Table_Name); - I_M_Locator result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Locator)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Locator_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID @@ -156,21 +143,10 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -195,21 +171,10 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -234,6 +199,11 @@ public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent return ii.intValue(); } + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException + { + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_WarehouseSource_ID(), get_TrxName()); } + /** Set Source Warehouse. @param M_WarehouseSource_ID Optional Warehouse to replenish from diff --git a/base/src/org/compiere/model/X_M_Requisition.java b/base/src/org/compiere/model/X_M_Requisition.java index ad38cf9bfb..8a1b5e193c 100644 --- a/base/src/org/compiere/model/X_M_Requisition.java +++ b/base/src/org/compiere/model/X_M_Requisition.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -93,21 +91,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -132,21 +119,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -380,21 +356,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -442,21 +407,10 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_M_RequisitionLine.java b/base/src/org/compiere/model/X_M_RequisitionLine.java index b60bc4a182..10f933b8ae 100644 --- a/base/src/org/compiere/model/X_M_RequisitionLine.java +++ b/base/src/org/compiere/model/X_M_RequisitionLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,21 +79,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -120,21 +107,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Charge)MTable.get(getCtx(), I_C_Charge.Table_Name) + .getPO(getC_Charge_ID(), get_TrxName()); } /** Set Charge. @param C_Charge_ID @@ -159,21 +135,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -198,21 +163,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -302,6 +256,11 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return bd; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -325,21 +284,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -364,21 +312,10 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe return ii.intValue(); } - public I_M_Requisition getM_Requisition() throws RuntimeException + public I_M_Requisition getM_Requisition() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Requisition.Table_Name); - I_M_Requisition result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Requisition)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Requisition_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Requisition)MTable.get(getCtx(), I_M_Requisition.Table_Name) + .getPO(getM_Requisition_ID(), get_TrxName()); } /** Set Requisition. @param M_Requisition_ID diff --git a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java index c7b360c6d0..047e76a91c 100644 --- a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java +++ b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_SerNoCtlExclude * @author Adempiere (generated) @@ -74,21 +72,10 @@ public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Pe return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -137,21 +124,10 @@ public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Pe return false; } - public I_M_SerNoCtl getM_SerNoCtl() throws RuntimeException + public I_M_SerNoCtl getM_SerNoCtl() throws RuntimeException { - Class clazz = MTable.getClass(I_M_SerNoCtl.Table_Name); - I_M_SerNoCtl result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_SerNoCtl)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_SerNoCtl_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_SerNoCtl)MTable.get(getCtx(), I_M_SerNoCtl.Table_Name) + .getPO(getM_SerNoCtl_ID(), get_TrxName()); } /** Set Serial No Control. @param M_SerNoCtl_ID diff --git a/base/src/org/compiere/model/X_M_Shipper.java b/base/src/org/compiere/model/X_M_Shipper.java index 4ba4d952b7..9593f0a548 100644 --- a/base/src/org/compiere/model/X_M_Shipper.java +++ b/base/src/org/compiere/model/X_M_Shipper.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Shipper @@ -73,21 +71,10 @@ public class X_M_Shipper extends PO implements I_M_Shipper, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID diff --git a/base/src/org/compiere/model/X_M_Storage.java b/base/src/org/compiere/model/X_M_Storage.java index b3f1004313..bf41427946 100644 --- a/base/src/org/compiere/model/X_M_Storage.java +++ b/base/src/org/compiere/model/X_M_Storage.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_Storage @@ -96,6 +94,11 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent return (Timestamp)get_Value(COLUMNNAME_DateLastInventory); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -119,6 +122,11 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -142,21 +150,10 @@ public class X_M_Storage extends PO implements I_M_Storage, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_M_Substitute.java b/base/src/org/compiere/model/X_M_Substitute.java index 871089e17f..e63d9972cf 100644 --- a/base/src/org/compiere/model/X_M_Substitute.java +++ b/base/src/org/compiere/model/X_M_Substitute.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for M_Substitute @@ -91,21 +89,10 @@ public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent return (String)get_Value(COLUMNNAME_Description); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -155,6 +142,11 @@ public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_M_Product getSubstitute() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getSubstitute_ID(), get_TrxName()); } + /** Set Substitute. @param Substitute_ID Entity which can be used in place of this entity diff --git a/base/src/org/compiere/model/X_M_Transaction.java b/base/src/org/compiere/model/X_M_Transaction.java index cf3ed004db..acb0272157 100644 --- a/base/src/org/compiere/model/X_M_Transaction.java +++ b/base/src/org/compiere/model/X_M_Transaction.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,21 +79,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return sb.toString(); } - public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException + public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); - I_C_ProjectIssue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectIssue)MTable.get(getCtx(), I_C_ProjectIssue.Table_Name) + .getPO(getC_ProjectIssue_ID(), get_TrxName()); } /** Set Project Issue. @param C_ProjectIssue_ID @@ -120,6 +107,11 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -143,21 +135,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -182,21 +163,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -221,6 +191,11 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -244,21 +219,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } - public I_M_MovementLine getM_MovementLine() throws RuntimeException + public I_M_MovementLine getM_MovementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); - I_M_MovementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID @@ -283,21 +247,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -322,21 +275,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return ii.intValue(); } - public I_M_ProductionLine getM_ProductionLine() throws RuntimeException + public I_M_ProductionLine getM_ProductionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); - I_M_ProductionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getM_ProductionLine_ID(), get_TrxName()); } /** Set Production Line. @param M_ProductionLine_ID @@ -470,21 +412,10 @@ public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent return (String)get_Value(COLUMNNAME_MovementType); } - public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException + public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Cost_Collector.Table_Name); - org.eevolution.model.I_PP_Cost_Collector result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Cost_Collector)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Cost_Collector_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_PP_Cost_Collector)MTable.get(getCtx(), org.eevolution.model.I_PP_Cost_Collector.Table_Name) + .getPO(getPP_Cost_Collector_ID(), get_TrxName()); } /** Set Manufacturing Cost Collector. @param PP_Cost_Collector_ID Manufacturing Cost Collector */ diff --git a/base/src/org/compiere/model/X_M_TransactionAllocation.java b/base/src/org/compiere/model/X_M_TransactionAllocation.java index 504f5c3258..1e3c8e680d 100644 --- a/base/src/org/compiere/model/X_M_TransactionAllocation.java +++ b/base/src/org/compiere/model/X_M_TransactionAllocation.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for M_TransactionAllocation @@ -153,6 +151,11 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return false; } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -176,21 +179,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -215,21 +207,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -254,21 +235,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -293,21 +263,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } - public I_M_ProductionLine getM_ProductionLine() throws RuntimeException + public I_M_ProductionLine getM_ProductionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); - I_M_ProductionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getM_ProductionLine_ID(), get_TrxName()); } /** Set Production Line. @param M_ProductionLine_ID @@ -332,21 +291,10 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } - public I_M_Transaction getM_Transaction() throws RuntimeException + public I_M_Transaction getM_Transaction() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Transaction.Table_Name); - I_M_Transaction result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Transaction)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Transaction_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Transaction)MTable.get(getCtx(), I_M_Transaction.Table_Name) + .getPO(getM_Transaction_ID(), get_TrxName()); } /** Set Inventory Transaction. @param M_Transaction_ID Inventory Transaction */ @@ -368,6 +316,11 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } + public I_M_InOutLine getOut_M_InOutLine() throws RuntimeException + { + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getOut_M_InOutLine_ID(), get_TrxName()); } + /** Set Out Shipment Line. @param Out_M_InOutLine_ID Outgoing Shipment/Receipt @@ -391,6 +344,11 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } + public I_M_InventoryLine getOut_M_InventoryLine() throws RuntimeException + { + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getOut_M_InventoryLine_ID(), get_TrxName()); } + /** Set Out Inventory Line. @param Out_M_InventoryLine_ID Outgoing Inventory Line @@ -414,6 +372,11 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } + public I_M_ProductionLine getOut_M_ProductionLine() throws RuntimeException + { + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getOut_M_ProductionLine_ID(), get_TrxName()); } + /** Set Out Production Line. @param Out_M_ProductionLine_ID Outgoing Production Line @@ -437,6 +400,11 @@ public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllo return ii.intValue(); } + public I_M_Transaction getOut_M_Transaction() throws RuntimeException + { + return (I_M_Transaction)MTable.get(getCtx(), I_M_Transaction.Table_Name) + .getPO(getOut_M_Transaction_ID(), get_TrxName()); } + /** Set Out Transaction. @param Out_M_Transaction_ID Outgoing Transaction diff --git a/base/src/org/compiere/model/X_M_Warehouse.java b/base/src/org/compiere/model/X_M_Warehouse.java index 16b56f9b4a..dfe9c8a561 100644 --- a/base/src/org/compiere/model/X_M_Warehouse.java +++ b/base/src/org/compiere/model/X_M_Warehouse.java @@ -75,6 +75,11 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent return sb.toString(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -162,6 +167,11 @@ public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent return ii.intValue(); } + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException + { + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_WarehouseSource_ID(), get_TrxName()); } + /** Set Source Warehouse. @param M_WarehouseSource_ID Optional Warehouse to replenish from 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 ba7629ceb2..ac0672a3dd 100644 --- a/base/src/org/compiere/model/X_M_Warehouse_Acct.java +++ b/base/src/org/compiere/model/X_M_Warehouse_Acct.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for M_Warehouse_Acct * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -115,21 +102,10 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -154,6 +130,11 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getW_Differences_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Differences_Acct(), get_TrxName()); } + /** Set Warehouse Differences. @param W_Differences_Acct Warehouse Differences Account @@ -174,6 +155,11 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getW_InvActualAdjust_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_InvActualAdjust_Acct(), get_TrxName()); } + /** Set Inventory Adjustment. @param W_InvActualAdjust_Acct Account for Inventory value adjustments for Actual Costing @@ -194,6 +180,11 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getW_Inventory_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Inventory_Acct(), get_TrxName()); } + /** Set (Not Used). @param W_Inventory_Acct Warehouse Inventory Asset Account - Currently not used @@ -214,6 +205,11 @@ public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Pers return ii.intValue(); } + public I_C_ValidCombination getW_Revaluation_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getW_Revaluation_Acct(), get_TrxName()); } + /** Set Inventory Revaluation. @param W_Revaluation_Acct Account for Inventory Revaluation diff --git a/base/src/org/compiere/model/X_PA_Achievement.java b/base/src/org/compiere/model/X_PA_Achievement.java index 17ae96c3c3..c83783959e 100644 --- a/base/src/org/compiere/model/X_PA_Achievement.java +++ b/base/src/org/compiere/model/X_PA_Achievement.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -223,21 +221,10 @@ public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persiste return ii.intValue(); } - public I_PA_Measure getPA_Measure() throws RuntimeException + public I_PA_Measure getPA_Measure() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Measure.Table_Name); - I_PA_Measure result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Measure)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Measure_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Measure)MTable.get(getCtx(), I_PA_Measure.Table_Name) + .getPO(getPA_Measure_ID(), get_TrxName()); } /** Set Measure. @param PA_Measure_ID diff --git a/base/src/org/compiere/model/X_PA_BenchmarkData.java b/base/src/org/compiere/model/X_PA_BenchmarkData.java index f00c596a6a..2a6c714f82 100644 --- a/base/src/org/compiere/model/X_PA_BenchmarkData.java +++ b/base/src/org/compiere/model/X_PA_BenchmarkData.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -158,21 +156,10 @@ public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Pers return new KeyNamePair(get_ID(), getName()); } - public I_PA_Benchmark getPA_Benchmark() throws RuntimeException + public I_PA_Benchmark getPA_Benchmark() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Benchmark.Table_Name); - I_PA_Benchmark result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Benchmark)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Benchmark_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Benchmark)MTable.get(getCtx(), I_PA_Benchmark.Table_Name) + .getPO(getPA_Benchmark_ID(), get_TrxName()); } /** Set Benchmark. @param PA_Benchmark_ID diff --git a/base/src/org/compiere/model/X_PA_ColorSchema.java b/base/src/org/compiere/model/X_PA_ColorSchema.java index e1544e6935..4789874159 100644 --- a/base/src/org/compiere/model/X_PA_ColorSchema.java +++ b/base/src/org/compiere/model/X_PA_ColorSchema.java @@ -77,6 +77,11 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste return sb.toString(); } + public I_AD_PrintColor getAD_PrintColor1() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor1_ID(), get_TrxName()); } + /** Set Color 1. @param AD_PrintColor1_ID First color used @@ -100,6 +105,11 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste return ii.intValue(); } + public I_AD_PrintColor getAD_PrintColor2() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor2_ID(), get_TrxName()); } + /** Set Color 2. @param AD_PrintColor2_ID Second color used @@ -123,6 +133,11 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste return ii.intValue(); } + public I_AD_PrintColor getAD_PrintColor3() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor3_ID(), get_TrxName()); } + /** Set Color 3. @param AD_PrintColor3_ID Third color used @@ -146,6 +161,11 @@ public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persiste return ii.intValue(); } + public I_AD_PrintColor getAD_PrintColor4() throws RuntimeException + { + return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name) + .getPO(getAD_PrintColor4_ID(), get_TrxName()); } + /** Set Color 4. @param AD_PrintColor4_ID Forth color used diff --git a/base/src/org/compiere/model/X_PA_DashboardContent.java b/base/src/org/compiere/model/X_PA_DashboardContent.java index a6e990e3f0..e8d1b10957 100644 --- a/base/src/org/compiere/model/X_PA_DashboardContent.java +++ b/base/src/org/compiere/model/X_PA_DashboardContent.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent, return sb.toString(); } - public I_AD_Window getAD_Window() throws RuntimeException + public I_AD_Window getAD_Window() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Window.Table_Name); - I_AD_Window result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID @@ -280,21 +267,10 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent, return ii.intValue(); } - public I_PA_Goal getPA_Goal() throws RuntimeException + public I_PA_Goal getPA_Goal() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Goal.Table_Name); - I_PA_Goal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Goal)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Goal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Goal)MTable.get(getCtx(), I_PA_Goal.Table_Name) + .getPO(getPA_Goal_ID(), get_TrxName()); } /** Set Goal. @param PA_Goal_ID diff --git a/base/src/org/compiere/model/X_PA_Goal.java b/base/src/org/compiere/model/X_PA_Goal.java index 064321e684..c37af8a43d 100644 --- a/base/src/org/compiere/model/X_PA_Goal.java +++ b/base/src/org/compiere/model/X_PA_Goal.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -87,21 +85,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -126,21 +113,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -455,21 +431,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent return (String)get_Value(COLUMNNAME_Note); } - public I_PA_ColorSchema getPA_ColorSchema() throws RuntimeException + public I_PA_ColorSchema getPA_ColorSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ColorSchema.Table_Name); - I_PA_ColorSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ColorSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ColorSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ColorSchema)MTable.get(getCtx(), I_PA_ColorSchema.Table_Name) + .getPO(getPA_ColorSchema_ID(), get_TrxName()); } /** Set Color Schema. @param PA_ColorSchema_ID @@ -517,6 +482,11 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent return ii.intValue(); } + public I_PA_Goal getPA_GoalParent() throws RuntimeException + { + return (I_PA_Goal)MTable.get(getCtx(), I_PA_Goal.Table_Name) + .getPO(getPA_GoalParent_ID(), get_TrxName()); } + /** Set Parent Goal. @param PA_GoalParent_ID Parent Goal @@ -540,21 +510,10 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent return ii.intValue(); } - public I_PA_Measure getPA_Measure() throws RuntimeException + public I_PA_Measure getPA_Measure() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Measure.Table_Name); - I_PA_Measure result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Measure)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Measure_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Measure)MTable.get(getCtx(), I_PA_Measure.Table_Name) + .getPO(getPA_Measure_ID(), get_TrxName()); } /** Set Measure. @param PA_Measure_ID diff --git a/base/src/org/compiere/model/X_PA_GoalRestriction.java b/base/src/org/compiere/model/X_PA_GoalRestriction.java index 39ff4cce4e..407d0f7895 100644 --- a/base/src/org/compiere/model/X_PA_GoalRestriction.java +++ b/base/src/org/compiere/model/X_PA_GoalRestriction.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_GoalRestriction @@ -75,21 +73,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ return sb.toString(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -114,21 +101,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -183,21 +159,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ return (String)get_Value(COLUMNNAME_GoalRestrictionType); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID @@ -222,21 +187,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -309,21 +263,10 @@ public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_ return ii.intValue(); } - public I_PA_Goal getPA_Goal() throws RuntimeException + public I_PA_Goal getPA_Goal() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Goal.Table_Name); - I_PA_Goal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Goal)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Goal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Goal)MTable.get(getCtx(), I_PA_Goal.Table_Name) + .getPO(getPA_Goal_ID(), get_TrxName()); } /** Set Goal. @param PA_Goal_ID diff --git a/base/src/org/compiere/model/X_PA_Hierarchy.java b/base/src/org/compiere/model/X_PA_Hierarchy.java index c17c899958..87a237c677 100644 --- a/base/src/org/compiere/model/X_PA_Hierarchy.java +++ b/base/src/org/compiere/model/X_PA_Hierarchy.java @@ -79,6 +79,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return sb.toString(); } + public I_AD_Tree getAD_Tree_Account() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Account_ID(), get_TrxName()); } + /** Set Account Tree. @param AD_Tree_Account_ID Tree for Natural Account Tree @@ -102,6 +107,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Activity() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Activity_ID(), get_TrxName()); } + /** Set Activity Tree. @param AD_Tree_Activity_ID Tree to determine activity hierarchy @@ -125,6 +135,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_BPartner() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_BPartner_ID(), get_TrxName()); } + /** Set BPartner Tree. @param AD_Tree_BPartner_ID Tree to determine business partner hierarchy @@ -148,6 +163,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Campaign() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Campaign_ID(), get_TrxName()); } + /** Set Campaign Tree. @param AD_Tree_Campaign_ID Tree to determine marketing campaign hierarchy @@ -171,6 +191,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Org() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Org_ID(), get_TrxName()); } + /** Set Organization Tree. @param AD_Tree_Org_ID Tree to determine organizational hierarchy @@ -194,6 +219,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Product() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Product_ID(), get_TrxName()); } + /** Set Product Tree. @param AD_Tree_Product_ID Tree to determine product hierarchy @@ -217,6 +247,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_Project() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_Project_ID(), get_TrxName()); } + /** Set Project Tree. @param AD_Tree_Project_ID Tree to determine project hierarchy @@ -240,6 +275,11 @@ public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent return ii.intValue(); } + public I_AD_Tree getAD_Tree_SalesRegion() throws RuntimeException + { + return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) + .getPO(getAD_Tree_SalesRegion_ID(), get_TrxName()); } + /** Set Sales Region Tree. @param AD_Tree_SalesRegion_ID Tree to determine sales regional hierarchy diff --git a/base/src/org/compiere/model/X_PA_Measure.java b/base/src/org/compiere/model/X_PA_Measure.java index 352cc1c363..3d00e67010 100644 --- a/base/src/org/compiere/model/X_PA_Measure.java +++ b/base/src/org/compiere/model/X_PA_Measure.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return sb.toString(); } - public I_C_ProjectType getC_ProjectType() throws RuntimeException + public I_C_ProjectType getC_ProjectType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectType.Table_Name); - I_C_ProjectType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectType)MTable.get(getCtx(), I_C_ProjectType.Table_Name) + .getPO(getC_ProjectType_ID(), get_TrxName()); } /** Set Project Type. @param C_ProjectType_ID @@ -272,21 +259,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return new KeyNamePair(get_ID(), getName()); } - public I_PA_Benchmark getPA_Benchmark() throws RuntimeException + public I_PA_Benchmark getPA_Benchmark() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Benchmark.Table_Name); - I_PA_Benchmark result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Benchmark)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Benchmark_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Benchmark)MTable.get(getCtx(), I_PA_Benchmark.Table_Name) + .getPO(getPA_Benchmark_ID(), get_TrxName()); } /** Set Benchmark. @param PA_Benchmark_ID @@ -311,21 +287,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return ii.intValue(); } - public I_PA_Hierarchy getPA_Hierarchy() throws RuntimeException + public I_PA_Hierarchy getPA_Hierarchy() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Hierarchy.Table_Name); - I_PA_Hierarchy result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Hierarchy)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Hierarchy_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Hierarchy)MTable.get(getCtx(), I_PA_Hierarchy.Table_Name) + .getPO(getPA_Hierarchy_ID(), get_TrxName()); } /** Set Reporting Hierarchy. @param PA_Hierarchy_ID @@ -373,21 +338,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return ii.intValue(); } - public I_PA_MeasureCalc getPA_MeasureCalc() throws RuntimeException + public I_PA_MeasureCalc getPA_MeasureCalc() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_MeasureCalc.Table_Name); - I_PA_MeasureCalc result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_MeasureCalc)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_MeasureCalc_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_MeasureCalc)MTable.get(getCtx(), I_PA_MeasureCalc.Table_Name) + .getPO(getPA_MeasureCalc_ID(), get_TrxName()); } /** Set Measure Calculation. @param PA_MeasureCalc_ID @@ -412,21 +366,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return ii.intValue(); } - public I_PA_Ratio getPA_Ratio() throws RuntimeException + public I_PA_Ratio getPA_Ratio() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Ratio.Table_Name); - I_PA_Ratio result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Ratio)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Ratio_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Ratio)MTable.get(getCtx(), I_PA_Ratio.Table_Name) + .getPO(getPA_Ratio_ID(), get_TrxName()); } /** Set Ratio. @param PA_Ratio_ID @@ -451,21 +394,10 @@ public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent return ii.intValue(); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_PA_MeasureCalc.java b/base/src/org/compiere/model/X_PA_MeasureCalc.java index 790d835dcb..1aaad091f2 100644 --- a/base/src/org/compiere/model/X_PA_MeasureCalc.java +++ b/base/src/org/compiere/model/X_PA_MeasureCalc.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_MeasureCalc @@ -85,21 +83,10 @@ public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persiste return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID diff --git a/base/src/org/compiere/model/X_PA_Ratio.java b/base/src/org/compiere/model/X_PA_Ratio.java index 052f5a1eda..4908196000 100644 --- a/base/src/org/compiere/model/X_PA_Ratio.java +++ b/base/src/org/compiere/model/X_PA_Ratio.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_Ratio @@ -74,21 +72,10 @@ public class X_PA_Ratio extends PO implements I_PA_Ratio, I_Persistent return sb.toString(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID diff --git a/base/src/org/compiere/model/X_PA_RatioElement.java b/base/src/org/compiere/model/X_PA_RatioElement.java index 59d2331469..8ced55e1e7 100644 --- a/base/src/org/compiere/model/X_PA_RatioElement.java +++ b/base/src/org/compiere/model/X_PA_RatioElement.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -80,6 +78,11 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis return sb.toString(); } + public I_C_ElementValue getAccount() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getAccount_ID(), get_TrxName()); } + /** Set Account. @param Account_ID Account used @@ -157,21 +160,10 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis return (String)get_Value(COLUMNNAME_Name); } - public I_PA_MeasureCalc getPA_MeasureCalc() throws RuntimeException + public I_PA_MeasureCalc getPA_MeasureCalc() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_MeasureCalc.Table_Name); - I_PA_MeasureCalc result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_MeasureCalc)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_MeasureCalc_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_MeasureCalc)MTable.get(getCtx(), I_PA_MeasureCalc.Table_Name) + .getPO(getPA_MeasureCalc_ID(), get_TrxName()); } /** Set Measure Calculation. @param PA_MeasureCalc_ID @@ -196,21 +188,10 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis return ii.intValue(); } - public I_PA_Ratio getPA_Ratio() throws RuntimeException + public I_PA_Ratio getPA_Ratio() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_Ratio.Table_Name); - I_PA_Ratio result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_Ratio)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Ratio_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_Ratio)MTable.get(getCtx(), I_PA_Ratio.Table_Name) + .getPO(getPA_Ratio_ID(), get_TrxName()); } /** Set Ratio. @param PA_Ratio_ID @@ -258,6 +239,11 @@ public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persis return ii.intValue(); } + public I_PA_Ratio getPA_RatioUsed() throws RuntimeException + { + return (I_PA_Ratio)MTable.get(getCtx(), I_PA_Ratio.Table_Name) + .getPO(getPA_RatioUsed_ID(), get_TrxName()); } + /** Set Ratio Used. @param PA_RatioUsed_ID Performace Ratio Used diff --git a/base/src/org/compiere/model/X_PA_Report.java b/base/src/org/compiere/model/X_PA_Report.java index aae7d3086b..2485a00bc3 100644 --- a/base/src/org/compiere/model/X_PA_Report.java +++ b/base/src/org/compiere/model/X_PA_Report.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_Report @@ -80,21 +78,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return sb.toString(); } - public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); - I_AD_PrintFormat result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); } /** Set Print Format. @param AD_PrintFormat_ID @@ -119,21 +106,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return ii.intValue(); } - public I_C_AcctSchema getC_AcctSchema() throws RuntimeException + public I_C_AcctSchema getC_AcctSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); - I_C_AcctSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_AcctSchema)MTable.get(getCtx(), I_C_AcctSchema.Table_Name) + .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID @@ -158,21 +134,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return ii.intValue(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID @@ -214,6 +179,11 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return (String)get_Value(COLUMNNAME_Description); } + public I_AD_Process getJasperProcess() throws RuntimeException + { + return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name) + .getPO(getJasperProcess_ID(), get_TrxName()); } + /** Set Jasper Process. @param JasperProcess_ID The Jasper Process used by the printengine if any process defined @@ -347,21 +317,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return ii.intValue(); } - public I_PA_ReportColumnSet getPA_ReportColumnSet() throws RuntimeException + public I_PA_ReportColumnSet getPA_ReportColumnSet() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportColumnSet.Table_Name); - I_PA_ReportColumnSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportColumnSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportColumnSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportColumnSet)MTable.get(getCtx(), I_PA_ReportColumnSet.Table_Name) + .getPO(getPA_ReportColumnSet_ID(), get_TrxName()); } /** Set Report Column Set. @param PA_ReportColumnSet_ID @@ -386,6 +345,11 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return ii.intValue(); } + public I_PA_ReportCube getPA_ReportCube() throws RuntimeException + { + return (I_PA_ReportCube)MTable.get(getCtx(), I_PA_ReportCube.Table_Name) + .getPO(getPA_ReportCube_ID(), get_TrxName()); } + /** Set Report Cube. @param PA_ReportCube_ID Define reporting cube for pre-calculation of summary accounting data. @@ -409,21 +373,10 @@ public class X_PA_Report extends PO implements I_PA_Report, I_Persistent return ii.intValue(); } - public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException + public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLineSet.Table_Name); - I_PA_ReportLineSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLineSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLineSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLineSet)MTable.get(getCtx(), I_PA_ReportLineSet.Table_Name) + .getPO(getPA_ReportLineSet_ID(), get_TrxName()); } /** Set Report Line Set. @param PA_ReportLineSet_ID 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 1c603ff45e..48a6cef9c3 100644 --- a/base/src/org/compiere/model/X_PA_ReportColumn.java +++ b/base/src/org/compiere/model/X_PA_ReportColumn.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -177,21 +175,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return (String)get_Value(COLUMNNAME_AmountType); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -216,21 +203,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -255,21 +231,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -294,21 +259,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -333,21 +287,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - public I_C_ElementValue getC_ElementValue() throws RuntimeException + public I_C_ElementValue getC_ElementValue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ElementValue.Table_Name); - I_C_ElementValue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ElementValue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ElementValue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID @@ -372,6 +315,11 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -395,21 +343,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -434,21 +371,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -654,21 +580,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return (String)get_Value(COLUMNNAME_FormatPattern); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -1029,21 +944,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -1093,6 +997,11 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return new KeyNamePair(get_ID(), getName()); } + public I_PA_ReportColumn getOper_1() throws RuntimeException + { + return (I_PA_ReportColumn)MTable.get(getCtx(), I_PA_ReportColumn.Table_Name) + .getPO(getOper_1_ID(), get_TrxName()); } + /** Set Operand 1. @param Oper_1_ID First operand for calculation @@ -1116,6 +1025,11 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } + public I_PA_ReportColumn getOper_2() throws RuntimeException + { + return (I_PA_ReportColumn)MTable.get(getCtx(), I_PA_ReportColumn.Table_Name) + .getPO(getOper_2_ID(), get_TrxName()); } + /** Set Operand 2. @param Oper_2_ID Second operand for calculation @@ -1185,21 +1099,10 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis return ii.intValue(); } - public I_PA_ReportColumnSet getPA_ReportColumnSet() throws RuntimeException + public I_PA_ReportColumnSet getPA_ReportColumnSet() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportColumnSet.Table_Name); - I_PA_ReportColumnSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportColumnSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportColumnSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportColumnSet)MTable.get(getCtx(), I_PA_ReportColumnSet.Table_Name) + .getPO(getPA_ReportColumnSet_ID(), get_TrxName()); } /** Set Report Column Set. @param PA_ReportColumnSet_ID diff --git a/base/src/org/compiere/model/X_PA_ReportCube.java b/base/src/org/compiere/model/X_PA_ReportCube.java index 005a005931..d80848ae72 100644 --- a/base/src/org/compiere/model/X_PA_ReportCube.java +++ b/base/src/org/compiere/model/X_PA_ReportCube.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for PA_ReportCube * @author Adempiere (generated) @@ -76,21 +74,10 @@ public class X_PA_ReportCube extends PO implements I_PA_ReportCube, I_Persistent return sb.toString(); } - public I_C_Calendar getC_Calendar() throws RuntimeException + public I_C_Calendar getC_Calendar() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Calendar.Table_Name); - I_C_Calendar result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Calendar)MTable.get(getCtx(), I_C_Calendar.Table_Name) + .getPO(getC_Calendar_ID(), get_TrxName()); } /** Set Calendar. @param C_Calendar_ID diff --git a/base/src/org/compiere/model/X_PA_ReportLine.java b/base/src/org/compiere/model/X_PA_ReportLine.java index d1dc9a55ef..0b356ce66d 100644 --- a/base/src/org/compiere/model/X_PA_ReportLine.java +++ b/base/src/org/compiere/model/X_PA_ReportLine.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_ReportLine @@ -167,21 +165,10 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent return (String)get_Value(COLUMNNAME_Description); } - public I_GL_Budget getGL_Budget() throws RuntimeException + public I_GL_Budget getGL_Budget() throws RuntimeException { - Class clazz = MTable.getClass(I_GL_Budget.Table_Name); - I_GL_Budget result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_GL_Budget)MTable.get(getCtx(), I_GL_Budget.Table_Name) + .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID @@ -276,6 +263,11 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_PA_ReportLine getOper_1() throws RuntimeException + { + return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name) + .getPO(getOper_1_ID(), get_TrxName()); } + /** Set Operand 1. @param Oper_1_ID First operand for calculation @@ -299,6 +291,11 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent return ii.intValue(); } + public I_PA_ReportLine getOper_2() throws RuntimeException + { + return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name) + .getPO(getOper_2_ID(), get_TrxName()); } + /** Set Operand 2. @param Oper_2_ID Second operand for calculation @@ -342,21 +339,10 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent return ii.intValue(); } - public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException + public I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLineSet.Table_Name); - I_PA_ReportLineSet result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLineSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLineSet_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLineSet)MTable.get(getCtx(), I_PA_ReportLineSet.Table_Name) + .getPO(getPA_ReportLineSet_ID(), get_TrxName()); } /** Set Report Line Set. @param PA_ReportLineSet_ID 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 84fc75cfc3..1814d91f61 100644 --- a/base/src/org/compiere/model/X_PA_ReportSource.java +++ b/base/src/org/compiere/model/X_PA_ReportSource.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for PA_ReportSource @@ -121,21 +119,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -160,21 +147,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -199,21 +175,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -238,6 +203,11 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } + public I_C_ElementValue getC_ElementValue() throws RuntimeException + { + return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) + .getPO(getC_ElementValue_ID(), get_TrxName()); } + /** Set Account Element. @param C_ElementValue_ID Account Element @@ -261,6 +231,11 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -284,21 +259,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -323,21 +287,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - public I_C_SalesRegion getC_SalesRegion() throws RuntimeException + public I_C_SalesRegion getC_SalesRegion() throws RuntimeException { - Class clazz = MTable.getClass(I_C_SalesRegion.Table_Name); - I_C_SalesRegion result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_SalesRegion)MTable.get(getCtx(), I_C_SalesRegion.Table_Name) + .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID @@ -729,21 +682,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return false; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -791,21 +733,10 @@ public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persis return ii.intValue(); } - public I_PA_ReportLine getPA_ReportLine() throws RuntimeException + public I_PA_ReportLine getPA_ReportLine() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLine.Table_Name); - I_PA_ReportLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name) + .getPO(getPA_ReportLine_ID(), get_TrxName()); } /** Set Report Line. @param PA_ReportLine_ID Report Line */ 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 8adb304863..182d06c0d0 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Goal.java +++ b/base/src/org/compiere/model/X_PA_SLA_Goal.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -81,21 +79,10 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -236,21 +223,10 @@ public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent return new KeyNamePair(get_ID(), getName()); } - public I_PA_SLA_Criteria getPA_SLA_Criteria() throws RuntimeException + public I_PA_SLA_Criteria getPA_SLA_Criteria() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_SLA_Criteria.Table_Name); - I_PA_SLA_Criteria result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_SLA_Criteria)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_SLA_Criteria_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_SLA_Criteria)MTable.get(getCtx(), I_PA_SLA_Criteria.Table_Name) + .getPO(getPA_SLA_Criteria_ID(), get_TrxName()); } /** Set SLA Criteria. @param PA_SLA_Criteria_ID 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 4c47ca7792..9139801e82 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Measure.java +++ b/base/src/org/compiere/model/X_PA_SLA_Measure.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -79,21 +77,10 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste return sb.toString(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -180,21 +167,10 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste return bd; } - public I_PA_SLA_Goal getPA_SLA_Goal() throws RuntimeException + public I_PA_SLA_Goal getPA_SLA_Goal() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_SLA_Goal.Table_Name); - I_PA_SLA_Goal result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_SLA_Goal)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_SLA_Goal_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_SLA_Goal)MTable.get(getCtx(), I_PA_SLA_Goal.Table_Name) + .getPO(getPA_SLA_Goal_ID(), get_TrxName()); } /** Set SLA Goal. @param PA_SLA_Goal_ID diff --git a/base/src/org/compiere/model/X_RV_BPartner.java b/base/src/org/compiere/model/X_RV_BPartner.java index bc97bd3e9c..70705f29ba 100644 --- a/base/src/org/compiere/model/X_RV_BPartner.java +++ b/base/src/org/compiere/model/X_RV_BPartner.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for RV_BPartner @@ -197,21 +195,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -304,6 +291,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return (Timestamp)get_Value(COLUMNNAME_Birthday); } + public I_C_BPartner getBPartner_Parent() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getBPartner_Parent_ID(), get_TrxName()); } + /** Set Partner Parent. @param BPartner_Parent_ID Business Partner Parent @@ -327,6 +319,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } + public I_C_Greeting getBPContactGreet() throws RuntimeException + { + return (I_C_Greeting)MTable.get(getCtx(), I_C_Greeting.Table_Name) + .getPO(getBPContactGreeting(), get_TrxName()); } + /** Set BP Contact Greeting. @param BPContactGreeting Greeting for Business Partner Contact @@ -347,21 +344,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -409,21 +395,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -448,21 +423,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_Country getC_Country() throws RuntimeException + public I_C_Country getC_Country() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Country.Table_Name); - I_C_Country result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Country)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Country_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Country)MTable.get(getCtx(), I_C_Country.Table_Name) + .getPO(getC_Country_ID(), get_TrxName()); } /** Set Country. @param C_Country_ID @@ -487,21 +451,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_Dunning getC_Dunning() throws RuntimeException + public I_C_Dunning getC_Dunning() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Dunning.Table_Name); - I_C_Dunning result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Dunning)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Dunning_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Dunning)MTable.get(getCtx(), I_C_Dunning.Table_Name) + .getPO(getC_Dunning_ID(), get_TrxName()); } /** Set Dunning. @param C_Dunning_ID @@ -526,21 +479,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_Greeting getC_Greeting() throws RuntimeException + public I_C_Greeting getC_Greeting() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Greeting.Table_Name); - I_C_Greeting result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Greeting)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Greeting_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Greeting)MTable.get(getCtx(), I_C_Greeting.Table_Name) + .getPO(getC_Greeting_ID(), get_TrxName()); } /** Set Greeting. @param C_Greeting_ID @@ -565,21 +507,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_InvoiceSchedule getC_InvoiceSchedule() throws RuntimeException + public I_C_InvoiceSchedule getC_InvoiceSchedule() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceSchedule.Table_Name); - I_C_InvoiceSchedule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceSchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceSchedule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceSchedule)MTable.get(getCtx(), I_C_InvoiceSchedule.Table_Name) + .getPO(getC_InvoiceSchedule_ID(), get_TrxName()); } /** Set Invoice Schedule. @param C_InvoiceSchedule_ID @@ -604,21 +535,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -643,21 +563,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_C_Region getC_Region() throws RuntimeException + public I_C_Region getC_Region() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Region.Table_Name); - I_C_Region result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Region)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Region_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Region)MTable.get(getCtx(), I_C_Region.Table_Name) + .getPO(getC_Region_ID(), get_TrxName()); } /** Set Region. @param C_Region_ID @@ -1029,6 +938,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_FreightCostRule); } + public I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException + { + return (I_AD_PrintFormat)MTable.get(getCtx(), I_AD_PrintFormat.Table_Name) + .getPO(getInvoice_PrintFormat_ID(), get_TrxName()); } + /** Set Invoice Print Format. @param Invoice_PrintFormat_ID Print Format for printing Invoices @@ -1351,21 +1265,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return false; } - public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException + public I_M_DiscountSchema getM_DiscountSchema() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DiscountSchema.Table_Name); - I_M_DiscountSchema result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DiscountSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DiscountSchema_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getM_DiscountSchema_ID(), get_TrxName()); } /** Set Discount Schema. @param M_DiscountSchema_ID @@ -1390,21 +1293,10 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -1630,6 +1522,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_Phone2); } + public I_M_DiscountSchema getPO_DiscountSchema() throws RuntimeException + { + return (I_M_DiscountSchema)MTable.get(getCtx(), I_M_DiscountSchema.Table_Name) + .getPO(getPO_DiscountSchema_ID(), get_TrxName()); } + /** Set PO Discount Schema. @param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage @@ -1653,6 +1550,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } + public I_C_PaymentTerm getPO_PaymentTerm() throws RuntimeException + { + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getPO_PaymentTerm_ID(), get_TrxName()); } + /** Set PO Payment Term. @param PO_PaymentTerm_ID Payment rules for a purchase order @@ -1676,6 +1578,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return ii.intValue(); } + public I_M_PriceList getPO_PriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getPO_PriceList_ID(), get_TrxName()); } + /** Set Purchase Pricelist. @param PO_PriceList_ID Price List used by this Business Partner @@ -1804,6 +1711,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_RegionName); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -2018,6 +1930,11 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_SOCreditStatus); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_RV_WarehousePrice.java b/base/src/org/compiere/model/X_RV_WarehousePrice.java index 6d762d4e4b..025d189290 100644 --- a/base/src/org/compiere/model/X_RV_WarehousePrice.java +++ b/base/src/org/compiere/model/X_RV_WarehousePrice.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for RV_WarehousePrice @@ -79,21 +77,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe return sb.toString(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -142,21 +129,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe return false; } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -181,21 +157,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -220,21 +185,10 @@ public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Pe return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_R_Category.java b/base/src/org/compiere/model/X_R_Category.java index 671d5771eb..9c3c8fc71f 100644 --- a/base/src/org/compiere/model/X_R_Category.java +++ b/base/src/org/compiere/model/X_R_Category.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_Category @@ -107,21 +105,10 @@ public class X_R_Category extends PO implements I_R_Category, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_R_CategoryUpdates.java b/base/src/org/compiere/model/X_R_CategoryUpdates.java index 62c1a72e47..765757567f 100644 --- a/base/src/org/compiere/model/X_R_CategoryUpdates.java +++ b/base/src/org/compiere/model/X_R_CategoryUpdates.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for R_CategoryUpdates * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Pe return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Pe return false; } - public I_R_Category getR_Category() throws RuntimeException + public I_R_Category getR_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Category.Table_Name); - I_R_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Category)MTable.get(getCtx(), I_R_Category.Table_Name) + .getPO(getR_Category_ID(), get_TrxName()); } /** Set Category. @param R_Category_ID diff --git a/base/src/org/compiere/model/X_R_ContactInterest.java b/base/src/org/compiere/model/X_R_ContactInterest.java index 65f9bd01ff..bf70866b17 100644 --- a/base/src/org/compiere/model/X_R_ContactInterest.java +++ b/base/src/org/compiere/model/X_R_ContactInterest.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_ContactInterest @@ -75,21 +73,10 @@ public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Pe return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -139,21 +126,10 @@ public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Pe return (Timestamp)get_Value(COLUMNNAME_OptOutDate); } - public I_R_InterestArea getR_InterestArea() throws RuntimeException + public I_R_InterestArea getR_InterestArea() throws RuntimeException { - Class clazz = MTable.getClass(I_R_InterestArea.Table_Name); - I_R_InterestArea result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_InterestArea)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_InterestArea_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_InterestArea)MTable.get(getCtx(), I_R_InterestArea.Table_Name) + .getPO(getR_InterestArea_ID(), get_TrxName()); } /** Set Interest Area. @param R_InterestArea_ID diff --git a/base/src/org/compiere/model/X_R_Group.java b/base/src/org/compiere/model/X_R_Group.java index 374caa5242..6c44da3233 100644 --- a/base/src/org/compiere/model/X_R_Group.java +++ b/base/src/org/compiere/model/X_R_Group.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_Group @@ -107,21 +105,10 @@ public class X_R_Group extends PO implements I_R_Group, I_Persistent return (String)get_Value(COLUMNNAME_Help); } - public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException + public I_M_ChangeNotice getM_ChangeNotice() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ChangeNotice.Table_Name); - I_M_ChangeNotice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ChangeNotice)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeNotice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_ChangeNotice_ID(), get_TrxName()); } /** Set Change Notice. @param M_ChangeNotice_ID @@ -171,21 +158,10 @@ public class X_R_Group extends PO implements I_R_Group, I_Persistent return new KeyNamePair(get_ID(), getName()); } - public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException + public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Product_BOM.Table_Name); - org.eevolution.model.I_PP_Product_BOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Product_BOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Product_BOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (org.eevolution.model.I_PP_Product_BOM)MTable.get(getCtx(), org.eevolution.model.I_PP_Product_BOM.Table_Name) + .getPO(getPP_Product_BOM_ID(), get_TrxName()); } /** Set BOM & Formula. @param PP_Product_BOM_ID diff --git a/base/src/org/compiere/model/X_R_GroupUpdates.java b/base/src/org/compiere/model/X_R_GroupUpdates.java index 3427035c67..4700cfeb2d 100644 --- a/base/src/org/compiere/model/X_R_GroupUpdates.java +++ b/base/src/org/compiere/model/X_R_GroupUpdates.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for R_GroupUpdates * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persiste return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persiste return false; } - public I_R_Group getR_Group() throws RuntimeException + public I_R_Group getR_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Group.Table_Name); - I_R_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Group)MTable.get(getCtx(), I_R_Group.Table_Name) + .getPO(getR_Group_ID(), get_TrxName()); } /** Set Group. @param R_Group_ID diff --git a/base/src/org/compiere/model/X_R_IssueKnown.java b/base/src/org/compiere/model/X_R_IssueKnown.java index b3c21f2a99..9bc523e8a8 100644 --- a/base/src/org/compiere/model/X_R_IssueKnown.java +++ b/base/src/org/compiere/model/X_R_IssueKnown.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_IssueKnown @@ -206,21 +204,10 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent return ii.intValue(); } - public I_R_IssueRecommendation getR_IssueRecommendation() throws RuntimeException + public I_R_IssueRecommendation getR_IssueRecommendation() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueRecommendation.Table_Name); - I_R_IssueRecommendation result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueRecommendation)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueRecommendation_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueRecommendation)MTable.get(getCtx(), I_R_IssueRecommendation.Table_Name) + .getPO(getR_IssueRecommendation_ID(), get_TrxName()); } /** Set Issue Recommendation. @param R_IssueRecommendation_ID @@ -245,21 +232,10 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent return ii.intValue(); } - public I_R_IssueStatus getR_IssueStatus() throws RuntimeException + public I_R_IssueStatus getR_IssueStatus() throws RuntimeException { - Class clazz = MTable.getClass(I_R_IssueStatus.Table_Name); - I_R_IssueStatus result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_IssueStatus)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_IssueStatus_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_IssueStatus)MTable.get(getCtx(), I_R_IssueStatus.Table_Name) + .getPO(getR_IssueStatus_ID(), get_TrxName()); } /** Set Issue Status. @param R_IssueStatus_ID @@ -284,21 +260,10 @@ public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent return ii.intValue(); } - public I_R_Request getR_Request() throws RuntimeException + public I_R_Request getR_Request() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Request.Table_Name); - I_R_Request result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Request)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Request_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID diff --git a/base/src/org/compiere/model/X_R_IssueProject.java b/base/src/org/compiere/model/X_R_IssueProject.java index 1287ffa274..9037232916 100644 --- a/base/src/org/compiere/model/X_R_IssueProject.java +++ b/base/src/org/compiere/model/X_R_IssueProject.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_IssueProject @@ -74,21 +72,10 @@ public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persiste return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -113,21 +100,10 @@ public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persiste return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID diff --git a/base/src/org/compiere/model/X_R_IssueSystem.java b/base/src/org/compiere/model/X_R_IssueSystem.java index d74665e9aa..4a3c3cb60b 100644 --- a/base/src/org/compiere/model/X_R_IssueSystem.java +++ b/base/src/org/compiere/model/X_R_IssueSystem.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_IssueSystem @@ -74,21 +72,10 @@ public class X_R_IssueSystem extends PO implements I_R_IssueSystem, I_Persistent return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID diff --git a/base/src/org/compiere/model/X_R_IssueUser.java b/base/src/org/compiere/model/X_R_IssueUser.java index 36f891be94..02f47cf9e7 100644 --- a/base/src/org/compiere/model/X_R_IssueUser.java +++ b/base/src/org/compiere/model/X_R_IssueUser.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_IssueUser @@ -73,21 +71,10 @@ public class X_R_IssueUser extends PO implements I_R_IssueUser, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID diff --git a/base/src/org/compiere/model/X_R_Request.java b/base/src/org/compiere/model/X_R_Request.java index 5138e4133a..3a1914b783 100644 --- a/base/src/org/compiere/model/X_R_Request.java +++ b/base/src/org/compiere/model/X_R_Request.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -92,21 +90,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -131,21 +118,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -170,21 +146,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_AD_Table getAD_Table() throws RuntimeException + public I_AD_Table getAD_Table() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Table.Table_Name); - I_AD_Table result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name) + .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID @@ -209,21 +174,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -248,21 +202,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -287,21 +230,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -326,21 +258,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -365,21 +286,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -404,6 +314,11 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } + public I_C_Invoice getC_InvoiceRequest() throws RuntimeException + { + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_InvoiceRequest_ID(), get_TrxName()); } + /** Set Request Invoice. @param C_InvoiceRequest_ID The generated invoice for this request @@ -427,21 +342,10 @@ public class X_R_Request extends PO implements I_R_Request, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -466,21 +370,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -505,21 +398,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -859,21 +741,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return (String)get_Value(COLUMNNAME_LastResult); } - public I_M_ChangeRequest getM_ChangeRequest() throws RuntimeException + public I_M_ChangeRequest getM_ChangeRequest() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ChangeRequest.Table_Name); - I_M_ChangeRequest result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ChangeRequest)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeRequest_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ChangeRequest)MTable.get(getCtx(), I_M_ChangeRequest.Table_Name) + .getPO(getM_ChangeRequest_ID(), get_TrxName()); } /** Set Change Request. @param M_ChangeRequest_ID @@ -898,6 +769,11 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } + public I_M_ChangeNotice getM_FixChangeNotice() throws RuntimeException + { + return (I_M_ChangeNotice)MTable.get(getCtx(), I_M_ChangeNotice.Table_Name) + .getPO(getM_FixChangeNotice_ID(), get_TrxName()); } + /** Set Fixed in. @param M_FixChangeNotice_ID Fixed in Change Notice @@ -921,21 +797,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -960,21 +825,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -999,6 +853,11 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } + public I_M_Product getM_ProductSpent() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductSpent_ID(), get_TrxName()); } + /** Set Product Used. @param M_ProductSpent_ID Product/Resource/Service used in Request @@ -1022,21 +881,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getM_RMA_ID(), get_TrxName()); } /** Set RMA. @param M_RMA_ID @@ -1229,21 +1077,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return bd; } - public I_R_Category getR_Category() throws RuntimeException + public I_R_Category getR_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Category.Table_Name); - I_R_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Category)MTable.get(getCtx(), I_R_Category.Table_Name) + .getPO(getR_Category_ID(), get_TrxName()); } /** Set Category. @param R_Category_ID @@ -1268,21 +1105,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_Group getR_Group() throws RuntimeException + public I_R_Group getR_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Group.Table_Name); - I_R_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Group)MTable.get(getCtx(), I_R_Group.Table_Name) + .getPO(getR_Group_ID(), get_TrxName()); } /** Set Group. @param R_Group_ID @@ -1307,21 +1133,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_MailText getR_MailText() throws RuntimeException + public I_R_MailText getR_MailText() throws RuntimeException { - Class clazz = MTable.getClass(I_R_MailText.Table_Name); - I_R_MailText result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name) + .getPO(getR_MailText_ID(), get_TrxName()); } /** Set Mail Template. @param R_MailText_ID @@ -1369,6 +1184,11 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } + public I_R_Request getR_RequestRelated() throws RuntimeException + { + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_RequestRelated_ID(), get_TrxName()); } + /** Set Related Request. @param R_RequestRelated_ID Related Request (Master Issue, ..) @@ -1392,21 +1212,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID @@ -1431,21 +1240,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_Resolution getR_Resolution() throws RuntimeException + public I_R_Resolution getR_Resolution() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Resolution.Table_Name); - I_R_Resolution result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Resolution)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Resolution_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Resolution)MTable.get(getCtx(), I_R_Resolution.Table_Name) + .getPO(getR_Resolution_ID(), get_TrxName()); } /** Set Resolution. @param R_Resolution_ID @@ -1470,21 +1268,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_StandardResponse getR_StandardResponse() throws RuntimeException + public I_R_StandardResponse getR_StandardResponse() throws RuntimeException { - Class clazz = MTable.getClass(I_R_StandardResponse.Table_Name); - I_R_StandardResponse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_StandardResponse)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_StandardResponse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_StandardResponse)MTable.get(getCtx(), I_R_StandardResponse.Table_Name) + .getPO(getR_StandardResponse_ID(), get_TrxName()); } /** Set Standard Response. @param R_StandardResponse_ID @@ -1509,21 +1296,10 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return ii.intValue(); } - public I_R_Status getR_Status() throws RuntimeException + public I_R_Status getR_Status() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Status.Table_Name); - I_R_Status result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Status)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Status_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Status)MTable.get(getCtx(), I_R_Status.Table_Name) + .getPO(getR_Status_ID(), get_TrxName()); } /** Set Status. @param R_Status_ID @@ -1608,6 +1384,11 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent return (String)get_Value(COLUMNNAME_Result); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_R_RequestAction.java b/base/src/org/compiere/model/X_R_RequestAction.java index 60b57e83e6..62a968e494 100644 --- a/base/src/org/compiere/model/X_R_RequestAction.java +++ b/base/src/org/compiere/model/X_R_RequestAction.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for R_RequestAction @@ -75,21 +73,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return sb.toString(); } - public I_A_Asset getA_Asset() throws RuntimeException + public I_A_Asset getA_Asset() throws RuntimeException { - Class clazz = MTable.getClass(I_A_Asset.Table_Name); - I_A_Asset result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_A_Asset)MTable.get(getCtx(), I_A_Asset.Table_Name) + .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID @@ -114,21 +101,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -153,21 +129,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -192,21 +157,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -231,21 +185,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -270,21 +213,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -309,21 +241,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getC_Order_ID(), get_TrxName()); } /** Set Order. @param C_Order_ID @@ -348,21 +269,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -387,21 +297,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -594,21 +493,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return (String)get_Value(COLUMNNAME_IsSelfService); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -633,21 +521,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -672,6 +549,11 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } + public I_M_Product getM_ProductSpent() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductSpent_ID(), get_TrxName()); } + /** Set Product Used. @param M_ProductSpent_ID Product/Resource/Service used in Request @@ -695,21 +577,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_RMA)MTable.get(getCtx(), I_M_RMA.Table_Name) + .getPO(getM_RMA_ID(), get_TrxName()); } /** Set RMA. @param M_RMA_ID @@ -871,21 +742,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return bd; } - public I_R_Category getR_Category() throws RuntimeException + public I_R_Category getR_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Category.Table_Name); - I_R_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Category)MTable.get(getCtx(), I_R_Category.Table_Name) + .getPO(getR_Category_ID(), get_TrxName()); } /** Set Category. @param R_Category_ID @@ -910,21 +770,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_R_Group getR_Group() throws RuntimeException + public I_R_Group getR_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Group.Table_Name); - I_R_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Group)MTable.get(getCtx(), I_R_Group.Table_Name) + .getPO(getR_Group_ID(), get_TrxName()); } /** Set Group. @param R_Group_ID @@ -949,21 +798,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_R_Request getR_Request() throws RuntimeException + public I_R_Request getR_Request() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Request.Table_Name); - I_R_Request result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Request)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Request_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID @@ -1011,21 +849,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID @@ -1050,21 +877,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_R_Resolution getR_Resolution() throws RuntimeException + public I_R_Resolution getR_Resolution() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Resolution.Table_Name); - I_R_Resolution result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Resolution)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Resolution_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Resolution)MTable.get(getCtx(), I_R_Resolution.Table_Name) + .getPO(getR_Resolution_ID(), get_TrxName()); } /** Set Resolution. @param R_Resolution_ID @@ -1089,21 +905,10 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } - public I_R_Status getR_Status() throws RuntimeException + public I_R_Status getR_Status() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Status.Table_Name); - I_R_Status result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Status)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Status_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Status)MTable.get(getCtx(), I_R_Status.Table_Name) + .getPO(getR_Status_ID(), get_TrxName()); } /** Set Status. @param R_Status_ID @@ -1128,6 +933,11 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis return ii.intValue(); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent diff --git a/base/src/org/compiere/model/X_R_RequestProcessor.java b/base/src/org/compiere/model/X_R_RequestProcessor.java index 082ebe5956..15f5abaccd 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_RequestProcessor @@ -334,21 +332,10 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ return ii.intValue(); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID @@ -393,6 +380,11 @@ public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_ return ii.intValue(); } + public I_AD_User getSupervisor() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSupervisor_ID(), get_TrxName()); } + /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval diff --git a/base/src/org/compiere/model/X_R_RequestProcessorLog.java b/base/src/org/compiere/model/X_R_RequestProcessorLog.java index 4cc3190742..51f987345a 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessorLog.java +++ b/base/src/org/compiere/model/X_R_RequestProcessorLog.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for R_RequestProcessorLog * @author Adempiere (generated) @@ -131,21 +129,10 @@ public class X_R_RequestProcessorLog extends PO implements I_R_RequestProcessorL return false; } - public I_R_RequestProcessor getR_RequestProcessor() throws RuntimeException + public I_R_RequestProcessor getR_RequestProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestProcessor.Table_Name); - I_R_RequestProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestProcessor)MTable.get(getCtx(), I_R_RequestProcessor.Table_Name) + .getPO(getR_RequestProcessor_ID(), get_TrxName()); } /** Set Request Processor. @param R_RequestProcessor_ID 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 fa59efc0b7..9eee7a5c7c 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_RequestProcessor_Route @@ -75,21 +73,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -131,21 +118,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess return (String)get_Value(COLUMNNAME_Keyword); } - public I_R_RequestProcessor getR_RequestProcessor() throws RuntimeException + public I_R_RequestProcessor getR_RequestProcessor() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestProcessor.Table_Name); - I_R_RequestProcessor result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestProcessor_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestProcessor)MTable.get(getCtx(), I_R_RequestProcessor.Table_Name) + .getPO(getR_RequestProcessor_ID(), get_TrxName()); } /** Set Request Processor. @param R_RequestProcessor_ID @@ -193,21 +169,10 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess return ii.intValue(); } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_R_RequestType.java b/base/src/org/compiere/model/X_R_RequestType.java index 8a42c6c5b1..5843d2dd49 100644 --- a/base/src/org/compiere/model/X_R_RequestType.java +++ b/base/src/org/compiere/model/X_R_RequestType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_RequestType @@ -413,21 +411,10 @@ public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent return ii.intValue(); } - public I_R_StatusCategory getR_StatusCategory() throws RuntimeException + public I_R_StatusCategory getR_StatusCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_R_StatusCategory.Table_Name); - I_R_StatusCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_StatusCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_StatusCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_StatusCategory)MTable.get(getCtx(), I_R_StatusCategory.Table_Name) + .getPO(getR_StatusCategory_ID(), get_TrxName()); } /** Set Status Category. @param R_StatusCategory_ID diff --git a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java index b687384680..58e4244456 100644 --- a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for R_RequestTypeUpdates * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates return false; } - public I_R_RequestType getR_RequestType() throws RuntimeException + public I_R_RequestType getR_RequestType() throws RuntimeException { - Class clazz = MTable.getClass(I_R_RequestType.Table_Name); - I_R_RequestType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_RequestType)MTable.get(getCtx(), I_R_RequestType.Table_Name) + .getPO(getR_RequestType_ID(), get_TrxName()); } /** Set Request Type. @param R_RequestType_ID diff --git a/base/src/org/compiere/model/X_R_RequestUpdate.java b/base/src/org/compiere/model/X_R_RequestUpdate.java index 60204d3aa1..8b3b426d2d 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdate.java +++ b/base/src/org/compiere/model/X_R_RequestUpdate.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -122,6 +120,11 @@ public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persis return (Timestamp)get_Value(COLUMNNAME_EndTime); } + public I_M_Product getM_ProductSpent() throws RuntimeException + { + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_ProductSpent_ID(), get_TrxName()); } + /** Set Product Used. @param M_ProductSpent_ID Product/Resource/Service used in Request @@ -185,21 +188,10 @@ public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persis return bd; } - public I_R_Request getR_Request() throws RuntimeException + public I_R_Request getR_Request() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Request.Table_Name); - I_R_Request result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Request)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Request_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID diff --git a/base/src/org/compiere/model/X_R_RequestUpdates.java b/base/src/org/compiere/model/X_R_RequestUpdates.java index f911d12e83..008d3a3021 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestUpdates.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for R_RequestUpdates * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Pers return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -136,21 +123,10 @@ public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Pers return false; } - public I_R_Request getR_Request() throws RuntimeException + public I_R_Request getR_Request() throws RuntimeException { - Class clazz = MTable.getClass(I_R_Request.Table_Name); - I_R_Request result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_Request)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Request_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) + .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID diff --git a/base/src/org/compiere/model/X_R_Status.java b/base/src/org/compiere/model/X_R_Status.java index 3b0c350f11..b62745bbb1 100644 --- a/base/src/org/compiere/model/X_R_Status.java +++ b/base/src/org/compiere/model/X_R_Status.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for R_Status @@ -254,6 +252,11 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent return (String)get_Value(COLUMNNAME_Name); } + public I_R_Status getNext_Status() throws RuntimeException + { + return (I_R_Status)MTable.get(getCtx(), I_R_Status.Table_Name) + .getPO(getNext_Status_ID(), get_TrxName()); } + /** Set Next Status. @param Next_Status_ID Move to next status automatically after timeout @@ -300,21 +303,10 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent return ii.intValue(); } - public I_R_StatusCategory getR_StatusCategory() throws RuntimeException + public I_R_StatusCategory getR_StatusCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_R_StatusCategory.Table_Name); - I_R_StatusCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_R_StatusCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_StatusCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_R_StatusCategory)MTable.get(getCtx(), I_R_StatusCategory.Table_Name) + .getPO(getR_StatusCategory_ID(), get_TrxName()); } /** Set Status Category. @param R_StatusCategory_ID @@ -387,6 +379,11 @@ public class X_R_Status extends PO implements I_R_Status, I_Persistent return ii.intValue(); } + public I_R_Status getUpdate_Status() throws RuntimeException + { + return (I_R_Status)MTable.get(getCtx(), I_R_Status.Table_Name) + .getPO(getUpdate_Status_ID(), get_TrxName()); } + /** Set Update Status. @param Update_Status_ID Automatically change the status after entry from web diff --git a/base/src/org/compiere/model/X_S_ExpenseType.java b/base/src/org/compiere/model/X_S_ExpenseType.java index d3f6f156a0..c691ae48a5 100644 --- a/base/src/org/compiere/model/X_S_ExpenseType.java +++ b/base/src/org/compiere/model/X_S_ExpenseType.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for S_ExpenseType @@ -78,21 +76,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent return sb.toString(); } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID @@ -117,21 +104,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -197,21 +173,10 @@ public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent return false; } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID diff --git a/base/src/org/compiere/model/X_S_Resource.java b/base/src/org/compiere/model/X_S_Resource.java index a87c8735da..0047a6ffcf 100644 --- a/base/src/org/compiere/model/X_S_Resource.java +++ b/base/src/org/compiere/model/X_S_Resource.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -82,21 +80,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -217,21 +204,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent return false; } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -383,21 +359,10 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent return ii.intValue(); } - public I_S_ResourceType getS_ResourceType() throws RuntimeException + public I_S_ResourceType getS_ResourceType() throws RuntimeException { - Class clazz = MTable.getClass(I_S_ResourceType.Table_Name); - I_S_ResourceType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_ResourceType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_ResourceType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_ResourceType)MTable.get(getCtx(), I_S_ResourceType.Table_Name) + .getPO(getS_ResourceType_ID(), get_TrxName()); } /** Set Resource Type. @param S_ResourceType_ID Resource Type */ diff --git a/base/src/org/compiere/model/X_S_ResourceAssignment.java b/base/src/org/compiere/model/X_S_ResourceAssignment.java index 0fd59b8100..7c8f5060fe 100644 --- a/base/src/org/compiere/model/X_S_ResourceAssignment.java +++ b/base/src/org/compiere/model/X_S_ResourceAssignment.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -191,21 +189,10 @@ public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment return bd; } - public I_S_Resource getS_Resource() throws RuntimeException + public I_S_Resource getS_Resource() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Resource.Table_Name); - I_S_Resource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name) + .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID diff --git a/base/src/org/compiere/model/X_S_ResourceType.java b/base/src/org/compiere/model/X_S_ResourceType.java index 2f5baf620c..7e7e14bf0e 100644 --- a/base/src/org/compiere/model/X_S_ResourceType.java +++ b/base/src/org/compiere/model/X_S_ResourceType.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for S_ResourceType @@ -119,21 +117,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste return false; } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID @@ -158,21 +145,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -303,21 +279,10 @@ public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persiste return false; } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID diff --git a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java index 9e692e9c10..9a815c3cb9 100644 --- a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java +++ b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for S_ResourceUnAvailable @@ -126,21 +124,10 @@ public class X_S_ResourceUnAvailable extends PO implements I_S_ResourceUnAvailab return (String)get_Value(COLUMNNAME_Description); } - public I_S_Resource getS_Resource() throws RuntimeException + public I_S_Resource getS_Resource() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Resource.Table_Name); - I_S_Resource result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name) + .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID diff --git a/base/src/org/compiere/model/X_S_TimeExpense.java b/base/src/org/compiere/model/X_S_TimeExpense.java index cb3b304f16..f14e341b90 100644 --- a/base/src/org/compiere/model/X_S_TimeExpense.java +++ b/base/src/org/compiere/model/X_S_TimeExpense.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -107,6 +105,11 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent return bd; } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -305,21 +308,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -344,21 +336,10 @@ public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_S_TimeExpenseLine.java b/base/src/org/compiere/model/X_S_TimeExpenseLine.java index b70351b35a..c23b2684a8 100644 --- a/base/src/org/compiere/model/X_S_TimeExpenseLine.java +++ b/base/src/org/compiere/model/X_S_TimeExpenseLine.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -83,21 +81,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return sb.toString(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -122,21 +109,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -161,21 +137,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -200,21 +165,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -239,21 +193,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException + public I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoiceLine.Table_Name); - I_C_InvoiceLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoiceLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoiceLine)MTable.get(getCtx(), I_C_InvoiceLine.Table_Name) + .getPO(getC_InvoiceLine_ID(), get_TrxName()); } /** Set Invoice Line. @param C_InvoiceLine_ID @@ -278,21 +221,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_OrderLine getC_OrderLine() throws RuntimeException + public I_C_OrderLine getC_OrderLine() throws RuntimeException { - Class clazz = MTable.getClass(I_C_OrderLine.Table_Name); - I_C_OrderLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_OrderLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_OrderLine)MTable.get(getCtx(), I_C_OrderLine.Table_Name) + .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID @@ -317,21 +249,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -356,21 +277,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException + public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); - I_C_ProjectPhase result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectPhase)MTable.get(getCtx(), I_C_ProjectPhase.Table_Name) + .getPO(getC_ProjectPhase_ID(), get_TrxName()); } /** Set Project Phase. @param C_ProjectPhase_ID @@ -395,21 +305,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_ProjectTask getC_ProjectTask() throws RuntimeException + public I_C_ProjectTask getC_ProjectTask() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); - I_C_ProjectTask result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectTask)MTable.get(getCtx(), I_C_ProjectTask.Table_Name) + .getPO(getC_ProjectTask_ID(), get_TrxName()); } /** Set Project Task. @param C_ProjectTask_ID @@ -434,21 +333,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -643,21 +531,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return new KeyNamePair(get_ID(), String.valueOf(getLine())); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -846,21 +723,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_S_TimeExpense getS_TimeExpense() throws RuntimeException + public I_S_TimeExpense getS_TimeExpense() throws RuntimeException { - Class clazz = MTable.getClass(I_S_TimeExpense.Table_Name); - I_S_TimeExpense result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_TimeExpense)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_TimeExpense_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_TimeExpense)MTable.get(getCtx(), I_S_TimeExpense.Table_Name) + .getPO(getS_TimeExpense_ID(), get_TrxName()); } /** Set Expense Report. @param S_TimeExpense_ID @@ -908,21 +774,10 @@ public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Pe return ii.intValue(); } - public I_S_TimeType getS_TimeType() throws RuntimeException + public I_S_TimeType getS_TimeType() throws RuntimeException { - Class clazz = MTable.getClass(I_S_TimeType.Table_Name); - I_S_TimeType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_TimeType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_TimeType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_TimeType)MTable.get(getCtx(), I_S_TimeType.Table_Name) + .getPO(getS_TimeType_ID(), get_TrxName()); } /** Set Time Type. @param S_TimeType_ID diff --git a/base/src/org/compiere/model/X_S_Training.java b/base/src/org/compiere/model/X_S_Training.java index fed6e9df0a..c152fc4b4e 100644 --- a/base/src/org/compiere/model/X_S_Training.java +++ b/base/src/org/compiere/model/X_S_Training.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for S_Training @@ -76,21 +74,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent return sb.toString(); } - public I_C_TaxCategory getC_TaxCategory() throws RuntimeException + public I_C_TaxCategory getC_TaxCategory() throws RuntimeException { - Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); - I_C_TaxCategory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_TaxCategory)MTable.get(getCtx(), I_C_TaxCategory.Table_Name) + .getPO(getC_TaxCategory_ID(), get_TrxName()); } /** Set Tax Category. @param C_TaxCategory_ID @@ -115,21 +102,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -239,21 +215,10 @@ public class X_S_Training extends PO implements I_S_Training, I_Persistent return (String)get_Value(COLUMNNAME_ImageURL); } - public I_M_Product_Category getM_Product_Category() throws RuntimeException + public I_M_Product_Category getM_Product_Category() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); - I_M_Product_Category result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product_Category)MTable.get(getCtx(), I_M_Product_Category.Table_Name) + .getPO(getM_Product_Category_ID(), get_TrxName()); } /** Set Product Category. @param M_Product_Category_ID 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 7a0de15472..ab8edd704a 100644 --- a/base/src/org/compiere/model/X_S_Training_Class.java +++ b/base/src/org/compiere/model/X_S_Training_Class.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for S_Training_Class @@ -94,21 +92,10 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers return (Timestamp)get_Value(COLUMNNAME_EndDate); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -156,21 +143,10 @@ public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Pers return ii.intValue(); } - public I_S_Training getS_Training() throws RuntimeException + public I_S_Training getS_Training() throws RuntimeException { - Class clazz = MTable.getClass(I_S_Training.Table_Name); - I_S_Training result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_S_Training)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Training_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_S_Training)MTable.get(getCtx(), I_S_Training.Table_Name) + .getPO(getS_Training_ID(), get_TrxName()); } /** Set Training. @param S_Training_ID diff --git a/base/src/org/compiere/model/X_T_Aging.java b/base/src/org/compiere/model/X_T_Aging.java index 5dad54c1f9..634bb87ab6 100644 --- a/base/src/org/compiere/model/X_T_Aging.java +++ b/base/src/org/compiere/model/X_T_Aging.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for T_Aging @@ -103,21 +101,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -142,21 +129,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_Activity getC_Activity() throws RuntimeException + public I_C_Activity getC_Activity() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Activity.Table_Name); - I_C_Activity result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name) + .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID @@ -181,21 +157,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_BP_Group getC_BP_Group() throws RuntimeException + public I_C_BP_Group getC_BP_Group() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); - I_C_BP_Group result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BP_Group)MTable.get(getCtx(), I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } /** Set Business Partner Group. @param C_BP_Group_ID @@ -220,21 +185,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -259,21 +213,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws RuntimeException + public I_C_Campaign getC_Campaign() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Campaign.Table_Name); - I_C_Campaign result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Campaign)MTable.get(getCtx(), I_C_Campaign.Table_Name) + .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID @@ -298,21 +241,10 @@ public class X_T_Aging extends PO implements I_T_Aging, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -337,21 +269,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID @@ -376,21 +297,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws RuntimeException + public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws RuntimeException { - Class clazz = MTable.getClass(I_C_InvoicePaySchedule.Table_Name); - I_C_InvoicePaySchedule result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_InvoicePaySchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoicePaySchedule_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_InvoicePaySchedule)MTable.get(getCtx(), I_C_InvoicePaySchedule.Table_Name) + .getPO(getC_InvoicePaySchedule_ID(), get_TrxName()); } /** Set Invoice Payment Schedule. @param C_InvoicePaySchedule_ID @@ -415,21 +325,10 @@ public class X_T_Aging extends PO implements I_T_Aging, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID diff --git a/base/src/org/compiere/model/X_T_DistributionRunDetail.java b/base/src/org/compiere/model/X_T_DistributionRunDetail.java index 948125a79a..2ee8f6f9e0 100644 --- a/base/src/org/compiere/model/X_T_DistributionRunDetail.java +++ b/base/src/org/compiere/model/X_T_DistributionRunDetail.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -83,21 +81,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return sb.toString(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -122,21 +109,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return ii.intValue(); } - public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException + public I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException { - Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); - I_C_BPartner_Location result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner_Location)MTable.get(getCtx(), I_C_BPartner_Location.Table_Name) + .getPO(getC_BPartner_Location_ID(), get_TrxName()); } /** Set Partner Location. @param C_BPartner_Location_ID @@ -161,21 +137,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return ii.intValue(); } - public I_M_DistributionList getM_DistributionList() throws RuntimeException + public I_M_DistributionList getM_DistributionList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionList.Table_Name); - I_M_DistributionList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionList)MTable.get(getCtx(), I_M_DistributionList.Table_Name) + .getPO(getM_DistributionList_ID(), get_TrxName()); } /** Set Distribution List. @param M_DistributionList_ID @@ -200,21 +165,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return ii.intValue(); } - public I_M_DistributionListLine getM_DistributionListLine() throws RuntimeException + public I_M_DistributionListLine getM_DistributionListLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionListLine.Table_Name); - I_M_DistributionListLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionListLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionListLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionListLine)MTable.get(getCtx(), I_M_DistributionListLine.Table_Name) + .getPO(getM_DistributionListLine_ID(), get_TrxName()); } /** Set Distribution List Line. @param M_DistributionListLine_ID @@ -239,21 +193,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return ii.intValue(); } - public I_M_DistributionRun getM_DistributionRun() throws RuntimeException + public I_M_DistributionRun getM_DistributionRun() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionRun.Table_Name); - I_M_DistributionRun result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionRun)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionRun_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionRun)MTable.get(getCtx(), I_M_DistributionRun.Table_Name) + .getPO(getM_DistributionRun_ID(), get_TrxName()); } /** Set Distribution Run. @param M_DistributionRun_ID @@ -286,21 +229,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionRun_ID())); } - public I_M_DistributionRunLine getM_DistributionRunLine() throws RuntimeException + public I_M_DistributionRunLine getM_DistributionRunLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_DistributionRunLine.Table_Name); - I_M_DistributionRunLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_DistributionRunLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DistributionRunLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_DistributionRunLine)MTable.get(getCtx(), I_M_DistributionRunLine.Table_Name) + .getPO(getM_DistributionRunLine_ID(), get_TrxName()); } /** Set Distribution Run Line. @param M_DistributionRunLine_ID @@ -325,21 +257,10 @@ public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRun return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_T_InventoryValue.java b/base/src/org/compiere/model/X_T_InventoryValue.java index cf6eef58dd..0975f1ced1 100644 --- a/base/src/org/compiere/model/X_T_InventoryValue.java +++ b/base/src/org/compiere/model/X_T_InventoryValue.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for T_InventoryValue @@ -77,21 +75,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -116,21 +103,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -252,6 +228,11 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return (Timestamp)get_Value(COLUMNNAME_DateValue); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -275,21 +256,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return ii.intValue(); } - public I_M_CostElement getM_CostElement() throws RuntimeException + public I_M_CostElement getM_CostElement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_CostElement.Table_Name); - I_M_CostElement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_CostElement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostElement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_CostElement)MTable.get(getCtx(), I_M_CostElement.Table_Name) + .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID @@ -314,21 +284,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return ii.intValue(); } - public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException + public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList_Version.Table_Name); - I_M_PriceList_Version result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList_Version)MTable.get(getCtx(), I_M_PriceList_Version.Table_Name) + .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID @@ -353,21 +312,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -392,21 +340,10 @@ public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Pers return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID diff --git a/base/src/org/compiere/model/X_T_InvoiceGL.java b/base/src/org/compiere/model/X_T_InvoiceGL.java index 8b7947ca46..1a28de3f4c 100644 --- a/base/src/org/compiere/model/X_T_InvoiceGL.java +++ b/base/src/org/compiere/model/X_T_InvoiceGL.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for T_InvoiceGL @@ -87,21 +85,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -272,6 +259,11 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent return (String)get_Value(COLUMNNAME_APAR); } + public I_C_ConversionType getC_ConversionTypeReval() throws RuntimeException + { + return (I_C_ConversionType)MTable.get(getCtx(), I_C_ConversionType.Table_Name) + .getPO(getC_ConversionTypeReval_ID(), get_TrxName()); } + /** Set Revaluation Conversion Type. @param C_ConversionTypeReval_ID Revaluation Currency Conversion Type @@ -295,6 +287,11 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent return ii.intValue(); } + public I_C_DocType getC_DocTypeReval() throws RuntimeException + { + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocTypeReval_ID(), get_TrxName()); } + /** Set Revaluation Document Type. @param C_DocTypeReval_ID Document Type for Revaluation Journal @@ -318,21 +315,10 @@ public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent return ii.intValue(); } - public I_C_Invoice getC_Invoice() throws RuntimeException + public I_C_Invoice getC_Invoice() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Invoice.Table_Name); - I_C_Invoice result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getC_Invoice_ID(), get_TrxName()); } /** Set Invoice. @param C_Invoice_ID diff --git a/base/src/org/compiere/model/X_T_Replenish.java b/base/src/org/compiere/model/X_T_Replenish.java index 59ce4b8f16..df9464a102 100644 --- a/base/src/org/compiere/model/X_T_Replenish.java +++ b/base/src/org/compiere/model/X_T_Replenish.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for T_Replenish @@ -79,21 +77,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -118,21 +105,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -157,21 +133,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return ii.intValue(); } - public I_C_DocType getC_DocType() throws RuntimeException + public I_C_DocType getC_DocType() throws RuntimeException { - Class clazz = MTable.getClass(I_C_DocType.Table_Name); - I_C_DocType result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_DocType)MTable.get(getCtx(), I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID @@ -236,21 +201,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return bd; } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -275,21 +229,10 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -314,6 +257,11 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent return ii.intValue(); } + public I_M_Warehouse getM_WarehouseSource() throws RuntimeException + { + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_WarehouseSource_ID(), get_TrxName()); } + /** Set Source Warehouse. @param M_WarehouseSource_ID Optional Warehouse to replenish from diff --git a/base/src/org/compiere/model/X_T_Report.java b/base/src/org/compiere/model/X_T_Report.java index bf79042589..d75e528ba9 100644 --- a/base/src/org/compiere/model/X_T_Report.java +++ b/base/src/org/compiere/model/X_T_Report.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -77,21 +75,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -552,21 +539,10 @@ public class X_T_Report extends PO implements I_T_Report, I_Persistent return new KeyNamePair(get_ID(), getName()); } - public I_PA_ReportLine getPA_ReportLine() throws RuntimeException + public I_PA_ReportLine getPA_ReportLine() throws RuntimeException { - Class clazz = MTable.getClass(I_PA_ReportLine.Table_Name); - I_PA_ReportLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_PA_ReportLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name) + .getPO(getPA_ReportLine_ID(), get_TrxName()); } /** Set Report Line. @param PA_ReportLine_ID Report Line */ diff --git a/base/src/org/compiere/model/X_T_ReportStatement.java b/base/src/org/compiere/model/X_T_ReportStatement.java index 24d8f32df7..941fdbcb6b 100644 --- a/base/src/org/compiere/model/X_T_ReportStatement.java +++ b/base/src/org/compiere/model/X_T_ReportStatement.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -78,21 +76,10 @@ public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Pe return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -208,21 +195,10 @@ public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Pe return (String)get_Value(COLUMNNAME_Description); } - public I_Fact_Acct getFact_Acct() throws RuntimeException + public I_Fact_Acct getFact_Acct() throws RuntimeException { - Class clazz = MTable.getClass(I_Fact_Acct.Table_Name); - I_Fact_Acct result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_Fact_Acct)constructor.newInstance(new Object[] {getCtx(), new Integer(getFact_Acct_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_Fact_Acct)MTable.get(getCtx(), I_Fact_Acct.Table_Name) + .getPO(getFact_Acct_ID(), get_TrxName()); } /** Set Accounting Fact. @param Fact_Acct_ID 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 ae165db2fd..a91c3838ee 100644 --- a/base/src/org/compiere/model/X_T_Transaction.java +++ b/base/src/org/compiere/model/X_T_Transaction.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; /** Generated Model for T_Transaction @@ -81,21 +79,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return sb.toString(); } - public I_AD_PInstance getAD_PInstance() throws RuntimeException + public I_AD_PInstance getAD_PInstance() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); - I_AD_PInstance result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_PInstance)MTable.get(getCtx(), I_AD_PInstance.Table_Name) + .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID @@ -120,21 +107,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_C_Project getC_Project() throws RuntimeException + public I_C_Project getC_Project() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Project.Table_Name); - I_C_Project result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name) + .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID @@ -159,21 +135,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException + public I_C_ProjectIssue getC_ProjectIssue() throws RuntimeException { - Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); - I_C_ProjectIssue result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_ProjectIssue)MTable.get(getCtx(), I_C_ProjectIssue.Table_Name) + .getPO(getC_ProjectIssue_ID(), get_TrxName()); } /** Set Project Issue. @param C_ProjectIssue_ID @@ -198,6 +163,11 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } + public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException + { + return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) + .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -221,21 +191,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_InOut getM_InOut() throws RuntimeException + public I_M_InOut getM_InOut() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InOut.Table_Name); - I_M_InOut result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOut)MTable.get(getCtx(), I_M_InOut.Table_Name) + .getPO(getM_InOut_ID(), get_TrxName()); } /** Set Shipment/Receipt. @param M_InOut_ID @@ -260,21 +219,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getM_InOutLine_ID(), get_TrxName()); } /** Set Shipment/Receipt Line. @param M_InOutLine_ID @@ -299,21 +247,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_Inventory getM_Inventory() throws RuntimeException + public I_M_Inventory getM_Inventory() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Inventory.Table_Name); - I_M_Inventory result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Inventory)MTable.get(getCtx(), I_M_Inventory.Table_Name) + .getPO(getM_Inventory_ID(), get_TrxName()); } /** Set Phys.Inventory. @param M_Inventory_ID @@ -338,21 +275,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_InventoryLine getM_InventoryLine() throws RuntimeException + public I_M_InventoryLine getM_InventoryLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); - I_M_InventoryLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_InventoryLine)MTable.get(getCtx(), I_M_InventoryLine.Table_Name) + .getPO(getM_InventoryLine_ID(), get_TrxName()); } /** Set Phys.Inventory Line. @param M_InventoryLine_ID @@ -377,6 +303,11 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -400,21 +331,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_Movement getM_Movement() throws RuntimeException + public I_M_Movement getM_Movement() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Movement.Table_Name); - I_M_Movement result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Movement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Movement_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Movement)MTable.get(getCtx(), I_M_Movement.Table_Name) + .getPO(getM_Movement_ID(), get_TrxName()); } /** Set Inventory Move. @param M_Movement_ID @@ -439,21 +359,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_MovementLine getM_MovementLine() throws RuntimeException + public I_M_MovementLine getM_MovementLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); - I_M_MovementLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_MovementLine)MTable.get(getCtx(), I_M_MovementLine.Table_Name) + .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID @@ -478,21 +387,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -517,21 +415,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_Production getM_Production() throws RuntimeException + public I_M_Production getM_Production() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Production.Table_Name); - I_M_Production result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Production)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Production_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Production)MTable.get(getCtx(), I_M_Production.Table_Name) + .getPO(getM_Production_ID(), get_TrxName()); } /** Set Production. @param M_Production_ID @@ -556,21 +443,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_ProductionLine getM_ProductionLine() throws RuntimeException + public I_M_ProductionLine getM_ProductionLine() throws RuntimeException { - Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); - I_M_ProductionLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_ProductionLine)MTable.get(getCtx(), I_M_ProductionLine.Table_Name) + .getPO(getM_ProductionLine_ID(), get_TrxName()); } /** Set Production Line. @param M_ProductionLine_ID @@ -595,21 +471,10 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } - public I_M_Transaction getM_Transaction() throws RuntimeException + public I_M_Transaction getM_Transaction() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Transaction.Table_Name); - I_M_Transaction result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Transaction)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Transaction_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Transaction)MTable.get(getCtx(), I_M_Transaction.Table_Name) + .getPO(getM_Transaction_ID(), get_TrxName()); } /** Set Inventory Transaction. @param M_Transaction_ID Inventory Transaction */ @@ -712,6 +577,11 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return (String)get_Value(COLUMNNAME_MovementType); } + public I_M_InOutLine getSearch_InOut() throws RuntimeException + { + return (I_M_InOutLine)MTable.get(getCtx(), I_M_InOutLine.Table_Name) + .getPO(getSearch_InOut_ID(), get_TrxName()); } + /** Set Search Shipment/Receipt. @param Search_InOut_ID Material Shipment Document @@ -735,6 +605,11 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } + public I_C_Invoice getSearch_Invoice() throws RuntimeException + { + return (I_C_Invoice)MTable.get(getCtx(), I_C_Invoice.Table_Name) + .getPO(getSearch_Invoice_ID(), get_TrxName()); } + /** Set Search Invoice. @param Search_Invoice_ID Search Invoice Identifier @@ -758,6 +633,11 @@ public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent return ii.intValue(); } + public I_C_Order getSearch_Order() throws RuntimeException + { + return (I_C_Order)MTable.get(getCtx(), I_C_Order.Table_Name) + .getPO(getSearch_Order_ID(), get_TrxName()); } + /** Set Search Order. @param Search_Order_ID Order Identifier diff --git a/base/src/org/compiere/model/X_Test.java b/base/src/org/compiere/model/X_Test.java index 49cde54d83..0af4b00f62 100644 --- a/base/src/org/compiere/model/X_Test.java +++ b/base/src/org/compiere/model/X_Test.java @@ -17,12 +17,10 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -76,6 +74,11 @@ public class X_Test extends PO implements I_Test, I_Persistent return sb.toString(); } + public I_C_ValidCombination getAccount_A() throws RuntimeException + { + return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) + .getPO(getAccount_Acct(), get_TrxName()); } + /** Set Account_Acct. @param Account_Acct Account_Acct */ public void setAccount_Acct (int Account_Acct) @@ -113,21 +116,10 @@ public class X_Test extends PO implements I_Test, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -152,21 +144,10 @@ public class X_Test extends PO implements I_Test, 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Currency)MTable.get(getCtx(), I_C_Currency.Table_Name) + .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID @@ -191,6 +172,11 @@ public class X_Test extends PO implements I_Test, I_Persistent return ii.intValue(); } + public I_C_Location getC_Location() throws RuntimeException + { + return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name) + .getPO(getC_Location_ID(), get_TrxName()); } + /** Set Address. @param C_Location_ID Location or Address @@ -214,21 +200,10 @@ public class X_Test extends PO implements I_Test, I_Persistent return ii.intValue(); } - public I_C_Payment getC_Payment() throws RuntimeException + public I_C_Payment getC_Payment() throws RuntimeException { - Class clazz = MTable.getClass(I_C_Payment.Table_Name); - I_C_Payment result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) + .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID @@ -253,21 +228,10 @@ public class X_Test extends PO implements I_Test, I_Persistent return ii.intValue(); } - public I_C_UOM getC_UOM() throws RuntimeException + public I_C_UOM getC_UOM() throws RuntimeException { - Class clazz = MTable.getClass(I_C_UOM.Table_Name); - I_C_UOM result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID @@ -343,6 +307,11 @@ public class X_Test extends PO implements I_Test, I_Persistent return (String)get_Value(COLUMNNAME_Help); } + public I_M_Locator getM_Locator() throws RuntimeException + { + return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name) + .getPO(getM_Locator_ID(), get_TrxName()); } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -366,21 +335,10 @@ public class X_Test extends PO implements I_Test, I_Persistent return ii.intValue(); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID diff --git a/base/src/org/compiere/model/X_U_POSTerminal.java b/base/src/org/compiere/model/X_U_POSTerminal.java index 321b59e36f..78fd09c51c 100644 --- a/base/src/org/compiere/model/X_U_POSTerminal.java +++ b/base/src/org/compiere/model/X_U_POSTerminal.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for U_POSTerminal * @author Adempiere (generated) @@ -101,21 +99,10 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return false; } - public I_C_CashBook getC_CashBook() throws RuntimeException + public I_C_CashBook getC_CashBook() throws RuntimeException { - Class clazz = MTable.getClass(I_C_CashBook.Table_Name); - I_C_CashBook result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getC_CashBook_ID(), get_TrxName()); } /** Set Cash Book. @param C_CashBook_ID @@ -140,6 +127,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_CashBPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_CashBPartner_ID(), get_TrxName()); } + /** Set Cash BPartner. @param C_CashBPartner_ID BPartner to be used for Cash transactions @@ -163,6 +155,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BPartner getC_TemplateBPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_TemplateBPartner_ID(), get_TrxName()); } + /** Set Template BPartner. @param C_TemplateBPartner_ID BPartner that is to be used as template when new customers are created @@ -186,6 +183,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BankAccount getCard_BankAccount() throws RuntimeException + { + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getCard_BankAccount_ID(), get_TrxName()); } + /** Set Card Bank Account. @param Card_BankAccount_ID Bank Account on which card transactions will be processed @@ -209,6 +211,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BankAccount getCardTransferBankAccount() throws RuntimeException + { + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getCardTransferBankAccount_ID(), get_TrxName()); } + /** Set Transfer Card trx to. @param CardTransferBankAccount_ID Bank account on which to transfer Card transactions @@ -232,6 +239,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_CashBook getCardTransferCashBook() throws RuntimeException + { + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getCardTransferCashBook_ID(), get_TrxName()); } + /** Set Transfer Card trx to. @param CardTransferCashBook_ID Cash Book on which to transfer all Card transactions @@ -300,6 +312,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return (String)get_Value(COLUMNNAME_CashBookTransferType); } + public I_C_BankAccount getCashTransferBankAccount() throws RuntimeException + { + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getCashTransferBankAccount_ID(), get_TrxName()); } + /** Set Transfer Cash trx to. @param CashTransferBankAccount_ID Bank Account on which to transfer all Cash transactions @@ -323,6 +340,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_CashBook getCashTransferCashBook() throws RuntimeException + { + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getCashTransferCashBook_ID(), get_TrxName()); } + /** Set Transfer Cash trx to. @param CashTransferCashBook_ID Cash Book on which to transfer all Cash transactions @@ -346,6 +368,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BankAccount getCheck_BankAccount() throws RuntimeException + { + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getCheck_BankAccount_ID(), get_TrxName()); } + /** Set Check Bank Account. @param Check_BankAccount_ID Bank Account to be used for processing Check transactions @@ -369,6 +396,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_BankAccount getCheckTransferBankAccount() throws RuntimeException + { + return (I_C_BankAccount)MTable.get(getCtx(), I_C_BankAccount.Table_Name) + .getPO(getCheckTransferBankAccount_ID(), get_TrxName()); } + /** Set Tranfer Check trx to. @param CheckTransferBankAccount_ID Bank account on which to transfer Check transactions @@ -392,6 +424,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_C_CashBook getCheckTransferCashBook() throws RuntimeException + { + return (I_C_CashBook)MTable.get(getCtx(), I_C_CashBook.Table_Name) + .getPO(getCheckTransferCashBook_ID(), get_TrxName()); } + /** Set Transfer Check trx to. @param CheckTransferCashBook_ID Cash Book on which to transfer all Check transactions @@ -531,21 +568,10 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -587,6 +613,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return (String)get_Value(COLUMNNAME_Name); } + public I_M_PriceList getPO_PriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getPO_PriceList_ID(), get_TrxName()); } + /** Set Purchase Pricelist. @param PO_PriceList_ID Price List used by this Business Partner @@ -627,6 +658,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return (String)get_Value(COLUMNNAME_PrinterName); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent @@ -650,6 +686,11 @@ public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent return ii.intValue(); } + public I_M_PriceList getSO_PriceList() throws RuntimeException + { + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getSO_PriceList_ID(), get_TrxName()); } + /** Set Sales Pricelist. @param SO_PriceList_ID Sales Pricelist */ public void setSO_PriceList_ID (int SO_PriceList_ID) diff --git a/base/src/org/compiere/model/X_U_RoleMenu.java b/base/src/org/compiere/model/X_U_RoleMenu.java index 4f319c153b..687a04d8d4 100644 --- a/base/src/org/compiere/model/X_U_RoleMenu.java +++ b/base/src/org/compiere/model/X_U_RoleMenu.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; /** Generated Model for U_RoleMenu * @author Adempiere (generated) @@ -73,21 +71,10 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent return sb.toString(); } - public I_AD_Role getAD_Role() throws RuntimeException + public I_AD_Role getAD_Role() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_Role.Table_Name); - I_AD_Role result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID @@ -132,21 +119,10 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent return ii.intValue(); } - public I_U_WebMenu getU_WebMenu() throws RuntimeException + public I_U_WebMenu getU_WebMenu() throws RuntimeException { - Class clazz = MTable.getClass(I_U_WebMenu.Table_Name); - I_U_WebMenu result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_U_WebMenu)constructor.newInstance(new Object[] {getCtx(), new Integer(getU_WebMenu_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_U_WebMenu)MTable.get(getCtx(), I_U_WebMenu.Table_Name) + .getPO(getU_WebMenu_ID(), get_TrxName()); } /** Set Web Menu. @param U_WebMenu_ID 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 c8a99941bc..b29e618c66 100644 --- a/base/src/org/compiere/model/X_U_WebMenu.java +++ b/base/src/org/compiere/model/X_U_WebMenu.java @@ -204,6 +204,11 @@ public class X_U_WebMenu extends PO implements I_U_WebMenu, I_Persistent return (String)get_Value(COLUMNNAME_Name); } + public I_U_WebMenu getParentMenu() throws RuntimeException + { + return (I_U_WebMenu)MTable.get(getCtx(), I_U_WebMenu.Table_Name) + .getPO(getParentMenu_ID(), get_TrxName()); } + /** Set Parent Menu. @param ParentMenu_ID Parent Menu */ public void setParentMenu_ID (int ParentMenu_ID) diff --git a/base/src/org/compiere/model/X_W_Advertisement.java b/base/src/org/compiere/model/X_W_Advertisement.java index 462606f8a6..ce3e5d303d 100644 --- a/base/src/org/compiere/model/X_W_Advertisement.java +++ b/base/src/org/compiere/model/X_W_Advertisement.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_Advertisement @@ -81,21 +79,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -137,6 +124,11 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis return (String)get_Value(COLUMNNAME_AdText); } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -386,21 +378,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis return ii.intValue(); } - public I_W_ClickCount getW_ClickCount() throws RuntimeException + public I_W_ClickCount getW_ClickCount() throws RuntimeException { - Class clazz = MTable.getClass(I_W_ClickCount.Table_Name); - I_W_ClickCount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_ClickCount)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_ClickCount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_ClickCount)MTable.get(getCtx(), I_W_ClickCount.Table_Name) + .getPO(getW_ClickCount_ID(), get_TrxName()); } /** Set Click Count. @param W_ClickCount_ID @@ -425,21 +406,10 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis return ii.intValue(); } - public I_W_CounterCount getW_CounterCount() throws RuntimeException + public I_W_CounterCount getW_CounterCount() throws RuntimeException { - Class clazz = MTable.getClass(I_W_CounterCount.Table_Name); - I_W_CounterCount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_CounterCount)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_CounterCount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_CounterCount)MTable.get(getCtx(), I_W_CounterCount.Table_Name) + .getPO(getW_CounterCount_ID(), get_TrxName()); } /** Set Counter Count. @param W_CounterCount_ID diff --git a/base/src/org/compiere/model/X_W_Basket.java b/base/src/org/compiere/model/X_W_Basket.java index 2802dceccc..96a3d3b7ab 100644 --- a/base/src/org/compiere/model/X_W_Basket.java +++ b/base/src/org/compiere/model/X_W_Basket.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_Basket @@ -74,21 +72,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent return sb.toString(); } - public I_AD_User getAD_User() throws RuntimeException + public I_AD_User getAD_User() throws RuntimeException { - Class clazz = MTable.getClass(I_AD_User.Table_Name); - I_AD_User result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID @@ -113,21 +100,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent return ii.intValue(); } - 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; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner . @param C_BPartner_ID @@ -169,21 +145,10 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent return (String)get_Value(COLUMNNAME_EMail); } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID diff --git a/base/src/org/compiere/model/X_W_BasketLine.java b/base/src/org/compiere/model/X_W_BasketLine.java index e671aa9bfd..980a88d936 100644 --- a/base/src/org/compiere/model/X_W_BasketLine.java +++ b/base/src/org/compiere/model/X_W_BasketLine.java @@ -17,11 +17,9 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; @@ -125,21 +123,10 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent return new KeyNamePair(get_ID(), String.valueOf(getLine())); } - public I_M_Product getM_Product() throws RuntimeException + public I_M_Product getM_Product() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Product.Table_Name); - I_M_Product result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID @@ -218,21 +205,10 @@ public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent return bd; } - public I_W_Basket getW_Basket() throws RuntimeException + public I_W_Basket getW_Basket() throws RuntimeException { - Class clazz = MTable.getClass(I_W_Basket.Table_Name); - I_W_Basket result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_Basket)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_Basket_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_Basket)MTable.get(getCtx(), I_W_Basket.Table_Name) + .getPO(getW_Basket_ID(), get_TrxName()); } /** Set W_Basket_ID. @param W_Basket_ID diff --git a/base/src/org/compiere/model/X_W_Click.java b/base/src/org/compiere/model/X_W_Click.java index bb9dca6fbd..e08c7a4014 100644 --- a/base/src/org/compiere/model/X_W_Click.java +++ b/base/src/org/compiere/model/X_W_Click.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_Click @@ -270,21 +268,10 @@ public class X_W_Click extends PO implements I_W_Click, I_Persistent return ii.intValue(); } - public I_W_ClickCount getW_ClickCount() throws RuntimeException + public I_W_ClickCount getW_ClickCount() throws RuntimeException { - Class clazz = MTable.getClass(I_W_ClickCount.Table_Name); - I_W_ClickCount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_ClickCount)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_ClickCount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_ClickCount)MTable.get(getCtx(), I_W_ClickCount.Table_Name) + .getPO(getW_ClickCount_ID(), get_TrxName()); } /** Set Click Count. @param W_ClickCount_ID diff --git a/base/src/org/compiere/model/X_W_ClickCount.java b/base/src/org/compiere/model/X_W_ClickCount.java index be4b9c28ec..ff2a67fe75 100644 --- a/base/src/org/compiere/model/X_W_ClickCount.java +++ b/base/src/org/compiere/model/X_W_ClickCount.java @@ -72,6 +72,11 @@ public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent return sb.toString(); } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner diff --git a/base/src/org/compiere/model/X_W_Counter.java b/base/src/org/compiere/model/X_W_Counter.java index c51a35ed87..ab19c74761 100644 --- a/base/src/org/compiere/model/X_W_Counter.java +++ b/base/src/org/compiere/model/X_W_Counter.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_Counter @@ -270,21 +268,10 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent return ii.intValue(); } - public I_W_CounterCount getW_CounterCount() throws RuntimeException + public I_W_CounterCount getW_CounterCount() throws RuntimeException { - Class clazz = MTable.getClass(I_W_CounterCount.Table_Name); - I_W_CounterCount result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_CounterCount)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_CounterCount_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_CounterCount)MTable.get(getCtx(), I_W_CounterCount.Table_Name) + .getPO(getW_CounterCount_ID(), get_TrxName()); } /** Set Counter Count. @param W_CounterCount_ID diff --git a/base/src/org/compiere/model/X_W_CounterCount.java b/base/src/org/compiere/model/X_W_CounterCount.java index 57f89d84bb..2ab31bef95 100644 --- a/base/src/org/compiere/model/X_W_CounterCount.java +++ b/base/src/org/compiere/model/X_W_CounterCount.java @@ -72,6 +72,11 @@ public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persiste return sb.toString(); } + public I_C_BPartner getC_BPartner() throws RuntimeException + { + return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name) + .getPO(getC_BPartner_ID(), get_TrxName()); } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner diff --git a/base/src/org/compiere/model/X_W_MailMsg.java b/base/src/org/compiere/model/X_W_MailMsg.java index bb75d76d11..1a5cbd2232 100644 --- a/base/src/org/compiere/model/X_W_MailMsg.java +++ b/base/src/org/compiere/model/X_W_MailMsg.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_MailMsg @@ -248,21 +246,10 @@ public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent return ii.intValue(); } - public I_W_Store getW_Store() throws RuntimeException + public I_W_Store getW_Store() throws RuntimeException { - Class clazz = MTable.getClass(I_W_Store.Table_Name); - I_W_Store result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_W_Store)constructor.newInstance(new Object[] {getCtx(), new Integer(getW_Store_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_W_Store)MTable.get(getCtx(), I_W_Store.Table_Name) + .getPO(getW_Store_ID(), get_TrxName()); } /** Set Web Store. @param W_Store_ID diff --git a/base/src/org/compiere/model/X_W_Store.java b/base/src/org/compiere/model/X_W_Store.java index 2ceea7a968..88421125b5 100644 --- a/base/src/org/compiere/model/X_W_Store.java +++ b/base/src/org/compiere/model/X_W_Store.java @@ -17,10 +17,8 @@ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; -import java.lang.reflect.Constructor; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; import org.compiere.util.KeyNamePair; /** Generated Model for W_Store @@ -100,21 +98,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent return sb.toString(); } - public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException + public I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { - Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); - I_C_PaymentTerm result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_C_PaymentTerm)MTable.get(getCtx(), I_C_PaymentTerm.Table_Name) + .getPO(getC_PaymentTerm_ID(), get_TrxName()); } /** Set Payment Term. @param C_PaymentTerm_ID @@ -471,21 +458,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent return false; } - public I_M_PriceList getM_PriceList() throws RuntimeException + public I_M_PriceList getM_PriceList() throws RuntimeException { - Class clazz = MTable.getClass(I_M_PriceList.Table_Name); - I_M_PriceList result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_PriceList)MTable.get(getCtx(), I_M_PriceList.Table_Name) + .getPO(getM_PriceList_ID(), get_TrxName()); } /** Set Price List. @param M_PriceList_ID @@ -510,21 +486,10 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent return ii.intValue(); } - public I_M_Warehouse getM_Warehouse() throws RuntimeException + public I_M_Warehouse getM_Warehouse() throws RuntimeException { - Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); - I_M_Warehouse result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw new RuntimeException( e ); - } - return result; - } + return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID @@ -574,6 +539,11 @@ public class X_W_Store extends PO implements I_W_Store, I_Persistent return new KeyNamePair(get_ID(), getName()); } + public I_AD_User getSalesRep() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getSalesRep_ID(), get_TrxName()); } + /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent